summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Eugene Susla <eugenesusla@google.com> 2020-03-14 09:16:29 -0700
committer Eugene Susla <eugenesusla@google.com> 2020-03-14 09:16:43 -0700
commit1d7a7910e4bb4f7b68f2d3f9a5fa068bd53e76dc (patch)
tree9285c766b4f680451d9cf7264ede54d243a8cf79
parentc063140b6fda65c2891d78092ec9080ba334a8f7 (diff)
Add missing OPSTR for OPSTR_AUTO_REVOKE_MANAGED_BY_INSTALLER
Fixes: 151506845 Test: Ensure no error on boot Change-Id: I912fb0c2058ef8db4a58b2c05a1d142a7d7d22cc
-rw-r--r--core/java/android/app/AppOpsManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/app/AppOpsManager.java b/core/java/android/app/AppOpsManager.java
index cdf446467a5e..51bcdf5ddbbc 100644
--- a/core/java/android/app/AppOpsManager.java
+++ b/core/java/android/app/AppOpsManager.java
@@ -1381,6 +1381,10 @@ public class AppOpsManager {
public static final String OPSTR_AUTO_REVOKE_PERMISSIONS_IF_UNUSED =
"android:auto_revoke_permissions_if_unused";
+ /** @hide Auto-revoke app permissions if app is unused for an extended period */
+ public static final String OPSTR_AUTO_REVOKE_MANAGED_BY_INSTALLER =
+ "android:auto_revoke_managed_by_installer";
+
/** @hide Communicate cross-profile within the same profile group. */
@SystemApi
public static final String OPSTR_INTERACT_ACROSS_PROFILES = "android:interact_across_profiles";
@@ -1686,6 +1690,7 @@ public class AppOpsManager {
OPSTR_LOADER_USAGE_STATS,
OPSTR_ACCESS_CALL_AUDIO,
OPSTR_AUTO_REVOKE_PERMISSIONS_IF_UNUSED,
+ OPSTR_AUTO_REVOKE_MANAGED_BY_INSTALLER,
};
/**
@@ -1791,6 +1796,7 @@ public class AppOpsManager {
"LOADER_USAGE_STATS",
"ACCESS_CALL_AUDIO",
"AUTO_REVOKE_PERMISSIONS_IF_UNUSED",
+ "AUTO_REVOKE_MANAGED_BY_INSTALLER",
};
/**
@@ -2004,6 +2010,7 @@ public class AppOpsManager {
null, // LOADER_USAGE_STATS
null, // ACCESS_CALL_AUDIO
null, // AUTO_REVOKE_PERMISSIONS_IF_UNUSED
+ null, // AUTO_REVOKE_MANAGED_BY_INSTALLER
};
/**
@@ -2109,6 +2116,7 @@ public class AppOpsManager {
null, // LOADER_USAGE_STATS
null, // ACCESS_CALL_AUDIO
null, // AUTO_REVOKE_PERMISSIONS_IF_UNUSED
+ null, // AUTO_REVOKE_MANAGED_BY_INSTALLER
};
/**
@@ -2322,6 +2330,7 @@ public class AppOpsManager {
false, // LOADER_USAGE_STATS
false, // ACCESS_CALL_AUDIO
false, // AUTO_REVOKE_PERMISSIONS_IF_UNUSED
+ false, // AUTO_REVOKE_MANAGED_BY_INSTALLER
};
/**