summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShijian Li <shijianli@google.com>2017-01-09 14:54:15 (GMT)
committerShijian Li <shijianli@google.com>2017-01-09 14:54:15 (GMT)
commitf7d0ef9f74ece852c397e4e5c2f617986b24260c (patch)
tree47c80d81ee5723b28eb134361e14a532b8d8e108
parent1019d73896ca8ec9baac1492c08443c7a6339380 (diff)
downloadandroid_packages_apps_PackageInstaller-f7d0ef9f74ece852c397e4e5c2f617986b24260c.zip
android_packages_apps_PackageInstaller-f7d0ef9f74ece852c397e4e5c2f617986b24260c.tar.gz
android_packages_apps_PackageInstaller-f7d0ef9f74ece852c397e4e5c2f617986b24260c.tar.bz2
Don't set USER_FIXED when revoking a permission inside Settings -> App.
Test: Manually tested on a permission test apk. Bug: 34157400 Change-Id: Ia2ce3ac6c567f869535ec92a896c6d0fd9ec6318
-rw-r--r--src/com/android/packageinstaller/permission/ui/wear/AppPermissionsFragmentWear.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/packageinstaller/permission/ui/wear/AppPermissionsFragmentWear.java b/src/com/android/packageinstaller/permission/ui/wear/AppPermissionsFragmentWear.java
index d2d1f71..5051f5e 100644
--- a/src/com/android/packageinstaller/permission/ui/wear/AppPermissionsFragmentWear.java
+++ b/src/com/android/packageinstaller/permission/ui/wear/AppPermissionsFragmentWear.java
@@ -206,7 +206,7 @@ public final class AppPermissionsFragmentWear extends PreferenceFragment {
if((Boolean) newVal) {
group.grantRuntimePermissions(false, new String[]{ perm.name });
} else {
- group.revokeRuntimePermissions(true, new String[]{ perm.name });
+ group.revokeRuntimePermissions(false, new String[]{ perm.name });
}
return true;
});