Merge "Fix permission check for reading SMS on UICC." into klp-dev
Jake Hamby [Wed, 18 Sep 2013 22:28:12 +0000 (22:28 +0000)]
src/java/com/android/internal/telephony/IccSmsInterfaceManager.java

index 03ed244..ed518e4 100644 (file)
@@ -245,7 +245,7 @@ public abstract class IccSmsInterfaceManager extends ISms.Stub {
     public List<SmsRawData> getAllMessagesFromIccEf(String callingPackage) {
         if (DBG) log("getAllMessagesFromEF");
 
-        mContext.enforceCallingPermission(
+        mContext.enforceCallingOrSelfPermission(
                 Manifest.permission.RECEIVE_SMS,
                 "Reading messages from Icc");
         if (mAppOps.noteOp(AppOpsManager.OP_READ_ICC_SMS, Binder.getCallingUid(),