From 78f5247606366d9b599ba279a3eb7a695028a716 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vndk.rc b/vndk.rc index 06fe22c..a5c7a37 100644 --- a/vndk.rc +++ b/vndk.rc @@ -46,3 +46,12 @@ on property:persist.sys.phh.vsmart.dt2w=* on property:ro.sf.lcd_density=* restart surfacecflinger + +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}