OSDN Git Service

BT: Wrong publishing result of bonding error code.
authorArek Lichwa <arkadiusz.lichwa@tieto.com>
Wed, 23 Feb 2011 10:52:34 +0000 (11:52 +0100)
committerchristian bejram <christian.bejram@stericsson.com>
Thu, 5 May 2011 08:41:25 +0000 (10:41 +0200)
commitae5fbb0b4363a2a399e92e310777d7a955a25370
tree9fda240e89a8584e59eac21b71c619a2c7189bdd
parenteb8171bcff9bd980dbdfc99b2d843a5bcc0ae3e5
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>
core/java/android/server/BluetoothService.java [changed mode: 0644->0755]