Ensure AdapterService and GattService are accessed from BluetoothManagerService only
Both AdapterService and GattService were designed with just one client
in mind - BluetoothManagerService. Ensure 3p apps can't bind to it.
ACCESS_BLUETOOTH_SHARE permission have "signature" protection level,
which makes sure only apps signed with same key can use it.
Test: compile, ensure Bluetooth functioning, POC is throwing security
exception and no longer reproducing bug
1 file changed