Loading src/com/android/packageinstaller/permission/model/AppPermissionGroup.java +3 −2 Original line number Diff line number Diff line Loading @@ -275,8 +275,9 @@ public final class AppPermissionGroup implements Comparable<AppPermissionGroup> if (permission.isGranted()) { return true; } } else if (permission.isGranted() && permission.getAppOp() != AppOpsManager.OP_NONE && permission.isAppOpAllowed()) { } else if (permission.isGranted() && ((permission.getAppOp() != AppOpsManager.OP_NONE && permission.isAppOpAllowed()) || permission.getAppOp() == AppOpsManager.OP_NONE)) { return true; } } Loading src/com/android/packageinstaller/permission/utils/Utils.java +0 −13 Original line number Diff line number Diff line Loading @@ -84,13 +84,6 @@ public class Utils { return false; } // Yes this is possible. We have leftover permissions that // are not in the final groups and we want to get rid of, // therefore we do not have app ops for legacy support. if (!group.hasRuntimePermission() && !group.hasAppOpPermission()) { return false; } final boolean isPlatformPermission = group.getDeclaringPackage().equals(OS_PKG); // Show legacy permissions only if the user chose that. if (isPlatformPermission Loading @@ -108,12 +101,6 @@ public class Utils { return false; } // Yes this is possible. We have leftover permissions that // are not in the final groups and we want to get rid of, // therefore we do not have app ops for legacy support. if (!app.hasRuntimePermissions() && !app.hasAppOpPermissions()) { return false; } return true; } Loading Loading
src/com/android/packageinstaller/permission/model/AppPermissionGroup.java +3 −2 Original line number Diff line number Diff line Loading @@ -275,8 +275,9 @@ public final class AppPermissionGroup implements Comparable<AppPermissionGroup> if (permission.isGranted()) { return true; } } else if (permission.isGranted() && permission.getAppOp() != AppOpsManager.OP_NONE && permission.isAppOpAllowed()) { } else if (permission.isGranted() && ((permission.getAppOp() != AppOpsManager.OP_NONE && permission.isAppOpAllowed()) || permission.getAppOp() == AppOpsManager.OP_NONE)) { return true; } } Loading
src/com/android/packageinstaller/permission/utils/Utils.java +0 −13 Original line number Diff line number Diff line Loading @@ -84,13 +84,6 @@ public class Utils { return false; } // Yes this is possible. We have leftover permissions that // are not in the final groups and we want to get rid of, // therefore we do not have app ops for legacy support. if (!group.hasRuntimePermission() && !group.hasAppOpPermission()) { return false; } final boolean isPlatformPermission = group.getDeclaringPackage().equals(OS_PKG); // Show legacy permissions only if the user chose that. if (isPlatformPermission Loading @@ -108,12 +101,6 @@ public class Utils { return false; } // Yes this is possible. We have leftover permissions that // are not in the final groups and we want to get rid of, // therefore we do not have app ops for legacy support. if (!app.hasRuntimePermissions() && !app.hasAppOpPermissions()) { return false; } return true; } Loading