JCRE version in eUICC

If I create a SIM applet for a card, the JCRE and java libraries in the card are all fixed. So you know what you’re working with. But if the SIM applet is included in an eSIM profile, it has to live with whatever JCRE and libraries are in the eUICC. At least I think I got that right…

Anyway, assuming I’m correct, what do I do? If the profile is downloaded into an older device, it’s probably going to see JC222. If it’s downloaded into a new device these days, it might see JC304. Is there a way to handle this (maybe multiple versions of the same profile in the DP+) or should all software be designed for JC222?

Hi @mayhayze,
The Java Card 3.1 platform preserves backward compatibility with Classic Applets written for earlier versions. So you should be fine, unless the JC222 applet was using some deprecated APIs.
The best is to test… Loading or installation issue of the applet’s Profile Element may indicate such compatibility issue ; but it could also be something else!..
Regards,
Greg

1 Like

Thank you. Some of the capabilities in the newer JC versions could streamline the code or enable new capabilities. But for now, I’m focused on 221 as a least common denominator.

I have an adjacent topic question – where would I find an SDK for the uicc package (to enable the applet to access USIM files) and which JC version started supporting it? Right now I can’t get past include usim.* giving me a compile error.

It is best to target the oldest JCRE versin that is present in any of the target eUICCs for your profile. Sadly the uptake of more modern versions is very slow.
For example, If I remember correctly, iPhones are still on SAIP version 2.1 and not the more modern 2.3 / 2.5. I’m not even sure if the SAIP/TCA interoperable profile make any claim as to the exact JCRE version.

What you can see here is the very “loose” model of bunching together a large number of specs from different bodies. GSMA says that javacard support in eUICCs is optional, but it makes no guarantees regarding the detailed available versions, API packages - nor does it contain any security requirements or testing whatsoever.

1 Like

SGP.22 does specify minimum JC of 3.0.4 (version 2.X) and 3.0.5 (version 3.X) for eUICCs, which is a nice baseline. For some reason SGP.02 and SGP.32 don’t have any requirement for JavaCard support at all (that I can find). I understand why SGP.02 might be like that but for SGP.32 that seems shortsighted (if I have it right).

Thanks for pointing that out, I had missed the minimum version. To me, the key aspect has always been that there is no JavaCard support requirement at all in the first place. That would make for a much saner and safer world. Sadly various MNO/MVNO profiles will reject to install on a eUICC that is - in compliance with SGP.22 - not implementing JavaCard features at all.

1 Like