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

@@ -73,17 +73,17 @@ BOARD_MKBOOTIMG_INIT_ARGS += --header_version $(BOARD_INIT_BOOT_HEADER_VERSION)
# Kernel # Kernel
BOARD_KERNEL_CMDLINE := \ BOARD_KERNEL_CMDLINE := \
ignore_loglevel \ # ignore_loglevel \
debug \ debug \
androidboot.hardware=qcom \ androidboot.hardware=qcom \
androidboot.memcg=1 \ androidboot.memcg=1 \
androidboot.usbcontroller=a600000.dwc3 \ androidboot.usbcontroller=a600000.dwc3 \
androidboot.load_modules_parallel=false \ # androidboot.load_modules_parallel=false \
androidboot.hypervisor.protected_vm.supported=true \ # androidboot.hypervisor.protected_vm.supported=true \
androidboot.selinux=permissive \ androidboot.selinux=permissive \
aosp_is_booting \ # aosp_is_booting \
firmware_class.path=/vendor/firmware_mnt/image \ firmware_class.path=/vendor/firmware_mnt/image \
loop.max_part=7 \ # loop.max_part=7 \
printk.devkmsg=on \ printk.devkmsg=on \
video=vfb:640x400,bpp=32,memsize=3072000 \ video=vfb:640x400,bpp=32,memsize=3072000 \
audit=0 audit=0

View File

@@ -26,6 +26,15 @@ PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
BOARD_SHIPPING_API_LEVEL := 34 BOARD_SHIPPING_API_LEVEL := 34
PRODUCT_SHIPPING_API_LEVEL := $(BOARD_SHIPPING_API_LEVEL) 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 # No A/B
AB_OTA_UPDATER := false AB_OTA_UPDATER := false
@@ -56,7 +65,8 @@ PRODUCT_PACKAGES += \
libsndcardparser \ libsndcardparser \
libtinycompress \ libtinycompress \
libvolumelistener \ libvolumelistener \
sound_trigger.primary.pineapple sound_trigger.primary.pineapple \
bootctrl_hal_defaults
AUDIO_HAL_DIR := hardware/qcom-caf/sm8650/audio/primary-hal AUDIO_HAL_DIR := hardware/qcom-caf/sm8650/audio/primary-hal
AUDIO_PAL_DIR := hardware/qcom-caf/sm8650/audio/pal 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.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 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 # Boot animation
TARGET_SCREEN_HEIGHT := 3120 TARGET_SCREEN_HEIGHT := 3120
TARGET_SCREEN_WIDTH := 1440 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 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
# Shim # Shim
PRODUCT_COPY_FILES += \ # PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/system/bin/app_process32:system/bin/app_process32 # $(LOCAL_PATH)/rootdir/system/bin/app_process32:system/bin/app_process32
# Soong namespaces # Soong namespaces
PRODUCT_SOONG_NAMESPACES += \ PRODUCT_SOONG_NAMESPACES += \

View File

@@ -79,7 +79,7 @@ on late-fs
on post-fs-data on post-fs-data
#mAFPC #mAFPC
mkdir /efs/afc 0760 system system mkdir /efs/afc 0760 system system
#exec - system system -- /system/bin/mafpc_write exec - system system -- /system/bin/mafpc_write
on boot on boot
write /proc/sys/vm/swappiness 100 write /proc/sys/vm/swappiness 100

View File

@@ -103,19 +103,6 @@ on init
chmod 0660 /sys/fs/cgroup/memory/bg/tasks chmod 0660 /sys/fs/cgroup/memory/bg/tasks
on post-fs on post-fs
# → Symlinks für Audio Hal (echte Dateien existieren unter anderem Namen)
symlink /vendor/bin/hw/android.hardware.audio.service \
/vendor/bin/hw/android.hardware.audio@4.0-service
symlink /vendor/bin/hw/android.hardware.audio.service \
/vendor/bin/hw/android.hardware.audio-hal
symlink /vendor/bin/hw/android.hardware.audio.service \
/vendor/bin/hw/android.hardware.audio-hal-aidl
symlink /vendor/bin/hw/android.hardware.audio.service \
/vendor/bin/hw/android.hardware.audio-effect-hal-aidl
symlink /vendor/bin/hw/android.hardware.audio.service \
/vendor/bin/hw/android.hardware.audio-hal-4-0-msd
symlink /vendor/bin/hw/audio_proxy_service \
/vendor/bin/audio_proxy_service
on early-boot on early-boot
# set RLIMIT_MEMLOCK to 64KB # set RLIMIT_MEMLOCK to 64KB

View File

@@ -1,3 +1,9 @@
# DPM # DPM
persist.vendor.dpm.feature=11 persist.vendor.dpm.feature=11
# ADB-Debugging
ro.secure=0
ro.adb.secure=0
ro.debuggable=1
persist.sys.usb.config=adb
persist.service.adb.enable=1