Fix A2DP on some Qualcomm Q vendors by disable A2DP offload harder

Also there is a mismatch between framework which expects property to be
false/true and treble app setting it to 0/1
This commit is contained in:
Pierre-Hugues Husson 2020-10-02 20:04:12 +02:00
parent 51f9d61755
commit 768afc3cbe
1 changed files with 8 additions and 0 deletions

View File

@ -44,3 +44,11 @@ on property:persist.sys.phh.caf.audio_policy=*
on property:persist.sys.phh.vsmart.dt2w=*
exec u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "persist.sys.phh.vsmart.dt2w"
on property:persist.sys.phh.disable_a2dp_offload=0
setprop persist.sys.phh.disable_a2dp_offload false
on property:persist.sys.phh.disable_a2dp_offload=1
setprop persist.sys.phh.disable_a2dp_offload true
on property:persist.sys.phh.disable_a2dp_offload=*
setprop persist.bluetooth.bluetooth_audio_hal.disabled ${persist.sys.phh.disable_a2dp_offload}