Make device bootable -> add missing packages and pre-steps to fix audio

This commit is contained in:
SaschaNes
2025-08-04 09:15:49 +02:00
parent 3cc5ea12e0
commit 340fc0bbc5
5 changed files with 30 additions and 22 deletions

View File

@@ -26,6 +26,15 @@ PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
BOARD_SHIPPING_API_LEVEL := 34
PRODUCT_SHIPPING_API_LEVEL := $(BOARD_SHIPPING_API_LEVEL)
ifeq ($(TARGET_BUILD_VARIANT),eng)
PRODUCT_SOONG_DEXPREOPT_ENABLED := true
PRODUCT_SOONG_CONFIG_OVERRIDES += \
dex_preopt_enabled=true
DISABLE_DEXPREOPT := false
PRODUCT_DEX_PREOPT := true
PRODUCT_ART_BOOT_JARS_PREOPT := true
endif
# No A/B
AB_OTA_UPDATER := false
@@ -56,7 +65,8 @@ PRODUCT_PACKAGES += \
libsndcardparser \
libtinycompress \
libvolumelistener \
sound_trigger.primary.pineapple
sound_trigger.primary.pineapple \
bootctrl_hal_defaults
AUDIO_HAL_DIR := hardware/qcom-caf/sm8650/audio/primary-hal
AUDIO_PAL_DIR := hardware/qcom-caf/sm8650/audio/pal
@@ -83,6 +93,11 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
# Boot
PRODUCT_PACKAGES += \
android.hardware.boot-service.qti \
android.hardware.boot-service.qti.recovery
# Boot animation
TARGET_SCREEN_HEIGHT := 3120
TARGET_SCREEN_WIDTH := 1440
@@ -321,8 +336,8 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
# Shim
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/system/bin/app_process32:system/bin/app_process32
# PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/rootdir/system/bin/app_process32:system/bin/app_process32
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \