Page 1 of 1

Get false when locking my card

Posted: Wed Jan 06, 2016 2:40 am
by Erisaron
When I call API GPSystem.lockCard() to lock my real card- A22CR, it always return false! I also do it on simulator, I get the same result. Any help?

Note: My card lib- Java Card 2.2.2 and Global Platform 2.1.1
Tool- JCKit 1.0.5.37

Re: Get false when locking my card

Posted: Thu Jan 07, 2016 5:30 am
by Tarantino
Erisaron wrote:When I call API GPSystem.lockCard() to lock my real card- A22CR, it always return false! I also do it on simulator, I get the same result. Any help?

Note: My card lib- Java Card 2.2.2 and Global Platform 2.1.1
Tool- JCKit 1.0.5.37

To lock card, you should install applet with 'Card Lock' privilege and set card manager state to secured. Then it will work fine.