From 7e1cd22f57809aaabead8f1a14504e22a94b66b8 Mon Sep 17 00:00:00 2001 From: Gavin Corkery Date: Wed, 10 Feb 2021 22:30:42 +0000 Subject: [PATCH] Add SIGNAL_REBOOT_READINESS permission Adds a new permission (privileged or signature) which will allow the holder to register callbacks with the RebootReadinessManager. Also grants this permission to the shell for testing purposes. Test: atest CtsRebootReadinessTestCases Bug: 161353402 Change-Id: Ide2ec7a0c2b905b4986031f2b6448182b45bb07a --- core/api/system-current.txt | 1 + core/res/AndroidManifest.xml | 7 +++++++ data/etc/privapp-permissions-platform.xml | 2 ++ packages/Shell/AndroidManifest.xml | 3 +++ 4 files changed, 13 insertions(+) diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 74ccbb14f8165..d2115b9cedf86 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -244,6 +244,7 @@ package android { field public static final String SET_WALLPAPER_COMPONENT = "android.permission.SET_WALLPAPER_COMPONENT"; field public static final String SHOW_KEYGUARD_MESSAGE = "android.permission.SHOW_KEYGUARD_MESSAGE"; field public static final String SHUTDOWN = "android.permission.SHUTDOWN"; + field public static final String SIGNAL_REBOOT_READINESS = "android.permission.SIGNAL_REBOOT_READINESS"; field public static final String SOUND_TRIGGER_RUN_IN_BATTERY_SAVER = "android.permission.SOUND_TRIGGER_RUN_IN_BATTERY_SAVER"; field public static final String START_ACTIVITIES_FROM_BACKGROUND = "android.permission.START_ACTIVITIES_FROM_BACKGROUND"; field public static final String START_FOREGROUND_SERVICES_FROM_BACKGROUND = "android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 856657ad8b563..559031250ebf1 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -5452,6 +5452,13 @@ + + + + diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index 0484a9ab582e0..403dc65abbf5a 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -474,6 +474,8 @@ applications that come with the platform + + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index eab0990bb8680..e129924b07249 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -400,6 +400,9 @@ + + +