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

Commit 4f41e849 authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Fail only if CONTROL_PRIVAPP_PERMISSIONS_ENFORCE

Previously the error was also thrown if ro.control_privapp_permissions=log

Test: manual
Bug: 64693550
Change-Id: Ia87984e2e5902dd885feeb37f676956fa56b421c
parent 89b377d8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -12428,7 +12428,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<>();
                        }