string getDefaultKey(int keyid)

This function currently is not included in the Android API documentation. It returns a JSON string of a byte[] that is filled with a few default Mifare auth keys that the Android API provides. The following is a list of keyid values and the matching API constant that will be returned (defaults to 0 if an unknown value is provided):

0: KEY_DEFAULT
1: KEY_MIFARE_APPLICATION_DIRECTORY
2: KEY_NFC_FORUM

Parameters

Name Description
keyid The key ID (see above for possible values).

Return

A JSON formatted string of byte[] with default Mifare auth keys.