OSDN Git Service

[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)
authorAjay Panicker <apanicke@google.com>
Thu, 8 Sep 2016 18:01:29 +0000 (11:01 -0700)
committerAjay Panicker <apanicke@google.com>
Tue, 20 Sep 2016 23:47:09 +0000 (23:47 +0000)
commitbb9b38b95706052c296b287a9697dfef9b7c56af
tree693400525e20111b5b702f118956b69ab6662ced
parentaf97c8805f13caac4e54307032786e2d806999a3
[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)

setPairingConfirmation was set to only require BLUETOOTH_ADMIN
permission which shouldn't be able to set the confirmation itself.

This is restricted to BLUETOOTH_PRIVILEGED permission.

Bug: 29043989
Change-Id: Iddc935f0b02f5ff56e930914b4b664377e786184
core/java/android/bluetooth/BluetoothDevice.java