From e710a6fc6663048e0c3302c085a409aa1045a21a Mon Sep 17 00:00:00 2001 From: Svet Ganov Date: Wed, 21 Sep 2016 19:50:14 -0700 Subject: Use separate switch ops for runtime permissions If permissions review is enabled we allow individual control of fine graned permissions in the SMS group. This change ensures these permissions use the corresponding app op as a switch to allow indifidual control. Change-Id: I83cd78a78a8266df8324b8a10cd9e36c04ff3112 (cherry picked from commit 99e4d51584202433f1628faa3441e5ced5cf7a0f) --- core/java/android/app/AppOpsManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/java') diff --git a/core/java/android/app/AppOpsManager.java b/core/java/android/app/AppOpsManager.java index 1e4ffbeca33d..440ddd63147f 100644 --- a/core/java/android/app/AppOpsManager.java +++ b/core/java/android/app/AppOpsManager.java @@ -403,8 +403,8 @@ public class AppOpsManager { OP_WRITE_SMS, OP_RECEIVE_SMS, OP_RECEIVE_SMS, - OP_RECEIVE_SMS, - OP_RECEIVE_SMS, + OP_RECEIVE_MMS, + OP_RECEIVE_WAP_PUSH, OP_SEND_SMS, OP_READ_SMS, OP_WRITE_SMS, -- cgit v1.2.3