summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@google.com>2015-08-21 18:13:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-08-21 18:13:47 +0000
commit9b724fd6ddd5be3b21f9fea7977bd573659e7ecc (patch)
treeca514d0ed80723487b8765b6efb97d4a6b70c7ae
parentab1e590001b2f7c835b1ff25e11529ff28a697ce (diff)
parent3c093f94a82a7b013dd93edf3f5811aa3763af4b (diff)
downloadandroid_packages_apps_PackageInstaller-9b724fd6ddd5be3b21f9fea7977bd573659e7ecc.tar.gz
android_packages_apps_PackageInstaller-9b724fd6ddd5be3b21f9fea7977bd573659e7ecc.tar.bz2
android_packages_apps_PackageInstaller-9b724fd6ddd5be3b21f9fea7977bd573659e7ecc.zip
Merge "Show location permission group, even when fixed." into mnc-dev
-rw-r--r--src/com/android/packageinstaller/permission/utils/Utils.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/packageinstaller/permission/utils/Utils.java b/src/com/android/packageinstaller/permission/utils/Utils.java
index 552d4ad4..ac47025f 100644
--- a/src/com/android/packageinstaller/permission/utils/Utils.java
+++ b/src/com/android/packageinstaller/permission/utils/Utils.java
@@ -79,7 +79,8 @@ public class Utils {
public static boolean shouldShowPermission(AppPermissionGroup group) {
// We currently will not show permissions fixed by the system.
// which is what the system does for system components.
- if (group.isSystemFixed()) {
+ if (group.isSystemFixed()
+ && !Manifest.permission_group.LOCATION.equals(group.getName())) {
return false;
}
@@ -102,7 +103,8 @@ public class Utils {
public static boolean shouldShowPermission(PermissionApp app) {
// We currently will not show permissions fixed by the system
// which is what the system does for system components.
- if (app.isSystemFixed()) {
+ if (app.isSystemFixed()
+ && !Manifest.permission_group.LOCATION.equals(app.getPermissionGroup().getName())) {
return false;
}