Reply To: Trying to read DESFire EV1 Card, requires Authentication.

Forum MIFARE SDK Trying to read DESFire EV1 Card, requires Authentication. Reply To: Trying to read DESFire EV1 Card, requires Authentication.

Re: Trying to read DESFire EV1 Card, requires Authentication.

24. February 2016 at 9:08
Hi Michael,

The method

int[] com.nxp.nfclib.desfire.DESFireEV1.getApplicationIDs()

returns all application Ids (AIDs) on the card. This method is part of Lite also as of Advanced SDK. An “application” contain all files for a dedicated assignment of files. All file related operations refer to a selected application. You can have more applications and more files, e.g.: a file with the ID 01 in AID 0x010203 and a file with the same ID in AID 0xABCDEF. When you use ReadData(01) it must be clear which AID is currently selected.

As I explained, the commands getApplicationIDs() and selectApplication() are available in both editions of the SDK and can be used without authentication. The SDK requires to select the root AID first before you can use getApplicationIDs():

selectApplication(0)
getApplicationIDs()

The root AID (0x000000) is always available, but you cannot create files in the root AID.

The MIFARE Team
+ 0  |  - 0