Introduce a permission to trigger lost mode

* This permission will be included with
  the DEVICE_MANAGER role

Bug: 206945072
Test: atest CtsPermission2TestCases
Change-Id: Ie4c8767bf89151a9d9e152c80048c634229469cd
This commit is contained in:
Alex Johnston
2022-01-21 12:04:57 +00:00
parent 9c74d73471
commit b1cdcb26a9
2 changed files with 13 additions and 0 deletions

View File

@@ -313,6 +313,7 @@ package android {
field public static final String SYSTEM_CAMERA = "android.permission.SYSTEM_CAMERA";
field public static final String TETHER_PRIVILEGED = "android.permission.TETHER_PRIVILEGED";
field public static final String TOGGLE_AUTOMOTIVE_PROJECTION = "android.permission.TOGGLE_AUTOMOTIVE_PROJECTION";
field public static final String TRIGGER_LOST_MODE = "android.permission.TRIGGER_LOST_MODE";
field public static final String TV_INPUT_HARDWARE = "android.permission.TV_INPUT_HARDWARE";
field public static final String TV_VIRTUAL_REMOTE_CONTROLLER = "android.permission.TV_VIRTUAL_REMOTE_CONTROLLER";
field public static final String UNLIMITED_SHORTCUTS_API_CALLS = "android.permission.UNLIMITED_SHORTCUTS_API_CALLS";

View File

@@ -2306,6 +2306,18 @@
<permission android:name="android.permission.MANAGE_FACTORY_RESET_PROTECTION"
android:protectionLevel="signature|privileged"/>
<!-- ======================================== -->
<!-- Permissions for lost mode -->
<!-- ======================================== -->
<eat-comment />
<!-- @SystemApi Allows an application to trigger lost mode on an organization-owned device.
<p>Not for use by third-party applications.
@hide
-->
<permission android:name="android.permission.TRIGGER_LOST_MODE"
android:protectionLevel="signature|role"/>
<!-- ================================== -->
<!-- Permissions for accessing hardware -->
<!-- ================================== -->