From abc70c251ab7f68fbbecea9a6d70728848a6b80f Mon Sep 17 00:00:00 2001 From: Gavin Corkery Date: Tue, 30 Mar 2021 14:18:50 +0100 Subject: [PATCH] Move REBOOT_READY broadcast into android.scheduling Moves REBOOT_READY and EXTRA_IS_READY_TO_REBOOT out of the Intent class. Instead, these will be defined in the Device Scheduling module. Also cleans up some documentation. Bug: 183938070 Test: Builds Change-Id: Ifd53e95d5eff2aefe025567473c1a769e596392e --- core/api/system-current.txt | 2 -- core/java/android/content/Context.java | 2 +- core/java/android/content/Intent.java | 25 ------------------------- core/res/AndroidManifest.xml | 2 +- 4 files changed, 2 insertions(+), 29 deletions(-) diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 92c21f3ef3fc5..589205c8923f8 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -2333,7 +2333,6 @@ package android.content { field public static final String ACTION_PENDING_INCIDENT_REPORTS_CHANGED = "android.intent.action.PENDING_INCIDENT_REPORTS_CHANGED"; field public static final String ACTION_PRE_BOOT_COMPLETED = "android.intent.action.PRE_BOOT_COMPLETED"; field public static final String ACTION_QUERY_PACKAGE_RESTART = "android.intent.action.QUERY_PACKAGE_RESTART"; - field public static final String ACTION_REBOOT_READY = "android.intent.action.REBOOT_READY"; field public static final String ACTION_RESOLVE_INSTANT_APP_PACKAGE = "android.intent.action.RESOLVE_INSTANT_APP_PACKAGE"; field @RequiresPermission(android.Manifest.permission.REVIEW_ACCESSIBILITY_SERVICES) public static final String ACTION_REVIEW_ACCESSIBILITY_SERVICES = "android.intent.action.REVIEW_ACCESSIBILITY_SERVICES"; field @RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS) public static final String ACTION_REVIEW_ONGOING_PERMISSION_USAGE = "android.intent.action.REVIEW_ONGOING_PERMISSION_USAGE"; @@ -2358,7 +2357,6 @@ package android.content { field public static final String EXTRA_INSTANT_APP_HOSTNAME = "android.intent.extra.INSTANT_APP_HOSTNAME"; field public static final String EXTRA_INSTANT_APP_SUCCESS = "android.intent.extra.INSTANT_APP_SUCCESS"; field public static final String EXTRA_INSTANT_APP_TOKEN = "android.intent.extra.INSTANT_APP_TOKEN"; - field public static final String EXTRA_IS_READY_TO_REBOOT = "android.intent.extra.IS_READY_TO_REBOOT"; field public static final String EXTRA_LONG_VERSION_CODE = "android.intent.extra.LONG_VERSION_CODE"; field public static final String EXTRA_ORIGINATING_UID = "android.intent.extra.ORIGINATING_UID"; field public static final String EXTRA_PACKAGES = "android.intent.extra.PACKAGES"; diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 6ff296c9799f8..7ea5b8f169521 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -4829,7 +4829,7 @@ public abstract class Context { /** * Use with {@link #getSystemService(String)} to retrieve an - * {@link android.scheduling.RebootReadinessManagerService} for communicating + * {@link android.scheduling.RebootReadinessManager} for communicating * with the reboot readiness detector. * * @see #getSystemService(String) diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 96b8fbe293f50..31f0d8fd1a558 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -4794,31 +4794,6 @@ public class Intent implements Parcelable, Cloneable { public static final String ACTION_PACKAGE_NEEDS_INTEGRITY_VERIFICATION = "android.intent.action.PACKAGE_NEEDS_INTEGRITY_VERIFICATION"; - /** - * Broadcast Action: Indicates that the device's reboot readiness has changed. - * - *

This broadcast will be sent with an extra that indicates whether or not the device is - * ready to reboot. - *

- * The receiver must have the {@link android.Manifest.permission#REBOOT} permission. - *

- * This is a protected intent that can only be sent by the system. - * - * @see #EXTRA_IS_READY_TO_REBOOT - * @hide - */ - @SystemApi - @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) - public static final String ACTION_REBOOT_READY = "android.intent.action.REBOOT_READY"; - - /** - * A boolean extra used with {@link #ACTION_REBOOT_READY} which indicates if the - * device is ready to reboot. - * Will be {@code true} if ready to reboot, {@code false} otherwise. - * @hide - */ - @SystemApi - public static final String EXTRA_IS_READY_TO_REBOOT = "android.intent.extra.IS_READY_TO_REBOOT"; // --------------------------------------------------------------------- // --------------------------------------------------------------------- diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index f484d452e77c5..8bfae27ac852e 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -694,7 +694,7 @@ - +