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

Commit 3b5aeaa6 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Determine apps READY/LOADED only based on SIM/USIM/CSIM/RUIM apps." am:...

Merge "Determine apps READY/LOADED only based on SIM/USIM/CSIM/RUIM apps." am: d3b21e2b am: 513033e5
am: 85fe22c4

Change-Id: If355e9e2dd5a04f9f28aa51141295b62ed2b73ff
parents 3c732bb2 85fe22c4
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -892,10 +892,17 @@ public class UiccProfile extends Handler implements IccCard {
                checkIndexLocked(mImsSubscriptionAppIndex, AppType.APPTYPE_ISIM, null);
    }

    /**
     * Checks if the app is supported for the purposes of checking if all apps are ready/loaded, so
     * this only checks for SIM/USIM and CSIM/RUIM apps. ISIM is considered not supported for this
     * purpose as there are cards that have ISIM app that is never read (there are SIMs for which
     * the state of ISIM goes to DETECTED but never to READY).
     */
    private boolean isSupportedApplication(UiccCardApplication app) {
        // TODO: 2/15/18 Add check to see if ISIM app will go to READY state, and if yes, check for
        // ISIM also (currently ISIM is considered as not supported in this function)
        if (app.getType() != AppType.APPTYPE_USIM && app.getType() != AppType.APPTYPE_CSIM
                && app.getType() != AppType.APPTYPE_ISIM && app.getType() != AppType.APPTYPE_SIM
                && app.getType() != AppType.APPTYPE_RUIM) {
                && app.getType() != AppType.APPTYPE_SIM && app.getType() != AppType.APPTYPE_RUIM) {
            return false;
        }
        return true;