Skip to content

Commit 7ebf5f4

Browse files
Yujing GuSteve Kondik
authored andcommitted
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
1 parent 5fafd29 commit 7ebf5f4

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

telephony/java/com/android/internal/telephony/IExtTelephony.aidl

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,42 @@ interface IExtTelephony {
123123
* @return true or false
124124
*/
125125
boolean isFdnEnabled();
126+
127+
/**
128+
* Get application count from card.
129+
* @param - slotId user preferred slotId
130+
* @return application count
131+
*/
132+
int getUiccApplicationCount(int slotId);
133+
134+
/**
135+
* Get application type by index.
136+
* @param - slotId user preferred slotId
137+
* - appIndex application index
138+
* @return application type as Integer, below are
139+
* supported return values:
140+
* '0' - APPTYPE_UNKNOWN
141+
* '1' - APPTYPE_SIM
142+
* '2' - APPTYPE_USIM
143+
* '3 - APPTYPE_RUIM
144+
* '4' - APPTYPE_CSIM
145+
* '5' - APPTYPE_ISIM
146+
*/
147+
int getUiccApplicationType(int slotId, int appIndex);
148+
149+
/**
150+
* Get application state by index.
151+
* @param - slotId user preferred slotId
152+
* - appIndex application index
153+
* @return application state as Integer, below are
154+
* supported return values:
155+
* '0' - APPSTATE_UNKNOWN
156+
* '1' - APPSTATE_DETECTED
157+
* '2' - APPSTATE_PIN
158+
* '3 - APPSTATE_PUK
159+
* '4' - APPSTATE_SUBSCRIPTION_PERSO
160+
* '5' - APPSTATE_READY
161+
*/
162+
int getUiccApplicationState(int slotId, int appIndex);
163+
126164
}

0 commit comments

Comments
 (0)