diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml new file mode 100644 index 0000000..45bda7b --- /dev/null +++ b/audio/audio_policy_configuration.xml @@ -0,0 +1,278 @@ + + + + + + + + + + + + + + + + Speaker + Speaker Safe + Earpiece + Telephony Tx + Built-In Mic + Built-In Back Mic + Telephony Rx + + Speaker + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/device.mk b/device.mk index 410c281..db238ca 100644 --- a/device.mk +++ b/device.mk @@ -29,6 +29,9 @@ DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-pe PRODUCT_PACKAGES += \ audio.a2dp.default +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/audio_policy_configuration.xml + # Camera PRODUCT_PACKAGES += \ Snap \ @@ -98,7 +101,7 @@ ifeq ($(findstring Plus, $(CUSTOM_VERSION)),) PRODUCT_PACKAGES += \ lineage.livedisplay@2.0-service-sdm endif - + # Media PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/media_profiles_vendor.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_vendor.xml @@ -159,4 +162,3 @@ PRODUCT_BOOT_JARS += \ # Wallpapers PRODUCT_PACKAGES += \ PixelLiveWallpaperPrebuilt - diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 0926256..8eb79cd 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -41,6 +41,8 @@ on init write /sys/block/zram0/comp_algorithm lz4 write /proc/sys/vm/page-cluster 0 + mount none /system/etc/audio_policy_configuration.xml /vendor/etc/audio_policy_configuration.xml bind + on late-fs # Runtime fs tuning write /sys/block/sda/queue/iostats 0