Error 0x6A80 for Applet Install on sysmoISIM-SJA2 #358
Replies: 3 comments 1 reply
-
It is the right direction - SIM cards require specific parameters. The comments at linked ticket describes the path towards a solution as well. |
Beta Was this translation helpful? Give feedback.
-
I was trying to use ShadySIM to generate the Application Parameters TLV and then LOAD and INSTALL via GPPro. This failed. Cross-posting my notes from the Osmocom tracker: GPPro assumes that within the params TLV the tag 0xc9 (Application Specific Parameters) always comes first (see GPSession.java). Shadysim however puts the element 0xEF first, then 0xC9. (link to code). In that case, GPPro prepends another 0xC9 tag, invalidating the whole TLV. So just swap the elements in this line and print parameters: - parameters = 'ef' + ('%02x' % (len(parameters) / 2)) + parameters + 'c9' + ('%02x' % (len(args.app_parameters) / 2)) + args.app_parameters
+ parameters = 'c9' + ('%02x' % (len(args.app_parameters) / 2)) + args.app_parameters + 'ef' + ('%02x' % (len(parameters) / 2)) + parameters Params for ImsiChange that seemed to work:
|
Beta Was this translation helpful? Give feedback.
-
fyi, this should be fixed in master branch |
Beta Was this translation helpful? Give feedback.
-
Hello! Does anyone here know how to install applets to the sysmoISIM-SJA2 SIM cards? I wasn't sure if this was just a user error or a bug, so I started this discussion instead.
Normally, I would use this updated version of shadysim to install the applets: herlesupreeth / sim-tools
But I am trying to make my applet the default and selectable, which GlobalPlatformPro should be able to do using this cmd?
gp --key-dek ... --key-enc ... --key-mac ... --install ../HelloSTK2/bin/HelloSTK2.cap --default
This is the output:
My understanding is that this might be caused by GlobalPlatformPro using the wrong installation parameters? And, I need to specify those used by the card manufacturer? Maybe this is similar to a previous issue... #293
I think I am headed in the right direction - but, I was hoping to see if someone else has knowledge/experience first.
Beta Was this translation helpful? Give feedback.
All reactions