From ae8a171027386a667aa4bcc83b6f64bd44d0133c Mon Sep 17 00:00:00 2001 From: Zhen Zhang Date: Fri, 5 Mar 2021 18:42:59 -0800 Subject: 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 --- core/api/current.txt | 1 + core/java/android/content/Intent.java | 14 ++++++++++++++ 2 files changed, 15 insertions(+) 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 @@ -1900,6 +1900,20 @@ public class Intent implements Parcelable, Cloneable { public static final String ACTION_AUTO_REVOKE_PERMISSIONS = "android.intent.action.AUTO_REVOKE_PERMISSIONS"; + /** + * Activity action: Launch UI to manage unused apps (hibernated apps). + * + *

+ * Input: Nothing. + *

+ *

+ * Output: Nothing. + *

+ */ + @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 -- cgit v1.2.3-59-g8ed1b