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
This commit is contained in:
Daniel Roschka 2020-03-07 21:06:44 +01:00
parent 04583fa95a
commit 962529890f
No known key found for this signature in database
GPG Key ID: 885B16854284E0B2
1 changed files with 7 additions and 0 deletions

View File

@ -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