Loading src/java/com/android/internal/telephony/SubscriptionInfoUpdater.java +9 −8 Original line number Diff line number Diff line Loading @@ -356,6 +356,7 @@ public class SubscriptionInfoUpdater extends Handler { // The SIM should be loaded at this state, but it is possible in cases such as SIM being // removed or a refresh RESET that the IccRecords could be null. The right behavior is to // not broadcast the SIM loaded. int loadedSlotId = slotId; IccRecords records = mPhone[slotId].getIccCard().getIccRecords(); if (records == null) { // Possibly a race condition. logd("handleSimLoaded: IccRecords null"); Loading Loading @@ -440,16 +441,16 @@ public class SubscriptionInfoUpdater extends Handler { editor.putInt(CURR_SUBID + slotId, subId); editor.apply(); } } } // Update set of enabled carrier apps now that the privilege rules may have changed. CarrierAppUtils.disableCarrierAppsUntilPrivileged(mContext.getOpPackageName(), mPackageManager, TelephonyManager.getDefault(), mContext.getContentResolver(), mCurrentlyActiveUserId); broadcastSimStateChanged(slotId, IccCardConstants.INTENT_VALUE_ICC_LOADED, null); updateCarrierServices(slotId, IccCardConstants.INTENT_VALUE_ICC_LOADED); } } broadcastSimStateChanged(loadedSlotId, IccCardConstants.INTENT_VALUE_ICC_LOADED, null); updateCarrierServices(loadedSlotId, IccCardConstants.INTENT_VALUE_ICC_LOADED); } private void updateCarrierServices(int slotId, String simState) { Loading Loading
src/java/com/android/internal/telephony/SubscriptionInfoUpdater.java +9 −8 Original line number Diff line number Diff line Loading @@ -356,6 +356,7 @@ public class SubscriptionInfoUpdater extends Handler { // The SIM should be loaded at this state, but it is possible in cases such as SIM being // removed or a refresh RESET that the IccRecords could be null. The right behavior is to // not broadcast the SIM loaded. int loadedSlotId = slotId; IccRecords records = mPhone[slotId].getIccCard().getIccRecords(); if (records == null) { // Possibly a race condition. logd("handleSimLoaded: IccRecords null"); Loading Loading @@ -440,16 +441,16 @@ public class SubscriptionInfoUpdater extends Handler { editor.putInt(CURR_SUBID + slotId, subId); editor.apply(); } } } // Update set of enabled carrier apps now that the privilege rules may have changed. CarrierAppUtils.disableCarrierAppsUntilPrivileged(mContext.getOpPackageName(), mPackageManager, TelephonyManager.getDefault(), mContext.getContentResolver(), mCurrentlyActiveUserId); broadcastSimStateChanged(slotId, IccCardConstants.INTENT_VALUE_ICC_LOADED, null); updateCarrierServices(slotId, IccCardConstants.INTENT_VALUE_ICC_LOADED); } } broadcastSimStateChanged(loadedSlotId, IccCardConstants.INTENT_VALUE_ICC_LOADED, null); updateCarrierServices(loadedSlotId, IccCardConstants.INTENT_VALUE_ICC_LOADED); } private void updateCarrierServices(int slotId, String simState) { Loading