Add @SystemApi annotations to ACTION_QUERY_PACKAGE_RESTART and related.
Make Intent.ACTION_QUERY_PACKAGE_RESTART and Intent.EXTRA_PACKAGES
accessible from GmsCore so that location and context components can
properly respond to the broadcast.
BUG: 19298558
Change-Id: I4b5cf4991c69d3aa745d03271187c65794df10b2
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index 37a46be..582802b 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -1760,6 +1760,7 @@
* <p class="note">This is a protected intent that can only be sent
* by the system.
*/
+ @SystemApi
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ACTION_QUERY_PACKAGE_RESTART = "android.intent.action.QUERY_PACKAGE_RESTART";
/**
@@ -3252,6 +3253,7 @@
/**
* @hide String array of package names.
*/
+ @SystemApi
public static final String EXTRA_PACKAGES = "android.intent.extra.PACKAGES";
/**