Loading android/app/src/com/android/bluetooth/btservice/PhonePolicy.java +17 −4 Original line number Diff line number Diff line Loading @@ -433,9 +433,11 @@ public class PhonePolicy implements AdapterService.BluetoothStateCallback { && Utils.arrayContains(uuids, BluetoothUuid.BASS) && (bcService.getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_UNKNOWN)) { if (isLeAudioProfileAllowed) { debugLog("setting broadcast assistant profile priority for device " + device); if (mAutoConnectProfilesSupported) { bcService.setConnectionPolicy(device, BluetoothProfile.CONNECTION_POLICY_ALLOWED); bcService.setConnectionPolicy( device, BluetoothProfile.CONNECTION_POLICY_ALLOWED); } else { mAdapterService .getDatabase() Loading @@ -444,6 +446,17 @@ public class PhonePolicy implements AdapterService.BluetoothStateCallback { BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT, BluetoothProfile.CONNECTION_POLICY_ALLOWED); } } else { debugLog( "clear broadcast assistant profile priority if le audio profile is not" + " allowed"); mAdapterService .getDatabase() .setProfileConnectionPolicy( device, BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN); } } if ((batteryService != null) Loading Loading
android/app/src/com/android/bluetooth/btservice/PhonePolicy.java +17 −4 Original line number Diff line number Diff line Loading @@ -433,9 +433,11 @@ public class PhonePolicy implements AdapterService.BluetoothStateCallback { && Utils.arrayContains(uuids, BluetoothUuid.BASS) && (bcService.getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_UNKNOWN)) { if (isLeAudioProfileAllowed) { debugLog("setting broadcast assistant profile priority for device " + device); if (mAutoConnectProfilesSupported) { bcService.setConnectionPolicy(device, BluetoothProfile.CONNECTION_POLICY_ALLOWED); bcService.setConnectionPolicy( device, BluetoothProfile.CONNECTION_POLICY_ALLOWED); } else { mAdapterService .getDatabase() Loading @@ -444,6 +446,17 @@ public class PhonePolicy implements AdapterService.BluetoothStateCallback { BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT, BluetoothProfile.CONNECTION_POLICY_ALLOWED); } } else { debugLog( "clear broadcast assistant profile priority if le audio profile is not" + " allowed"); mAdapterService .getDatabase() .setProfileConnectionPolicy( device, BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN); } } if ((batteryService != null) Loading