From 5e6061d5fd094fa4fd4f49d5f8a1bbc2e513937d Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Mon, 7 Jun 2021 12:47:49 -0400 Subject: [PATCH] On ZF8, take stock rom audio policy, rather than the worse ones intended for GSI or QSSI --- rw-system.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index c25192b..43cdf55 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -642,6 +642,13 @@ if getprop ro.vendor.build.fingerprint | grep -q -e nubia/NX669; then mount /vendor/etc/audio/sku_${sku}_qssi/audio_policy_configuration.xml /vendor/etc/audio/sku_$sku/audio_policy_configuration.xml fi +# For ZF8, the "best" audio policy isn't the one for QSSI +if getprop ro.vendor.build.fingerprint |grep -q -e /ASUS_I006D:;then + umount /vendor/etc/audio + sku="$(getprop ro.boot.product.vendor.sku)" + mount /vendor/etc/audio/ZS590KS/audio_policy_configuration_ZS590KS.xml /vendor/etc/audio/sku_$sku/audio_policy_configuration.xml +fi + setprop ctl.stop console dmesg -n 1 if [ -f /system/phh/secure ];then