summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Zhen Zhang <zzhen@google.com> 2021-03-05 18:42:59 -0800
committer Kevin Han <kevhan@google.com> 2021-03-11 15:41:53 -0800
commitae8a171027386a667aa4bcc83b6f64bd44d0133c (patch)
tree715f55c634941b9cd92ffbfc81bc2fac6869c812
parent402f5476fc29693b7ff5f8b10ce19924124e943d (diff)
Add intent for going to "Unused apps"
Create a new intent for launching the unused apps UI page from outside permission controller module. Bug: 181172051 Test: Built successfully Change-Id: I3f601425659a88f20683c0a1b1ab318f2b4e5ecf
-rw-r--r--core/api/current.txt1
-rw-r--r--core/java/android/content/Intent.java14
2 files changed, 15 insertions, 0 deletions
diff --git a/core/api/current.txt b/core/api/current.txt
index 023fa4cb1268..aea0baaf6ff2 100644
--- a/core/api/current.txt
+++ b/core/api/current.txt
@@ -10918,6 +10918,7 @@ package android.content {
field public static final String ACTION_MANAGED_PROFILE_UNLOCKED = "android.intent.action.MANAGED_PROFILE_UNLOCKED";
field public static final String ACTION_MANAGE_NETWORK_USAGE = "android.intent.action.MANAGE_NETWORK_USAGE";
field public static final String ACTION_MANAGE_PACKAGE_STORAGE = "android.intent.action.MANAGE_PACKAGE_STORAGE";
+ field public static final String ACTION_MANAGE_UNUSED_APPS = "android.intent.action.MANAGE_UNUSED_APPS";
field public static final String ACTION_MEDIA_BAD_REMOVAL = "android.intent.action.MEDIA_BAD_REMOVAL";
field public static final String ACTION_MEDIA_BUTTON = "android.intent.action.MEDIA_BUTTON";
field public static final String ACTION_MEDIA_CHECKING = "android.intent.action.MEDIA_CHECKING";
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index d352b273f882..a7a3abdfc027 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -1901,6 +1901,20 @@ public class Intent implements Parcelable, Cloneable {
"android.intent.action.AUTO_REVOKE_PERMISSIONS";
/**
+ * Activity action: Launch UI to manage unused apps (hibernated apps).
+ *
+ * <p>
+ * Input: Nothing.
+ * </p>
+ * <p>
+ * Output: Nothing.
+ * </p>
+ */
+ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
+ public static final String ACTION_MANAGE_UNUSED_APPS =
+ "android.intent.action.MANAGE_UNUSED_APPS";
+
+ /**
* Activity action: Launch UI to review permissions for an app.
* The system uses this intent if permission review for apps not
* supporting the new runtime permissions model is enabled. In