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

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

Merge "Grant removed install permissions"

parents cadc75a3 b875116b
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -799,10 +799,6 @@ public class PermissionManagerService {
                    continue;
                }

                if (bp.isRemoved()) {
                    continue;
                }

                // Limit ephemeral apps to ephemeral allowed permissions.
                if (pkg.applicationInfo.isInstantApp() && !bp.isInstant()) {
                    if (DEBUG_PERMISSIONS) {
@@ -951,7 +947,8 @@ public class PermissionManagerService {
                                    // how to disable the API to simulate revocation as legacy
                                    // apps don't expect to run with revoked permissions.
                                    if (PLATFORM_PACKAGE_NAME.equals(bp.getSourcePackageName())) {
                                        if ((flags & FLAG_PERMISSION_REVIEW_REQUIRED) == 0) {
                                        if ((flags & FLAG_PERMISSION_REVIEW_REQUIRED) == 0
                                                && !bp.isRemoved()) {
                                            flags |= FLAG_PERMISSION_REVIEW_REQUIRED;
                                            // We changed the flags, hence have to write.
                                            updatedUserIds = ArrayUtils.appendInt(