From 768afc3cbe7f66fb7950fe6f596c3be9e2966ccc Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Fri, 2 Oct 2020 20:04:12 +0200 Subject: [PATCH] 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 --- vndk.rc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vndk.rc b/vndk.rc index 4d7d91f..9f1003a 100644 --- a/vndk.rc +++ b/vndk.rc @@ -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}