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

Commit 7bbf17dc authored by Jordan Liu's avatar Jordan Liu Committed by android-build-merger
Browse files

Merge "Strip trailing Fs off raw ICCID"

am: 7a580e32

Change-Id: I895c83c7b67d947f8e207ee62579b76b07ddcf50
parents 25d838b2 7a580e32
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -559,8 +559,11 @@ public class UiccController extends Handler {

        UiccCard card = mUiccSlots[slotId].getUiccCard();
        if (card != null && (card.getCardState() == CardState.CARDSTATE_PRESENT)) {
            // Card.getCardId returns the cardString, not the public card ID int
            String cardString = card.getCardId();
            if (!mUiccSlots[slotId].isEuicc()) {
                // getCardId() returns the raw ICCID for a UICC, so we strip it manually
                cardString = IccUtils.stripTrailingFs(cardString);
            }
            addCardId(cardString);
        }