Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ec4897a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fail only if CONTROL_PRIVAPP_PERMISSIONS_ENFORCE"

parents e7e1aaec 4f41e849
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -12443,7 +12443,8 @@ public class PackageManagerService extends IPackageManager.Stub
                            .getPrivAppDenyPermissions(pkg.packageName);
                    final boolean permissionViolation =
                            deniedPermissions == null || !deniedPermissions.contains(perm);
                    if (permissionViolation) {
                    if (permissionViolation
                            && RoSystemProperties.CONTROL_PRIVAPP_PERMISSIONS_ENFORCE) {
                        if (mPrivappPermissionsViolations == null) {
                            mPrivappPermissionsViolations = new ArraySet<>();
                        }