summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorRhed Jao <rhedjao@google.com>2020-10-07 08:06:24 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-10-07 08:06:24 +0000
commitd03db99731a74946e232ca394ed12705e40d13c4 (patch)
treeeaedf8015349b1cf80ddf81355e221d271af0095 /core/java
parent391bd7bf66358862e26d6b92dd45b87faf0ed935 (diff)
parent6b8e3e10af5d8a2363a93cda6cd62303724de56e (diff)
Merge changes from topic "intent_extra_automatic"
* changes: Send extra when automatically removing packages (2/2) Send extra when automatically removing packages (1/2)
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/content/Intent.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index 9a9f165030b0..2f1254f90ccf 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -620,6 +620,7 @@ import java.util.TimeZone;
* <li> {@link #EXTRA_PHONE_NUMBER}
* <li> {@link #EXTRA_REFERRER}
* <li> {@link #EXTRA_REMOTE_INTENT_TOKEN}
+ * <li> {@link #EXTRA_REMOVED_BY_SYSTEM}
* <li> {@link #EXTRA_REPLACING}
* <li> {@link #EXTRA_SHORTCUT_ICON}
* <li> {@link #EXTRA_SHORTCUT_ICON_RESOURCE}
@@ -2464,6 +2465,8 @@ public class Intent implements Parcelable, Cloneable {
* application -- data and code -- is being removed.
* <li> {@link #EXTRA_REPLACING} is set to true if this will be followed
* by an {@link #ACTION_PACKAGE_ADDED} broadcast for the same package.
+ * <li> {@link #EXTRA_REMOVED_BY_SYSTEM} containing boolean field to to signal that the
+ * application was removed automatically without the user-initiated action.
* </ul>
*
* <p class="note">This is a protected intent that can only be sent
@@ -5557,6 +5560,14 @@ public class Intent implements Parcelable, Cloneable {
public static final String EXTRA_DONT_KILL_APP = "android.intent.extra.DONT_KILL_APP";
/**
+ * Used as a boolean extra field in {@link android.content.Intent#ACTION_PACKAGE_REMOVED}
+ * intents to signal that the application was removed automatically without the user-initiated
+ * action.
+ */
+ public static final String EXTRA_REMOVED_BY_SYSTEM =
+ "android.intent.extra.REMOVED_BY_SYSTEM";
+
+ /**
* A String holding the phone number originally entered in
* {@link android.content.Intent#ACTION_NEW_OUTGOING_CALL}, or the actual
* number to call in a {@link android.content.Intent#ACTION_CALL}.