Forum Stats

  • 3,752,058 Users
  • 2,250,452 Discussions
  • 7,867,705 Comments

Discussions

UICC Toolkit applet not getting triggered

User_WFC65
User_WFC65 Member Posts: 1 Green Ribbon

Hi! All

I am trying with the very basic toolkit applet as code given below

public HelloSTK() {

register();

reg = ToolkitRegistrySystem.getEntry();

}


public static void install(byte bArray[], short bOffset, byte bLength) {

HelloSTK MyApplet = new HelloSTK ();

reg.setEvent(EVENT_PROFILE_DOWNLOAD);

}


public void processToolkit(short event) {

ProactiveHandler proHdlr = ProactiveHandlerSystem.getTheHandler();

//ProactiveResponseHandler rspHdlr = ProactiveResponseHandler.getTheHandler();

switch(event) {

case EVENT_PROFILE_DOWNLOAD:

proHdlr.init((byte) PRO_CMD_DISPLAY_TEXT, (byte)0x80,

(byte)DEV_ID_DISPLAY);

proHdlr.appendTLV((byte)(TAG_TEXT_STRING| TAG_SET_CR), DCS_8_BIT_DATA, textDText,(short)0, (short)textDText.length);

proHdlr.send();

break;


}


public void process(APDU apdu) {

if (selectingApplet()) {

return;

}

}


I am using 102241_Annex_A_Java APIs for uicc toolkit

Following commands are used to trigger the applet

00A4040008A000000151000000


Open SCP


Delete applet 

80 E4 00 80 08 4F 06 11 22 33 44 55 66 00



//LOad

 80 E6 02 00 0B

   06 11 22 33 44 55 66 

   00 00 00 00  






Load block 0...

 --> 80 E8 00 00 E8

   C4 82 02 32 01 00 19 DE CA FF ED 02 02 04 00 01

   06 11 22 33 44 55 66 08 48 65 6C 6C 6F 53 54 4B

   02 00 21 00 19 00 21 00 0B 00 28 00 32 00 1A 00

   A8 00 0A 00 1A 00 00 00 8F 03 66 00 00 00 00 00

   00 03 01 00 04 00 28 03 04 01 07 A0 00 00 00 62

   01 01 04 01 10 A0 00 00 00 09 00 05 FF FF FF FF

   89 12 00 00 00 00 01 07 A0 00 00 00 62 00 01 03

   00 0B 01 07 11 22 33 44 55 66 11 00 3D 06 00 1A

   00 00 43 80 03 04 00 03 07 02 00 00 00 9E 00 4B

   80 02 00 81 08 01 08 81 07 00 07 00 A8 00 05 40

   18 8C 00 04 18 08 90 0B 3D 03 10 48 38 3D 04 10

   65 38 3D 05 10 6C 38 3D 06 10 6C 38 3D 07 10 6F

   38 87 00 18 07 88 01 18 8D 00 03 87 02 AD 02 05

   8E 02 00 05 00 18 8B 00 06 7A 05 31 8F 00 07 3D

   18 1D 1E 8C 00 08 2E 7A 00

 SW: 61 01 Data:  0 Bytes Exec Time:  153.32 ms


Load block 1...

 --> 80 E8 00 01 E8

   06 21 8D 00 09 2D 1A 10 21 10 80 05 8E 04 00 0A

   17 1A 10 8D 07 AD 00 03 AD 00 92 8E 06 00 0A 15

   1A 8E 01 00 0A 18 3B 1D 73 00 2A 00 02 00 02 00

   09 1A 10 21 10 80 05 8E 04 00 0A 17 1A 10 8D 07

   AD 00 03 AD 00 92 8E 06 00 0A 15 1A 8E 01 00 0A

   18 3B 7A 01 20 18 8B 00 0B 60 03 7A 7A 08 00 0A

   00 00 00 00 00 00 00 00 00 00 05 00 32 00 0C 02

   00 02 01 02 00 02 03 02 00 02 02 06 81 10 00 06

   80 03 00 01 81 09 00 03 80 03 01 01 00 02 00 06

   00 00 01 06 81 0E 00 01 81 05 00 03 80 03 03 09

   00 1A 00 08 25 04 06 02 30 03 28 03 00 0E 05 27

   09 05 06 07 07 0B 0F 06 16 0F 06 09 0B 00 8F 01

   00 01 00 02 03 00 04 00 04 80 02 81 08 81 07 00

   01 00 02 00 00 1A 01 02 00 02 01 00 1A 02 02 00

   02 02 00 1E 03 10 00 02 00

 SW: 61 01 Data:  0 Bytes Exec Time:  180.02 ms



Final load block 2...

 --> 80 E8 80 02 66

   03 80 03 00 81 00 01 00 24 00 3A 00 00 00 00 01

   09 00 3D 00 24 00 0C 00 00 00 00 08 01 00 4B 00

   2D 00 51 00 00 00 00 07 01 00 9E 00 2F 00 08 00

   00 00 00 00 0C 00 1A 00 1C 00 1E 00 1E 00 22 FF

   FF 00 22 FF FF 00 24 00 27 FF FF 00 2B 01 B0 01

   30 05 68 10 90 01 10 04 B4 31 05 68 10 50 01 20

   02 41 06 68 00 A1 00





//Insatll

80 E6 0C 00 34 06 11 22 33 44 55 66 07 11 22 33 44 55 66 11 07 11 22 33 44 55 66 11 01 00 19 EA 15 80 0D FF 01 10 01 00 00 01 00 00 03 44 55 66 81 04 00 01 00 00 C9 00 00







  Command     : 80 A4 00 00 02 3F 00


  Output Data   : none

  Status     : 6D 00



  Command     : 80 A4 00 00 02 7F 20

   

  Output Data   : none

  Status     : 6D 00



  Command     : 80 10 00 00 29 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

   

          : 

          : 

  Output Data   : none

  Status     : 91 0F



  Command     : 80 12 00 00 0F 

  Output Data   : D0 0D 81 03 01 05 00 82 02 81 82 99 02 09 0A

  Status     : 90 00



  Command     : 80 14 00 00 0C 81 03 01 05 00 82 02 82 81 83 01 00

  Input Data   : 

  Output Data   : none

  Status     : 91 0F



  Command     : 80 12 00 00 0F 

  Output Data   : D0 0D 81 03 01 03 00 82 02 81 82 84 02 01 1E

  Status     : 90 00



  Command     : 80 14 00 00 0C 81 03 01 03 00 82 02 82 81 83 01 00

  Input Data   : 

  Output Data   : none

  Status     : 90 00


But it seems that processtoolkit function is not invoked or something else is wrong here as i am not getting the display text proactive command in response of terminal profile.


Please help.


Thanks