Skip to content

Commit ae5fbb0

Browse files
alichwachristian bejram
authored andcommitted
BT: Wrong publishing result of bonding error code.
During bonding bluez stack publish the error code over dbus. JNI gets the error, in this ER case: org.bluez.Error.AuthenticationFailed (Authentication Failed), and then wrong call to overloaded setBondState() is made on callstack using default result code parameter as 0 (BOND_SUCCESS). Change-Id: I6f743cedc76e63d0c2a35e89d3aa48267b89c06e Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
1 parent eb8171b commit ae5fbb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/server/BluetoothService.java

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ public synchronized int getBondState(String address) {
13511351
}
13521352

13531353
/*package*/ synchronized boolean setBondState(String address, int state, int reason) {
1354-
mBondState.setBondState(address.toUpperCase(), state);
1354+
mBondState.setBondState(address.toUpperCase(), state, reason);
13551355
return true;
13561356
}
13571357

0 commit comments

Comments
 (0)