Merge pull request #159 from Dunedan/disable-audio-effects-for-moto-g7play

Disable audio effects for Motorola Moto G7 Play
This commit is contained in:
Pierre-Hugues HUSSON 2020-03-15 13:26:26 +01:00 committed by GitHub
commit d467acb307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -273,6 +273,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