Skip to content

Commit

Permalink
Add flag to disable Lineage bootanimation.zip module
Browse files Browse the repository at this point in the history
Lineage's `bootanimation.zip` module collides with AOSP way of setting up
bootanimation (by PRODUCT_COPY_FILES)
When the flag `TARGET_EXCLUDE_LINEAGE_BOOTANIMATION` is set to `true`
Lineage bootanimation is disabled.

Change-Id: I1a0834773adf7fbd40152ed0a14c20e631be15ef
  • Loading branch information
enplug-tjokiel committed Sep 23, 2022
1 parent 9213eba commit 5ed77e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bootanimation/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# limitations under the License.
#

ifneq ($(TARGET_EXCLUDE_LINEAGE_BOOTANIMATION),true)

TARGET_GENERATED_BOOTANIMATION := $(TARGET_OUT_INTERMEDIATES)/BOOTANIMATION/bootanimation.zip
$(TARGET_GENERATED_BOOTANIMATION): INTERMEDIATES := $(TARGET_OUT_INTERMEDIATES)/BOOTANIMATION
$(TARGET_GENERATED_BOOTANIMATION): $(SOONG_ZIP)
Expand Down Expand Up @@ -55,3 +57,5 @@ include $(BUILD_SYSTEM)/base_rules.mk

$(LOCAL_BUILT_MODULE): $(TARGET_BOOTANIMATION)
@cp $(TARGET_BOOTANIMATION) $@

endif
3 changes: 2 additions & 1 deletion config/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,13 @@ PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
# Disable vendor restrictions
PRODUCT_RESTRICT_VENDOR_FILES := false

ifneq ($(TARGET_EXCLUDE_LINEAGE_BOOTANIMATION),true)
# Bootanimation
TARGET_SCREEN_WIDTH ?= 1080
TARGET_SCREEN_HEIGHT ?= 1920
PRODUCT_PACKAGES += \
bootanimation.zip

endif

ifneq ($(TARGET_EXCLUDE_LINEAGE_PACKAGES),true)
# Lineage packages
Expand Down

0 comments on commit 5ed77e9

Please sign in to comment.