summaryrefslogtreecommitdiff
path: root/framework-s/java
diff options
context:
space:
mode:
Diffstat (limited to 'framework-s/java')
-rw-r--r--framework-s/java/android/app/ecm/EnhancedConfirmationManager.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/framework-s/java/android/app/ecm/EnhancedConfirmationManager.java b/framework-s/java/android/app/ecm/EnhancedConfirmationManager.java
index 290388558..4248a429c 100644
--- a/framework-s/java/android/app/ecm/EnhancedConfirmationManager.java
+++ b/framework-s/java/android/app/ecm/EnhancedConfirmationManager.java
@@ -213,7 +213,7 @@ public final class EnhancedConfirmationManager {
* The setting is restricted because the restricted app op is set for the given package
* @hide
*/
- public static final String REASON_APP_OP_RESTRICTED = "app_op_restricted";
+ public static final String REASON_PACKAGE_RESTRICTED = "package_restricted";
/** A map of ECM states to their corresponding app op states */
@@ -367,8 +367,9 @@ public final class EnhancedConfirmationManager {
intent.putExtra(Intent.EXTRA_UID, uid);
intent.putExtra(Intent.EXTRA_SUBJECT, settingIdentifier);
try {
- intent.putExtra(Intent.EXTRA_REASON, mService.getRestrictionReason(packageName,
- settingIdentifier, UserHandle.getUserHandleForUid(uid).getIdentifier()));
+ String restrictionReason = mService.getRestrictionReason(packageName,
+ settingIdentifier, UserHandle.getUserHandleForUid(uid).getIdentifier());
+ intent.putExtra(Intent.EXTRA_REASON, restrictionReason);
} catch (SecurityException | RemoteException e) {
// The caller of this method does not have permission to read the ECM state, so we
// won't include it in the return