summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothPbapClient.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2021-04-29 07:12:20 -0600
committerJeff Sharkey <jsharkey@android.com>2021-04-29 13:55:07 -0600
commita2d365484c43a19ab6f67152651d61f3b0667b47 (patch)
treeb1e0d4963d4e9156f3662c1be494a4f332db0ae1 /framework/java/android/bluetooth/BluetoothPbapClient.java
parent19a8d096ae4e76490be422c7033f69896199421c (diff)
Ensure privileged APIs require runtime permission.
When users revoke a runtime permission, they expect all interactions to be blocked, including those protected by the BLUETOOTH_PRIVILEGED permission. This change finishes applying that policy to any remaining Bluetooth APIs which didn't already implement it. To keep the implementation straightforward, this change does "data delivery" checks when registering for callbacks; the ideal behavior would be to wait until data is actually delivered through the callbacks, but RemoteCallbackList doesn't have support for AttributionSource yet. Bug: 186405452 Test: atest BluetoothInstrumentationTests Change-Id: Idd7be143eb8baff020a0718065293baae708041b
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothPbapClient.java')
0 files changed, 0 insertions, 0 deletions