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

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

Merge "Do not add permission while cleaning permissions state"

parents 0575b57f b38fa94f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19565,7 +19565,7 @@ public class PackageManagerService extends IPackageManager.Stub
            // If permission review is enabled and this is a legacy app, mark the
            // permission as requiring a review as this is the initial state.
            int flags = 0;
            if (ps.pkg.applicationInfo.targetSdkVersion < Build.VERSION_CODES.M) {
            if (ps.pkg.applicationInfo.targetSdkVersion < Build.VERSION_CODES.M && bp.isRuntime()) {
                flags |= FLAG_PERMISSION_REVIEW_REQUIRED;
            }
            if (permissionsState.updatePermissionFlags(bp, userId, userSettableMask, flags)) {