summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2021-05-21 00:38:53 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-05-21 00:38:53 +0000
commitd0bcac4e41943d380f85ae3b68dbbdbf939dcbf0 (patch)
tree79a4459851eb182c241f725232431fd63e97ba9c /core/java
parentad6ef1c7aab36625d12c8fc04718bea828ce63e3 (diff)
parentb8488603d6932262e652b740cbf75b9d580caffb (diff)
Merge "Avoid a SecurityExcetion crash" into sc-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/app/AppOpsManager.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/app/AppOpsManager.java b/core/java/android/app/AppOpsManager.java
index 9c51236e2997..53502d4e933f 100644
--- a/core/java/android/app/AppOpsManager.java
+++ b/core/java/android/app/AppOpsManager.java
@@ -3058,11 +3058,24 @@ public class AppOpsManager {
*/
public boolean isRecordAudioRestrictionExcept;
+ /**
+ * Is attribution tag not null and not contained in the package attributions
+ */
+ public boolean isAttributionTagNotFound = false;
+
public RestrictionBypass(boolean isPrivileged, boolean isRecordAudioRestrictionExcept) {
this.isPrivileged = isPrivileged;
this.isRecordAudioRestrictionExcept = isRecordAudioRestrictionExcept;
}
+ public void setIsAttributionTagNotFound(boolean isAttributionTagNotFound) {
+ this.isAttributionTagNotFound = isAttributionTagNotFound;
+ }
+
+ public boolean getIsAttributionTagNotFound() {
+ return this.isAttributionTagNotFound;
+ }
+
public static RestrictionBypass UNRESTRICTED = new RestrictionBypass(true, true);
}