OSDN Git Service

Fix setPairingConfirmation permissions issue (1/2)
authorAjay Panicker <apanicke@google.com>
Thu, 8 Sep 2016 17:55:51 +0000 (10:55 -0700)
committerAjay Panicker <apanicke@google.com>
Thu, 8 Sep 2016 18:57:08 +0000 (18:57 +0000)
commitdf3304a333d8c385f9d5cb0e691fb72d940ec273
treefa0926d344e2f9a35e95c4a319542625fa85009d
parentdbd254d61015f8d200a71361685f61b4a996ec1c
Fix setPairingConfirmation permissions issue (1/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: Iae8e31b25795989446265fdcc5eb27e6ffaf29aa
src/com/android/bluetooth/btservice/AdapterService.java