PDA

View Full Version : CREATE FILE problem


zielonyplot
June 13th, 2006, 10:41
Hi!
I want to create an EF file on my sim card using apdu command CREATE FILE.
I am doing it like this:

BYTE CREATEFILE[] = { 0xA0 , 0xE0 , 0x00 , 0x00 , 0x14 , 0x62 , 0x12 , 0x82 , 0x02 , 0x21 , 0x21 , 0x83 , 0x02 , 0x6F , 0x50 , 0x8A , 0x01 , 0x00 , 0x8C , 0x02 , 0x01 , 0x00 , 0x80 , 0x01 , 0x7F } ;

After perform this command I get response: 9F 19, which means, that this command was correctly executed. But when I want to read this newly created file using adpu READ BINARY command:

BYTE READBINARY[] = { 0xA0 , 0xB0 , 0x00 , 0x00 },

I get response: 94 00, which means, that I didn't select an EF file. What I am doing wrong?

Please, help! Best regards!

Alex Railean
June 13th, 2006, 19:36
Have you provided the administrator PIN before attempting that? Note that there are several PINs that are used when experimenting with smart cards; in your case, the operation may be unsuccessful because you do not have enough privileges.

Unregistered
June 22nd, 2006, 10:29
So, can anybody tell me how can I get administrator PIN from my sim card?