aboutsummaryrefslogtreecommitdiff
path: root/car-lib/src/android/car/ICarBluetoothUserService.aidl
diff options
context:
space:
mode:
authorRam Periathiruvadi <ramperry@google.com>2017-05-31 23:31:40 -0700
committerRam Periathiruvadi <ramperry@google.com>2017-06-02 18:30:02 -0700
commitbe7ea0fe212996a6afc095bb910e44a0c8cb4c2f (patch)
treee8a0e42f3efe873917db11ed244bb153908cf973 /car-lib/src/android/car/ICarBluetoothUserService.aidl
parent70431ea1ee9d8c2fe1b00ece525e433e5557bc63 (diff)
downloadCar-be7ea0fe212996a6afc095bb910e44a0c8cb4c2f.tar.gz
Fix Bluetooth failing to connect after pairing
After successful pairing, supported profiles between 2 devices was not connecting automatically, if the device was previously paired and unpaired. This is because, unpairing sets the priority of the profile for that device to UNDEFINED. Hence, subsequent pairing attempts fails to connect, since the Bluetooth profiles ignore connection requests when the priority is not set to ON or AUTO_CONNECT. So, its upto the Device's Bluetooth policy to set the priority of supported bluetooth profiles per remote device to ON, everytime it pairs to a remote device. For Carkit, we do this in its BluetoothDeviceConnectionPolicy. For phones, it is done in PhonePolicy. Bug: b/38500587 Test: Tested by pairing and seeing the supported Car Bluetooth profiles connect automatically. Also, checked the saved priority for the profile per device in Settingsglobal content provider by querying adb shell content query --uri content://settings/global Change-Id: Ie102a0923022d844106bdb864cbd57c4ab5aa19c
Diffstat (limited to 'car-lib/src/android/car/ICarBluetoothUserService.aidl')
-rw-r--r--car-lib/src/android/car/ICarBluetoothUserService.aidl1
1 files changed, 1 insertions, 0 deletions
diff --git a/car-lib/src/android/car/ICarBluetoothUserService.aidl b/car-lib/src/android/car/ICarBluetoothUserService.aidl
index b1f7a39c23..a906a3c2b4 100644
--- a/car-lib/src/android/car/ICarBluetoothUserService.aidl
+++ b/car-lib/src/android/car/ICarBluetoothUserService.aidl
@@ -24,4 +24,5 @@ interface ICarBluetoothUserService {
void closeBluetoothConnectionProxy();
boolean isBluetoothConnectionProxyAvailable(in int profile);
void bluetoothConnectToProfile(in int profile, in BluetoothDevice device);
+ void setProfilePriority(in int profile, in BluetoothDevice device, in int priority);
}