Merge pull request #284 from ponces/android-12.0-fix-distorted-audio
Disable soundvolume effect on Xiaomi Mi 11 Lite 5G
This commit is contained in:
commit
e9855ca82d
@ -184,3 +184,19 @@ if [ "$1" == "persist.sys.phh.backlight.scale" ];then
|
||||
fi
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$1" == "persist.sys.phh.disable_soundvolume_effect" ];then
|
||||
if [[ "$prop_value" != "0" && "$prop_value" != "1" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$prop_value" == 1 ]];then
|
||||
mount /system/phh/empty /vendor/lib/soundfx/libvolumelistener.so
|
||||
mount /system/phh/empty /vendor/lib64/soundfx/libvolumelistener.so
|
||||
else
|
||||
umount /vendor/lib/soundfx/libvolumelistener.so
|
||||
umount /vendor/lib64/soundfx/libvolumelistener.so
|
||||
fi
|
||||
restartAudio
|
||||
exit
|
||||
fi
|
||||
|
3
vndk.rc
3
vndk.rc
@ -47,6 +47,9 @@ on property:persist.sys.phh.vsmart.dt2w=*
|
||||
on property:persist.sys.phh.backlight.scale=*
|
||||
exec u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "persist.sys.phh.backlight.scale"
|
||||
|
||||
on property:persist.sys.phh.disable_soundvolume_effect=*
|
||||
exec u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "persist.sys.phh.disable_soundvolume_effect"
|
||||
|
||||
on property:ro.sf.lcd_density=*
|
||||
restart surfaceflinger
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user