commit | a85834bfb9797918c2d5b6465dbf8502cddf7f13 | [log] [tgz] |
---|---|---|
author | Chienyuan <chienyuanhuang@google.com> | Wed Feb 26 17:31:13 2020 +0800 |
committer | Chienyuan <chienyuanhuang@google.com> | Wed Feb 26 17:31:13 2020 +0800 |
tree | 340b1e45951cc1e57e59ffdaf7e429ae03a99e75 | |
parent | 9ea89bf8171156b8ff36da321e43cccfee1c753c [diff] |
PBAP: send AUTHORIZED message if permission is ACCESS_ALLOWED Bug: 150113019 Test: manual Change-Id: Ib670c7ae8098cca8b21e0ae29970eddc3b41c8ec Merged-In: Ib670c7ae8098cca8b21e0ae29970eddc3b41c8ec
diff --git a/android/app/src/com/android/bluetooth/pbap/BluetoothPbapService.java b/android/app/src/com/android/bluetooth/pbap/BluetoothPbapService.java index 630c4b6..f853af7 100644 --- a/android/app/src/com/android/bluetooth/pbap/BluetoothPbapService.java +++ b/android/app/src/com/android/bluetooth/pbap/BluetoothPbapService.java
@@ -770,6 +770,7 @@ if (permission == BluetoothDevice.ACCESS_ALLOWED) { setConnectionPolicy(device, BluetoothProfile.CONNECTION_POLICY_ALLOWED); + stateMachine.sendMessage(PbapStateMachine.AUTHORIZED); } else if (permission == BluetoothDevice.ACCESS_REJECTED) { stateMachine.sendMessage(PbapStateMachine.REJECTED); } else { // permission == BluetoothDevice.ACCESS_UNKNOWN