From 962529890f58ce35edc1862644b08fe9443577a4 Mon Sep 17 00:00:00 2001 From: Daniel Roschka Date: Sat, 7 Mar 2020 21:06:44 +0100 Subject: [PATCH] Disable audio effects for Motorola Moto G7 Play This disables audio effects for the Motorola Moto G7 Play (channel) as enabled audio effects break audio via Bluetooth. It requires a separate if-statement in `rw-system.sh`, because `ro.vendor.build.fingerprint` isn't set for the device. Relates to: https://github.com/phhusson/treble_experimentations/issues/857 --- rw-system.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index 6e0ac3d..b6c74a9 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -257,6 +257,13 @@ if getprop ro.vendor.build.fingerprint | grep -iq \ setprop ro.audio.ignore_effects true fi +if getprop ro.build.fingerprint | grep -iq \ + -e motorola/channel; then + mount -o bind /mnt/phh/empty_dir /vendor/lib64/soundfx + mount -o bind /mnt/phh/empty_dir /vendor/lib/soundfx + setprop ro.audio.ignore_effects true +fi + if [ "$(getprop ro.vendor.product.manufacturer)" = "motorola" ] || [ "$(getprop ro.product.vendor.manufacturer)" = "motorola" ]; then if getprop ro.vendor.product.device | grep -q -e nora -e ali -e hannah -e evert -e jeter -e deen -e james -e pettyl -e jater; then if [ "$vndk" -ge 28 ]; then