Loading src/java/com/android/internal/telephony/IccSmsInterfaceManager.java +6 −4 Original line number Diff line number Diff line Loading @@ -1365,10 +1365,12 @@ public class IccSmsInterfaceManager { 0L /* messageId */); } public int getSmsCapacityOnIcc() { mContext.enforceCallingOrSelfPermission( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, "getSmsCapacityOnIcc"); public int getSmsCapacityOnIcc(String callingPackage, String callingFeatureId) { if (!TelephonyPermissions.checkCallingOrSelfReadPhoneState( mContext, mPhone.getSubId(), callingPackage, callingFeatureId, "getSmsCapacityOnIcc")) { return 0; } int numberOnIcc = 0; if (mPhone.getIccRecordsLoaded()) { Loading src/java/com/android/internal/telephony/SmsController.java +1 −1 Original line number Diff line number Diff line Loading @@ -816,7 +816,7 @@ public class SmsController extends ISmsImplBase { IccSmsInterfaceManager iccSmsIntMgr = getIccSmsInterfaceManager(subId); if (iccSmsIntMgr != null ) { return iccSmsIntMgr.getSmsCapacityOnIcc(); return iccSmsIntMgr.getSmsCapacityOnIcc(getCallingPackage(), null); } else { Rlog.e(LOG_TAG, "iccSmsIntMgr is null for " + " subId: " + subId); return 0; Loading Loading
src/java/com/android/internal/telephony/IccSmsInterfaceManager.java +6 −4 Original line number Diff line number Diff line Loading @@ -1365,10 +1365,12 @@ public class IccSmsInterfaceManager { 0L /* messageId */); } public int getSmsCapacityOnIcc() { mContext.enforceCallingOrSelfPermission( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, "getSmsCapacityOnIcc"); public int getSmsCapacityOnIcc(String callingPackage, String callingFeatureId) { if (!TelephonyPermissions.checkCallingOrSelfReadPhoneState( mContext, mPhone.getSubId(), callingPackage, callingFeatureId, "getSmsCapacityOnIcc")) { return 0; } int numberOnIcc = 0; if (mPhone.getIccRecordsLoaded()) { Loading
src/java/com/android/internal/telephony/SmsController.java +1 −1 Original line number Diff line number Diff line Loading @@ -816,7 +816,7 @@ public class SmsController extends ISmsImplBase { IccSmsInterfaceManager iccSmsIntMgr = getIccSmsInterfaceManager(subId); if (iccSmsIntMgr != null ) { return iccSmsIntMgr.getSmsCapacityOnIcc(); return iccSmsIntMgr.getSmsCapacityOnIcc(getCallingPackage(), null); } else { Rlog.e(LOG_TAG, "iccSmsIntMgr is null for " + " subId: " + subId); return 0; Loading