summaryrefslogtreecommitdiffstats
path: root/src/com/android/packageinstaller/permission/utils/Utils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/packageinstaller/permission/utils/Utils.java')
-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;
}