JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

How to change life cycle and privilege of my applet

JavaCard Applet Development Related Questions and Answers.
pitbar
Posts: 22
Joined: Wed Dec 02, 2015 5:39 am
Points :93
Contact:

How to change life cycle and privilege of my applet

Post by pitbar » Fri Dec 18, 2015 4:51 am

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?

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3055
Contact:

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

Post by UNKNwYSHSA » Mon Dec 21, 2015 11:25 pm

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.
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 29 guests

JavaCard OS : Disclaimer