universal7885: Use vendor_overlay for audio_policy_configuration.xml

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ifaa42cb1547529085cb73e3a493e8064dae07215
This commit is contained in:
luk1337 2020-09-07 06:22:09 +00:00 committed by roynatech2544
commit c29c6e5616
3 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,4 @@
on init
mount none /system/etc/audio_policy_configuration.xml /vendor/etc/audio_policy_configuration.xml bind
# Disable vendor overlay
mount none /vendor/lost+found /vendor/overlay bind

View file

@ -1,2 +1,5 @@
# Block device for ZRAM
/dev/block/zram0 u:object_r:swap_block_device:s0
# Vendor overlay
/(product|system/product)/vendor_overlay/[0-9]+/etc(/.*)? u:object_r:vendor_configs_file:s0

View file

@ -7,7 +7,7 @@ PRODUCT_AAPT_PREF_CONFIG := xxhdpi
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio_policy_configuration.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/audio_policy_configuration.xml
$(LOCAL_PATH)/configs/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/audio_policy_configuration.xml
# Bluetooth
PRODUCT_PACKAGES += \