From 99e4d51584202433f1628faa3441e5ced5cf7a0f Mon Sep 17 00:00:00 2001 From: Svet Ganov Date: Wed, 21 Sep 2016 19:50:14 -0700 Subject: [PATCH] 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 --- core/java/android/app/AppOpsManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/app/AppOpsManager.java b/core/java/android/app/AppOpsManager.java index 1e4ffbeca33d7..440ddd63147f8 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,