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>
Thu, 8 Sep 2016 18:03:58 +0000 (18:03 +0000)
commit0ea21bc70eab94068ec4ae8d484f192c77aed43c
tree9fa2104d3e4290f22918923270f5d5ce80197dd8
parent7ec85f9d549971af59f047d5eafd7a829e1541c7
[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