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

Commit e6f776b7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't reset mode for OP_REQUEST_INSTALL_PACKAGES." into rvc-dev am:...

Merge "Don't reset mode for OP_REQUEST_INSTALL_PACKAGES." into rvc-dev am: b8fd5923 am: 526549e5 am: 5c2f661d am: abce62cb

Change-Id: I8e7740ed161ddc1b51aff70e1194f6e546b81d88
parents 932d1647 abce62cb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -208,6 +208,11 @@ public final class PermissionPolicyService extends SystemService {
                case android.Manifest.permission.ACCESS_NOTIFICATIONS:
                case android.Manifest.permission.MANAGE_IPSEC_TUNNELS:
                    continue;
                case android.Manifest.permission.REQUEST_INSTALL_PACKAGES:
                    // Settings allows the user to control the app op if it's not in the default
                    // mode, regardless of whether the app has requested the permission, so we
                    // should not reset it.
                    continue;
                default:
                    final int appOpCode = AppOpsManager.permissionToOpCode(
                            appOpPermissionInfo.name);