1 Reply Latest reply: Apr 18, 2013 2:40 PM by safarmer RSS

    why i can't select my applet by the AID?

    805629
      why i can't select my applet by the AID successed? but the applet has really been loaded into the card.
      because i sent "Get Status" command, i can read the applet package id from the card,

      real applet AID is "A0 00 00 00 62 03 01 0D 02 02",
      but return by card is "a0 00 00 00 62 00 00 00 00 02"
      and if i use the "false AID "a0 00 00 00 62 00 00 00 00 02,every operation step would be ok.
      can anyone tell me why this happen? thanks

      "get status instruction"
      => 80 f2 10 00 02 4f 00 00

      <= 08 54 46 52 49 41 49 01 02 01 00 01 09 54 46 52 49 41 49 01 02 01 06 a0 00 00 00 03 10 01 00 02
      07 a0 00 00 00 03 10 10 07 a0 00 00 00 03 10 4d 07 54 46 52 41 60 45 44 01 00 02 08 54 46 52 41
      60 45 44 01 0a 54 46 52 41 60 45 44 50 53 45 07 54 46 52 49 41 85 85 01 00 00 08 54 46 52 49 41
      10 01 08 01 00 01 09 54 46 52 49 41 10 01 08 01 09 a0 00 00 00 62 03 01 0d 02 01 00 01 0a a0 00
      *00 00 62 00 00 00 00 02* 90 00


      the whole download cap file procedure as follw:

      => 80 50 00 00 08 01 11 3d bc d4 4b fb 61
      <= 00 00 23 d1 22 92 01 00 56 7e 0d 02 00 a0 4f 83 e1 65 d4 4b 5c 1e ee 30 ad d8 99 63 90 00

      => 84 82 00 00 10 b8 d7 57 d8 be b7 02 28 20 88 80 13 14 f6 d0 11
      <= 90 00

      => 80 e6 02 00 16 09 a0 00 00 00 62 03 01 0d 02 08 a0 00 00 00 03 00 00 00 00 00 00

      <= 00 90 00


      => 80 e8 00 00 80 c4 82 01 eb 01 00 25 de ca ff ed 02 02 04 00 01 09 a0 00 00 00 62 03 01 0d 02 11
      63 6f 6d 2f 74 65 73 74 2f 64 65 73 63 72 79 70 74 02 00 21 00 25 00 21 00 0e 00 1f 00 5a 00 10
      00 c6 00 0a 00 23 00 00 00 b8 03 5a 00 00 00 00 00 00 03 01 00 04 00 1f 03 02 01 07 a0 00 00 00
      62 01 01 02 01 07 a0 00 00 00 62 01 02 02 01 07 a0 00 00 00 62 02 01 03 00 0e 01 0a a0 00 00 00
      62 00 00 00 00

      <= 90 00

      => 80 e8 00 01 80 02 00 01 06 00 10 00 00 00 80 03 03 00 03 07 02 00 00 00 6f 00 1e 07 00 c6 00 01
      30 8f 00 07 8c 00 15 7a 03 10 18 8c 00 0a 18 10 08 04 8d 00 04 87 00 18 8b 00 08 7a 06 32 03 32
      1d 60 07 05 29 04 70 05 04 29 04 18 06 10 40 03 8d 00 0f 94 00 00 13 87 01 18 08 03 8d 00 0c 87
      02 ad 01 1a 10 0d 8e 03 00 13 05 ad 02 ad 01 16 04 8b 00 0e ad 02 1a 08 10 08 ad 00 03 8b 00 03
      3b ad 00 03 1a

      <= 90 00

      => 80 e8 00 02 80 08 10 08 8d 00 0b 3b 7a 03 23 19 8b 00 09 2d 19 8b 00 11 5b 32 18 8c 00 10 60 03
      7a 1a 03 25 60 08 11 6e 00 8d 00 05 1a 04 25 73 00 1b 00 01 00 02 00 0b 00 13 18 04 1a 8b 00 14
      70 10 18 03 1a 8b 00 14 70 08 11 6d 00 8d 00 05 19 8b 00 0d 29 04 19 10 10 8b 00 12 19 08 10 10
      8b 00 06 7a 08 00 0a 00 00 00 00 00 00 00 00 00 00 05 00 5a 00 16 02 00 02 02 02 00 02 00 02 00
      02 01 03 82 01

      <= 90 00

      => 80 e8 80 03 6f 01 06 80 08 0d 06 80 07 01 03 80 0a 04 01 00 02 00 03 80 03 01 03 80 0a 01 06 80
      03 00 06 80 10 02 06 82 01 00 03 80 0a 07 03 82 01 03 06 81 0d 00 04 00 02 03 03 80 0a 06 03 80
      0a 09 01 81 0a 00 03 00 02 08 06 00 00 0a 09 00 23 00 09 18 22 08 02 0a 02 07 06 07 00 16 04 03
      07 07 06 18 04 08 0b 0a 0c 0b 08 05 06 0e 14 08 08 04 08 07

      <= 00 90 00

      => 80 e6 0c 00 26 09 a0 00 00 00 62 03 01 0d 02 0a a0 00 00 00 62 03 01 0d 02 02 0a a0 00 00 00 62
      03 01 0d 02 02 01 00 02 c9 00 00

      <= 6a 80


      => 80 f2 10 00 02 4f 00 00

      <= 08 54 46 52 49 41 49 01 02 01 00 01 09 54 46 52 49 41 49 01 02 01 06 a0 00 00 00 03 10 01 00 02
      07 a0 00 00 00 03 10 10 07 a0 00 00 00 03 10 4d 07 54 46 52 41 60 45 44 01 00 02 08 54 46 52 41
      60 45 44 01 0a 54 46 52 41 60 45 44 50 53 45 07 54 46 52 49 41 85 85 01 00 00 08 54 46 52 49 41
      10 01 08 01 00 01 09 54 46 52 49 41 10 01 08 01 09 a0 00 00 00 62 03 01 0d 02 01 00 01 0a a0 00
      00 00 62 00 00 00 00 02 90 00

      => 80 e6 0c 00 26 09 a0 00 00 00 62 03 01 0d 02 0a a0 00 00 00 62 00 00 00 00 02 0a a0 00 00 00 62
      00 00 00 00 02 01 00 02 c9 00 00

      <= 00 90 00

      => 00 a4 04 00 0a a0 00 00 00 62 03 01 0d 02 02

      <= 6a 82

      => 00 a4 04 00 0a a0 00 00 00 62 00 00 00 00 02

      <= 90 00
        • 1. Re: why i can't select my applet by the AID?
          safarmer
          => 80 e6 0c 00 26 09 a0 00 00 00 62 03 01 0d 02 0a a0 00 00 00 62 00 00 00 00 02 0a a0 00 00 00 62
          00 00 00 00 02 01 00 02 c9 00 00
          <= 00 90 00
          Your applet is successfully installed with an instance AID of a0000000620000000002
          80 e6 0c 00 26 
              09 a00000006203010d02 // Load file AID
              0a a0000000620000000002  // Module AID
              0a a0000000620000000002  // Application/instance AID
              01 00 
              02 c900 
              00 
          => 00 a4 04 00 0a a0 00 00 00 62 03 01 0d 02 02
          <= 6a 82
          This is selecting by load file AID (package AID) and will fail
          => 00 a4 04 00 0a a0 00 00 00 62 00 00 00 00 02
          <= 90 00
          This is selecting by application AID and succeeds as expected.

          - Shane