Page 1 of 1

How to change life cycle and privilege of my applet

Posted: Fri Dec 18, 2015 4:51 am
by pitbar
There is a simple applet on my javacard and when I use gpj -list command, I got as below:

Code: Select all

 C:\gpj>java -jar gpj.jar -list
    Found terminals: [PC/SC terminal Feitian R502 Contact Reader 0]
    Found card in terminal: Feitian R502 Contact Reader 0
    ATR: 3B 90 95 80 81 1F 03 18
     .
     .

    AID: A0 00 00 00 03 00 00 00                       |........|        ISD LC: 1 P
    R: 0x9E

    AID: 01 02 03 04 05 01                             |."3DUf|          App LC: 7 P
    R: 0x00

    AID: 01 02 03 04 05                                |."3DU|           Exe LC: 1 P
    R: 0x00


As the output shown, the life cycle of my applet is 7 and the applet privilege is 0x00.

How can I change them?

Re: How to change life cycle and privilege of my applet

Posted: Mon Dec 21, 2015 11:25 pm
by UNKNwYSHSA
gpj didn't have the feature to change Applet privilege or life cycle, I looked for.

1 You can use the SET STATUS command to change Applet life cycle.
The SET STATUS command shall be used to modify the card Life Cycle State or the Application Life Cycle
State.

For more details, see GlobalPlatform Card Specification 2.1.1 - Chapter SET STATUS Command.

2 The Applet privilege can only be set when the Applet installation.