• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Support for stk command in Android (Gingerbread)

suswan

Lurker
Issue:
Android codebase for framework (frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/StkService.java) and application service (/GB/packages/apps/Stk/src/com/android/stk/StkAppService.java) do not match completely with the table specified in Sim Toolkit Application (STK) | Android Open Source. Could someone share his views on this?

Detail:
We have found that the in Android STK, the framework and the application service layer handle the following commands.

DISPLAY_TEXT
SELECT_ITEM
SET_UP_MENU
GET_INPUT
GET_INKEY
SET_UP_IDLE_MODE_TEXT
SEND_DTMF
SEND_SMS
SEND_SS
SEND_USSD
LAUNCH_BROWSER
SET_UP_CALL
PLAY_TONE

There is a return statement for default case ( /GB/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/StkService.java, line no.287) indicating that other commands are not delivered to application. Also application handling is done at function ( /GB/packages/apps/Stk/src/com/android/stk/StkAppService.java
public void handleMessage(Message msg), line no. 250
)

But Sim Toolkit Application (STK) | Android Open Source
suggests that apart from the above mentioned commands Andoid stk supports other commands also. Those are as follows :

REFRESH
SET UP EVENT LIST
Event: Idle screen available
Event: Browser termination
Event: Data available
Event: Channel status
Event: Local Connection
GET READER STATUS
POWER ON CARD
POWER OFF CARD
PERFORM CARD ADPU
RUN AT COMMAND
OPEN CHANNEL
CLOSE CHANNEL
RECEIVE DATA
SEND DATA
GET CHANNEL STATUS
BIP over GPRS
BIP over USB
Text Attributes
Color icons

So could someone please let us know whether Android STK truly supports these commands?
Please provide code reference if possible.
 
Back
Top Bottom