I need to intercept which command is sent when the user selects one option in STK menu of the SIM card.
I've searched a lot and i saw that there is the RIL protocol, but i have no success yet.
In my case, i need to know the command to simulate the check balance of the sim card.
I'm developing an app thats send this command and handles the received message.
the following log is shown in the exact moment i touch the "check balance" option in list
06-11 09:29:27.388: D/CAT(944): CatService: 10arrived on slotid: 0
06-11 09:29:27.398: D/CAT(944): CatService: SEND_SMS
06-11 09:29:27.398: D/CAT(944): CatService: Sending CmdMsg: com.android.internal.telephony.cat.CatCmdMessage@41f6d030 on slotid:0
06-11 09:29:27.428: D/CAT(944): StkAppService: 1called on slot:0
06-11 09:29:27.428: D/CAT(944): StkAppService$ServiceHandler: SEND_SMS
06-11 09:29:28.700: D/PhoneInterfaceManager(944): Broadcasting intent ACTION_UNSOL_RESPONSE_OEM_HOOK_RAW
Two types of commands may be sent to CP(modem), can be intercepted in CatService.java
1) EVELOPE :
2) Terminal Response: