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)
committerAjay Panicker <apanicke@google.com>
Thu, 8 Sep 2016 18:15:26 +0000 (18:15 +0000)
commit93326cfd9fb8a20081baa9b975275772798cfd80
tree6e8071705dacd52061ffd6fc3a4794e4112beb85
parent014016cf32fcac77c71acfae644755b4690f5ba8
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
core/java/android/bluetooth/BluetoothDevice.java