8 Replies Latest reply: Oct 11, 2012 1:12 AM by Umer RSS

    SIM applet Installation

    Umer
      Hi,

      I am trying to install an STK application on a Java SIM card. Package is installed successfully but could not install applet.
      I am using JCOP for this. Their might be i am missing some toolkit parameters or STK specific parameters due to which it is not installing. Any technical help will be appreciated.
      cm>  install -i 6368696e616d6f62696c652e617070 -q C9#() 6368696e616d6f62696c652e7061636b 6368696e616d6f62696c652e617070
       => 80 E6 0C 00 37 10 63 68 69 6E 61 6D 6F 62 69 6C    ....7.chinamobil
          65 2E 70 61 63 6B 0F 63 68 69 6E 61 6D 6F 62 69    e.pack.chinamobi
          6C 65 2E 61 70 70 0F 63 68 69 6E 61 6D 6F 62 69    le.app.chinamobi
          6C 65 2E 61 70 70 01 00 02 C9 00 00 00             le.app.......
       (3608437 usec)
       <= 6A 80                                              j.
      Status: Wrong data
      jcshell: Error code: 6a80 (Wrong data)
      jcshell: Wrong response APDU: 6A80
      regards
      Umer
        • 1. Re: SIM applet Installation
          964515
          Hi,
          This most likely means that you are using functionality not supported by the card OS.
          Please verify that JCOP version of your card supports Javacard functionality you are using in your applet.
          Regards
          • 2. Re: SIM applet Installation
            Umer
            961512 wrote:
            This most likely means that you are using functionality not supported by the card OS.
            Please verify that JCOP version of your card supports Javacard functionality you are using in your applet.
            May be you are right but to me the Install for Install command is not correct. I am missing toolkit parameters which should be present for a GSM specific applet.

            There are persons in this (Javacard) forum who know SIM card but i don't know why they are sitting quite : -)
            • 3. Re: SIM applet Installation
              907439
              what kind of applet are You installing? And what kind of a card?
              If the card is usim then You must use package uicc (ETSI 102241+ver) and uicc.usim (3GPP 31130+ver) in source code. So install for install command will look approximately so:
              install -i 0b0b0b0b0b0b0b0b0b0b0b0b0b0b6170 -q C9#(00)EA#(800AFF002001000000000000) 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b 0b0b0b0b0b0b0b0b0b0b0b0b0b0b6170
              Tag EA - only for usim

              And if the card is sim
              then You must use package sim (3GPP 43019+ver). Then install for install command:
              install -i 0b0b0b0b0b0b0b0b0b0b0b0b0b0b6170 -q CA#(0100FF0023010000)C9#(00) 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b 0b0b0b0b0b0b0b0b0b0b0b0b0b0b6170
              Tag CA - for sim

              Read more about install parameters in the ETSI 102226
              • 4. Re: SIM applet Installation
                Umer
                Thanks for the kind reply.

                I am using sim.toolkit and sim.access packages for the applet development. Can you explain about the toolkit parameters and i am confused that how the handset will select my stik applet when it start up ?

                Many thanks
                Umer
                • 5. Re: SIM applet Installation
                  Umer
                  Thanks for the above reply
                  I tried your mentioned method but still getting the same problem. Kindly have a look below:
                  cm>  install -i 6368696E616D6F62696C652E617070 -q CA#(0100FF0023010000)C9#(00) 6368696E616D6F62696C652E7061636B 6368696E616D6F62696C652E617070
                   => 80 E6 0C 00 42 10 63 68 69 6E 61 6D 6F 62 69 6C    ....B.chinamobil
                      65 2E 70 61 63 6B 0F 63 68 69 6E 61 6D 6F 62 69    e.pack.chinamobi
                      6C 65 2E 61 70 70 0F 63 68 69 6E 61 6D 6F 62 69    le.app.chinamobi
                      6C 65 2E 61 70 70 01 00 0D CA 08 01 00 FF 00 23    le.app.........#
                      01 00 00 C9 01 00 00 00                            ........
                   (3641976 usec)
                   <= 6A 80                                              j.
                  Status: Wrong data
                  jcshell: Error code: 6a80 (Wrong data)
                  jcshell: Wrong response APDU: 6A80
                  • 6. Re: SIM applet Installation
                    864549
                    Simply comment out all the content in your applet's constructor and try to isolate the cause by adding line by line with a new installation attempt every time. This is quite straight forward to identify the issue - which is most likely a method or class not supported by that particular SIM.

                    If the installation fails already with empty constructor you may have wrong installation parameters (e.g. double check all three AIDs).
                    • 7. Re: SIM applet Installation
                      Umer
                      Thanks for coming back :)
                      Ok a sample applet is installed now but when i insert sim in handset i gave SIM Card Rejected error.

                      What is it for ?
                      Do u know about this error ?

                      Many Thanks
                      Umer
                      • 8. Re: SIM applet Installation
                        Umer
                        Do I need to install the STK app by using SMS-PP or using card manager ? I don't know why hand set is giving sim card rejected error :(