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
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -5452,6 +5452,13 @@
|
||||
<permission android:name="android.permission.MANAGE_GAME_MODE"
|
||||
android:protectionLevel="signature" />
|
||||
|
||||
<!-- @SystemApi Allows the holder to register callbacks to inform the RebootReadinessManager
|
||||
when they are performing reboot-blocking work.
|
||||
@hide -->
|
||||
<permission android:name="android.permission.SIGNAL_REBOOT_READINESS"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
|
||||
<!-- Attribution for Geofencing service. -->
|
||||
<attribution android:tag="GeofencingService" android:label="@string/geofencing_service"/>
|
||||
<!-- Attribution for Country Detector. -->
|
||||
|
||||
@@ -474,6 +474,8 @@ applications that come with the platform
|
||||
<!-- Permission required for GTS test - GtsAssistIntentTestCases -->
|
||||
<permission name="android.permission.MANAGE_SOUND_TRIGGER" />
|
||||
<permission name="android.permission.CAPTURE_AUDIO_HOTWORD" />
|
||||
<!-- Permission required for CTS test - CtsRebootReadinessTestCases -->
|
||||
<permission name="android.permission.SIGNAL_REBOOT_READINESS" />
|
||||
</privapp-permissions>
|
||||
|
||||
<privapp-permissions package="com.android.statementservice">
|
||||
|
||||
@@ -400,6 +400,9 @@
|
||||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
|
||||
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
|
||||
|
||||
<!-- Permission required for CTS test - CtsRebootReadinessTestCases -->
|
||||
<uses-permission android:name="android.permission.SIGNAL_REBOOT_READINESS" />
|
||||
|
||||
<application android:label="@string/app_label"
|
||||
android:theme="@android:style/Theme.DeviceDefault.DayNight"
|
||||
android:defaultToDeviceProtectedStorage="true"
|
||||
|
||||
Reference in New Issue
Block a user