Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7facfb2c authored by Etienne Ruffieux's avatar Etienne Ruffieux
Browse files

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
parent 0a907943
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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";
+3 −2
Original line number Diff line number Diff line
@@ -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" />