Search code examples
smartcardjavacardglobalplatform

What does this default applets do?


This is output of gp tool, when I tell it to list installed applets :

gp >> gp -l
AID: A000000151000000 (|....Q...|)
     ISD OP_READY: Security Domain, Card lock, Card terminate, Default selected,
 CVM (PIN) management

AID: A0000001515350 (|....QSP|)
     ExM LOADED: (none)
     A000000151535041 (|....QSPA|)

gp >>

Q1: Which one of this AIDs are for an applet, and which one is for a Package? How I can recognize?

Q2: How I can find out what APDU-commands this applets support? I searched for the AIDs here(a Complete list of AIDs), but found nothing!

Q3: Can we have 2 applets inside a single Package? I mean, when I write a Hello World applet and upload it to my card, an Applet AID and a Package AID adds to the gp -l outputs. Is there any .cap file that add for example 3 applet AID and just 1 Package AID to the card?


Solution

    1. ExM means "Executable module" which means "package".
    2. N/A
    3. Yes. Have a look here for example: https://github.com/martinpaljak/AppletPlayground/blob/master/build.xml#L53

    You really have to go and read some documentation before asking. This is a programming forum.