Merge "Don't reset mode for OP_REQUEST_INSTALL_PACKAGES." into rvc-dev am: b8fd5923a4
Change-Id: I4fafa2e1d25926f243419a1b7086790a6b516d54
This commit is contained in:
@@ -208,6 +208,11 @@ public final class PermissionPolicyService extends SystemService {
|
|||||||
case android.Manifest.permission.ACCESS_NOTIFICATIONS:
|
case android.Manifest.permission.ACCESS_NOTIFICATIONS:
|
||||||
case android.Manifest.permission.MANAGE_IPSEC_TUNNELS:
|
case android.Manifest.permission.MANAGE_IPSEC_TUNNELS:
|
||||||
continue;
|
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:
|
default:
|
||||||
final int appOpCode = AppOpsManager.permissionToOpCode(
|
final int appOpCode = AppOpsManager.permissionToOpCode(
|
||||||
appOpPermissionInfo.name);
|
appOpPermissionInfo.name);
|
||||||
|
|||||||
Reference in New Issue
Block a user