diff options
Diffstat (limited to 'src/com/android/packageinstaller/permission/utils/Utils.java')
-rw-r--r-- | src/com/android/packageinstaller/permission/utils/Utils.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/packageinstaller/permission/utils/Utils.java b/src/com/android/packageinstaller/permission/utils/Utils.java index 552d4ad4..7b9a2b65 100644 --- a/src/com/android/packageinstaller/permission/utils/Utils.java +++ b/src/com/android/packageinstaller/permission/utils/Utils.java @@ -76,10 +76,11 @@ public class Utils { return false; } - public static boolean shouldShowPermission(AppPermissionGroup group) { + public static boolean shouldShowPermission(AppPermissionGroup group, String packageName) { // 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() && !LocationUtils.isLocationGroupAndProvider( + group.getName(), packageName)) { 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() && !LocationUtils.isLocationGroupAndProvider( + app.getPermissionGroup().getName(), app.getPackageName())) { return false; } |