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

Commit 7ebf5f46 authored by Yujing Gu's avatar Yujing Gu Committed by Steve Kondik
Browse files

Add 3 APIs for card application

1. Add API to get number of applications on this card.
2. Add API to get the application type of the specified app index.
3. Add API to get the application state of the specified app index.

Change-Id: I5f73eb4aa3ebcd5308f398924eb2f4a2e7e39696
parent 5fafd29d
Loading
Loading
Loading
Loading
+38 −0
Original line number Original line Diff line number Diff line
@@ -123,4 +123,42 @@ interface IExtTelephony {
    * @return true or false
    * @return true or false
    */
    */
    boolean isFdnEnabled();
    boolean isFdnEnabled();

    /**
    * Get application count from card.
    * @param - slotId user preferred slotId
    * @return application count
    */
    int getUiccApplicationCount(int slotId);

    /**
    * Get application type by index.
    * @param - slotId user preferred slotId
    *        - appIndex application index
    * @return application type as Integer, below are
    *     supported return values:
    *     '0' - APPTYPE_UNKNOWN
    *     '1' - APPTYPE_SIM
    *     '2' - APPTYPE_USIM
    *     '3  - APPTYPE_RUIM
    *     '4' - APPTYPE_CSIM
    *     '5' - APPTYPE_ISIM
    */
    int getUiccApplicationType(int slotId, int appIndex);

    /**
    * Get application state by index.
    * @param - slotId user preferred slotId
    *        - appIndex application index
    * @return application state as Integer, below are
    *     supported return values:
    *     '0' - APPSTATE_UNKNOWN
    *     '1' - APPSTATE_DETECTED
    *     '2' - APPSTATE_PIN
    *     '3  - APPSTATE_PUK
    *     '4' - APPSTATE_SUBSCRIPTION_PERSO
    *     '5' - APPSTATE_READY
    */
    int getUiccApplicationState(int slotId, int appIndex);

}
}