OSDN Git Service

Fix setPairingConfirmation permissions issue (2/2)
authorMarie Janssen <jamuraa@google.com>
Tue, 9 Aug 2016 20:23:39 +0000 (13:23 -0700)
committergitbuildkicker <android-build@google.com>
Tue, 27 Sep 2016 22:58:47 +0000 (15:58 -0700)
commit26f6eb78a61323cb2cae055ee0cee62c95a8f85e
tree31aa881392e34956ab2731b4555ca3f2e6f18612
parent23e6629cf56378634488ea49a8acf40d709effa1
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: I887de32d156e672ec44aa0b286cd7ea7f9f8ad55
(cherry picked from commit 93326cfd9fb8a20081baa9b975275772798cfd80)
core/java/android/bluetooth/BluetoothDevice.java