diff options
author | William Escande <wescande@google.com> | 2022-02-08 15:04:02 +0100 |
---|---|---|
committer | William Escande <wescande@google.com> | 2022-02-14 17:54:41 +0000 |
commit | 9c060ea2a01c07dfffba5d5cc56c010eae4e2db1 (patch) | |
tree | 209892264c03e3983fc2675b29cec999f33db2e9 /framework/java/android/bluetooth/BluetoothProfile.java | |
parent | 371420336d7669b85ad3af430e4d1e8eb01456e0 (diff) |
Remove non logical permission on api
Tag: #refactor
Test: build
Merged-In: I6e817cfca8c73f6a4dd3bec3c054bb9bbcdb7be6
Change-Id: I6e817cfca8c73f6a4dd3bec3c054bb9bbcdb7be6
Bug: 217352944
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothProfile.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothProfile.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/java/android/bluetooth/BluetoothProfile.java b/framework/java/android/bluetooth/BluetoothProfile.java index f3540c50ef..190cbf7f9c 100644 --- a/framework/java/android/bluetooth/BluetoothProfile.java +++ b/framework/java/android/bluetooth/BluetoothProfile.java @@ -19,7 +19,6 @@ package android.bluetooth; import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.RequiresNoPermission; -import android.annotation.RequiresPermission; import android.annotation.SuppressLint; import android.annotation.SystemApi; import android.compat.annotation.UnsupportedAppUsage; @@ -413,7 +412,7 @@ public interface BluetoothProfile { */ @SystemApi @NonNull - @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) + @RequiresNoPermission static String getConnectionStateName(int connectionState) { switch (connectionState) { case STATE_DISCONNECTED: @@ -438,7 +437,7 @@ public interface BluetoothProfile { */ @SystemApi @NonNull - @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) + @RequiresNoPermission static String getProfileName(int profile) { switch(profile) { case HEADSET: |