diff options
| author | 2021-03-31 10:48:59 +0000 | |
|---|---|---|
| committer | 2021-03-31 10:48:59 +0000 | |
| commit | 51a15fab3f140ca833ee86ff68fb41657e87c8fd (patch) | |
| tree | 12aa6d08d8d8ab71550a9e5dff690af657afad66 | |
| parent | e52b6cba86764d0eb49434c9095ca0154865c93d (diff) | |
| parent | 531fcd63ca55eb583ae4a051160fd3bcfd3113c4 (diff) | |
Merge "created FORCE_DEVICE_POLICY_MANAGER_LOG and CLEAR_FREEZE_PERIOD" am: 531fcd63ca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1608093
Change-Id: I6d9bd8c1e97e9b40b7458d7f82466fb665d74f09
| -rw-r--r-- | core/api/test-current.txt | 2 | ||||
| -rw-r--r-- | core/res/AndroidManifest.xml | 10 | ||||
| -rw-r--r-- | packages/Shell/AndroidManifest.xml | 2 | 
3 files changed, 14 insertions, 0 deletions
| diff --git a/core/api/test-current.txt b/core/api/test-current.txt index 2f160e9f4252..65f9204113b2 100644 --- a/core/api/test-current.txt +++ b/core/api/test-current.txt @@ -9,8 +9,10 @@ package android {      field public static final String BRIGHTNESS_SLIDER_USAGE = "android.permission.BRIGHTNESS_SLIDER_USAGE";      field public static final String CHANGE_APP_IDLE_STATE = "android.permission.CHANGE_APP_IDLE_STATE";      field public static final String CLEAR_APP_USER_DATA = "android.permission.CLEAR_APP_USER_DATA"; +    field public static final String CLEAR_FREEZE_PERIOD = "android.permission.CLEAR_FREEZE_PERIOD";      field public static final String CONFIGURE_DISPLAY_BRIGHTNESS = "android.permission.CONFIGURE_DISPLAY_BRIGHTNESS";      field public static final String CONTROL_DEVICE_LIGHTS = "android.permission.CONTROL_DEVICE_LIGHTS"; +    field public static final String FORCE_DEVICE_POLICY_MANAGER_LOGS = "android.permission.FORCE_DEVICE_POLICY_MANAGER_LOGS";      field public static final String FORCE_STOP_PACKAGES = "android.permission.FORCE_STOP_PACKAGES";      field public static final String KEEP_UNINSTALLED_PACKAGES = "android.permission.KEEP_UNINSTALLED_PACKAGES";      field public static final String MANAGE_ACTIVITY_STACKS = "android.permission.MANAGE_ACTIVITY_STACKS"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 4a222721558c..b9c17d781322 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -2562,6 +2562,16 @@          android:label="@string/permlab_manageProfileAndDeviceOwners"          android:description="@string/permdesc_manageProfileAndDeviceOwners" /> +    <!-- @TestApi @hide Allows an application to reset the record of previous system update freeze +         periods. --> +    <permission android:name="android.permission.CLEAR_FREEZE_PERIOD" +                android:protectionLevel="signature" /> + +    <!-- @TestApi @hide Allows an application to force available DevicePolicyManager logs to +         DPC. --> +    <permission android:name="android.permission.FORCE_DEVICE_POLICY_MANAGER_LOGS" +                android:protectionLevel="signature" /> +      <!-- Allows an application to get full detailed information about           recently running tasks, with full fidelity to the real state.           @hide --> diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index b7ce2a30931b..2662437c8f27 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -122,6 +122,8 @@      <uses-permission android:name="android.permission.CREATE_USERS" />      <uses-permission android:name="android.permission.MANAGE_DEVICE_ADMINS" />      <uses-permission android:name="android.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS" /> +    <uses-permission android:name="android.permission.FORCE_DEVICE_POLICY_MANAGER_LOGS" /> +    <uses-permission android:name="android.permission.CLEAR_FREEZE_PERIOD" />      <uses-permission android:name="android.permission.QUERY_USERS" />      <uses-permission android:name="android.permission.MODIFY_QUIET_MODE" />      <uses-permission android:name="android.permission.ACCESS_LOWPAN_STATE"/> |