Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26bb0b83 authored by arunvoddu's avatar arunvoddu
Browse files

Introduced Thread safety protected when accessing getAllUiccCardInfos

Bug: 273620122
Test: atest verified and manually verified
Change-Id: I25bec4c9ff4ed494f55c97e61103885534aef6fc
parent b784c3be
Loading
Loading
Loading
Loading
+45 −43
Original line number Diff line number Diff line
@@ -894,6 +894,7 @@ public class UiccController extends Handler {
     * Returns the UiccCardInfo of all currently inserted UICCs and embedded eUICCs.
     */
    public ArrayList<UiccCardInfo> getAllUiccCardInfos() {
        synchronized (mLock) {
            ArrayList<UiccCardInfo> infos = new ArrayList<>();
            for (int slotIndex = 0; slotIndex < mUiccSlots.length; slotIndex++) {
                final UiccSlot slot = mUiccSlots[slotIndex];
@@ -944,6 +945,7 @@ public class UiccController extends Handler {
            }
            return infos;
        }
    }

    /**
     * Get the card ID of the default eUICC.