diff options
author | Jeff Sharkey <jsharkey@android.com> | 2021-04-16 09:53:23 -0600 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2021-04-16 13:31:22 -0600 |
commit | 5ba8bfca7e9adf5c6d8ee8180aebad6f04037d6c (patch) | |
tree | 77277ced71173442b50512a28efa07b01d55dd00 /framework/java/android/bluetooth/le/PeriodicAdvertisingManager.java | |
parent | 36582c19d128599272825eea29793dc475f6c9fd (diff) |
More Bluetooth API annotation updates.
This change adds a "BluetoothPermissionChecker" that ensures that
all Bluetooth permission annotations are consistent. In addition, it
verifies that all Bluetooth public APIs have been audited to be
permission protected where relevant.
We've currently standardized on saying that APIs that return device
or Bluetooth state information (without sharing details about any
particular remote Bluetooth device) do not need to be permission
protected.
This change is only annotations and has no behavior changes.
Bug: 183626724
Test: ./build/soong/soong_ui.bash --make-mode Bluetooth RUN_ERROR_PRONE=true
Change-Id: Ie80b15b058359bf1e9a6ee881b89cb3e5b584ca1
Diffstat (limited to 'framework/java/android/bluetooth/le/PeriodicAdvertisingManager.java')
-rw-r--r-- | framework/java/android/bluetooth/le/PeriodicAdvertisingManager.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/le/PeriodicAdvertisingManager.java b/framework/java/android/bluetooth/le/PeriodicAdvertisingManager.java index 9ea6c4866f..26978e3980 100644 --- a/framework/java/android/bluetooth/le/PeriodicAdvertisingManager.java +++ b/framework/java/android/bluetooth/le/PeriodicAdvertisingManager.java @@ -17,6 +17,7 @@ package android.bluetooth.le; import android.annotation.RequiresPermission; +import android.annotation.SuppressLint; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.IBluetoothGatt; @@ -208,6 +209,7 @@ public final class PeriodicAdvertisingManager { } } + @SuppressLint("AndroidFrameworkBluetoothPermission") private IPeriodicAdvertisingCallback wrap(PeriodicAdvertisingCallback callback, Handler handler) { return new IPeriodicAdvertisingCallback.Stub() { |