diff options
author | William Escande <wescande@google.com> | 2022-02-08 15:04:02 +0100 |
---|---|---|
committer | William Escande <wescande@google.com> | 2022-02-08 14:14:22 +0000 |
commit | 44ed870246cd9c9f8c6fcdaf76d6cfdcd9ead6ee (patch) | |
tree | 129cebf1cc42e3222f2b2b371342d95299c7d434 /framework/java/android/bluetooth/BluetoothProfile.java | |
parent | 1bf39c174bba236f4daa83584679ecd733ee3aa7 (diff) |
Remove non logical permission on api
Tag: #refactor
Test: build
Change-Id: I6e817cfca8c73f6a4dd3bec3c054bb9bbcdb7be6
Ignore-AOSP-First: no such api on aosp
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: |