summaryrefslogtreecommitdiff
path: root/PermissionController/src/com/android/permissioncontroller/Constants.java
diff options
context:
space:
mode:
authorKevin Han <kevhan@google.com>2022-06-22 12:58:53 -0700
committerKevin Han <kevhan@google.com>2022-07-07 21:17:20 +0000
commitf714da089a1fc37c78c6ee5a5620674e0d8f0c5d (patch)
treee6ba69a78fcb946f7313ab6b3d2ee7527a814921 /PermissionController/src/com/android/permissioncontroller/Constants.java
parentc50897c350108d82bf20459e93f70fd087228fc8 (diff)
downloadPermission-f714da089a1fc37c78c6ee5a5620674e0d8f0c5d.tar.gz
Add auto-revoked apps as a privacy source
We add whether apps were auto-revoked recently as a privacy source. The only real call to action here is to review the unused apps, and if the user goes to the page, the card is removed. We also persist whether the user needs to review the unused apps and clear this when the user does visit the page. This ensures the card persists across SC being closed / device reboots Bug: 224846118 Test: atest AutoRevokeTest Change-Id: Iff61f9a31449a9dfc0f04ad36d1f79c47ff268ae
Diffstat (limited to 'PermissionController/src/com/android/permissioncontroller/Constants.java')
-rw-r--r--PermissionController/src/com/android/permissioncontroller/Constants.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/PermissionController/src/com/android/permissioncontroller/Constants.java b/PermissionController/src/com/android/permissioncontroller/Constants.java
index b69405812..05ed86c94 100644
--- a/PermissionController/src/com/android/permissioncontroller/Constants.java
+++ b/PermissionController/src/com/android/permissioncontroller/Constants.java
@@ -277,6 +277,21 @@ public class Constants {
*/
public static final String OS_PACKAGE_NAME = "android";
+ /**
+ * Source id for safety center source for unused apps.
+ */
+ public static final String UNUSED_APPS_SAFETY_CENTER_SOURCE_ID = "AndroidPermissionAutoRevoke";
+
+ /**
+ * Issue id for safety center issue for unused apps.
+ */
+ public static final String UNUSED_APPS_SAFETY_CENTER_ISSUE_ID = "unused_apps_issue";
+
+ /**
+ * Action id for safety center "See unused apps" action.
+ */
+ public static final String UNUSED_APPS_SAFETY_CENTER_SEE_UNUSED_APPS_ID = "see_unused_apps";
+
// TODO(b/231624295) add to API
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
public static final String OPSTR_RECEIVE_AMBIENT_TRIGGER_AUDIO =