Added SystemApi annotation to permission used in Bluetooth

As the Bluetooth module will be built as an apex, we need
to remove all hidden API usages. BluetoothManagerService
is using MANAGE_BLUETOOTH_WHEN_WIRELESS_CONSENT_REQUIRED
so we need to expose it as SystemAPI

Tag: #feature
Bug: 211851706
Test: make
Change-Id: Ia9da9ddefc7e466f13a969a2877068ef97a032f9
This commit is contained in:
Etienne Ruffieux
2022-01-12 14:25:12 +00:00
parent 0a9079431b
commit 7facfb2cd3
2 changed files with 4 additions and 2 deletions

View File

@@ -138,6 +138,7 @@ package android {
field public static final String MANAGE_APP_PREDICTIONS = "android.permission.MANAGE_APP_PREDICTIONS";
field public static final String MANAGE_APP_TOKENS = "android.permission.MANAGE_APP_TOKENS";
field public static final String MANAGE_AUTO_FILL = "android.permission.MANAGE_AUTO_FILL";
field public static final String MANAGE_BLUETOOTH_WHEN_WIRELESS_CONSENT_REQUIRED = "android.permission.MANAGE_BLUETOOTH_WHEN_WIRELESS_CONSENT_REQUIRED";
field public static final String MANAGE_CARRIER_OEM_UNLOCK_STATE = "android.permission.MANAGE_CARRIER_OEM_UNLOCK_STATE";
field public static final String MANAGE_CA_CERTIFICATES = "android.permission.MANAGE_CA_CERTIFICATES";
field public static final String MANAGE_CONTENT_CAPTURE = "android.permission.MANAGE_CONTENT_CAPTURE";

View File

@@ -2114,8 +2114,9 @@
<permission android:name="android.permission.NFC_HANDOVER_STATUS"
android:protectionLevel="signature|privileged" />
<!-- @hide Allows internal management of Bluetooth state when on wireless consent mode.
<p>Not for use by third-party applications. -->
<!-- @SystemApi Allows internal management of Bluetooth state when on wireless consent mode.
<p>Not for use by third-party applications.
@hide -->
<permission android:name="android.permission.MANAGE_BLUETOOTH_WHEN_WIRELESS_CONSENT_REQUIRED"
android:protectionLevel="signature" />