diff options
| author | Roopa Sattiraju <sattiraju@google.com> | 2022-01-20 10:00:42 -0800 |
|---|---|---|
| committer | Roopa Sattiraju <sattiraju@google.com> | 2022-01-25 15:11:07 -0800 |
| commit | c79383757b5660ffdef796dc4f2862a70200842c (patch) | |
| tree | 4b26201ebc4e6d80ebe51a225e2cc187d7fd44d2 /framework/java/android/bluetooth/BluetoothAdapter.java | |
| parent | d1ff20448345971747eae1f2cff17492cf04eb8e (diff) | |
Moving over core/api/*txt files
Bug: 196026708
Test: Compile
Change-Id: I9cc8086b3e98bfa821b402250dcb9b233178d4b6
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothAdapter.java')
| -rw-r--r-- | framework/java/android/bluetooth/BluetoothAdapter.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/framework/java/android/bluetooth/BluetoothAdapter.java b/framework/java/android/bluetooth/BluetoothAdapter.java index 1700254ba7..8517c2488d 100644 --- a/framework/java/android/bluetooth/BluetoothAdapter.java +++ b/framework/java/android/bluetooth/BluetoothAdapter.java @@ -125,7 +125,8 @@ public final class BluetoothAdapter { /** * Default MAC address reported to a client that does not have the - * android.permission.LOCAL_MAC_ADDRESS permission. + * {@link android.Manifest.permission#LOCAL_MAC_ADDRESS} permission. + * * * @hide */ @@ -1288,13 +1289,12 @@ public final class BluetoothAdapter { * <p>For example, "00:11:22:AA:BB:CC". * * @return Bluetooth hardware address as string + * + * Requires {@code android.Manifest.permission#LOCAL_MAC_ADDRESS} and + * {@link android.Manifest.permission#BLUETOOTH_CONNECT}. */ @RequiresLegacyBluetoothPermission @RequiresBluetoothConnectPermission - @RequiresPermission(allOf = { - android.Manifest.permission.BLUETOOTH_CONNECT, - android.Manifest.permission.LOCAL_MAC_ADDRESS, - }) public String getAddress() { try { return mManagerService.getAddress(mAttributionSource); @@ -3585,6 +3585,7 @@ public final class BluetoothAdapter { return Collections.unmodifiableSet(deviceSet); } + @SuppressLint("GenericException") protected void finalize() throws Throwable { try { removeServiceStateCallback(mManagerCallback); |
