Reply To: NTAG424DNATT authenticateEV2First Error

Forum MIFARE general topics and applications NTAG424DNATT authenticateEV2First Error Reply To: NTAG424DNATT authenticateEV2First Error

Re: NTAG424DNATT authenticateEV2First Error

4. November 2020 at 9:06
Hi tapLinx support, I use your code implementation, but I have the same problem and the same exception.
I noticed that you are using the taplinx library version 1.8. I have the 1.7 version and there isn't the method libname.getTapLinxVersion(), where can I download the 1.8 version? Another problem is the CardType cardType=m_libInstance.getCardType(intent); it return unknown I can't assign this variable, if I do evaluate on this m_libInstance.getCardType(intent) it return NTAG424Tag Tumper.
In my code, that is like your, my byFCI is null, isoSelectApplicationByDFName(NTAG424DNATT_APP_NAME) and return always null.
I have the same problem as before, on AuthenticateEV2First the application return 911C, and if i try to do isoSelectApplicationByDFID(ID) with ID method that i'd posted earlier return exception 6A82. I post the code that I using now.
Could be the 1.7 library the problem? Where can I find the 1.8 library?
Help me, please it's for my degree project.
Thank you in advice for your help.


private void cardLogic(final Intent intent){
CardType cardType=m_libInstance.getCardType(intent);
byte[] KEY_AES128_DEFAULT = {
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00,(byte) 0x00, (byte) 0x00,
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00,(byte) 0x00,
(byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x00, (byte) 0x00
};
byte[] NTAG424DNATT_APP_NAME =
{(byte) 0xD2, 0x76, 0x00, 0x00, (byte) 0x85, 0x01, 0x01};
byte[] byFCI;
try{
//if(CardType.NTAG424DNATagTamper==m_libInstance.getCardType(intent)){
INTAG424DNATT objNtag424tt=DESFireFactory.getInstance()
.getNTAG424DNATT(m_libInstance.getCustomModules());
objNtag424tt.getReader().connect();
objNtag424tt.getReader().setTimeout(2000);
Log.d(TAG,"android version"+Build.VERSION.RELEASE);
Log.d(TAG, "phone model"+Build.MODEL);
Log.d(TAG,"taplinx version");//no have m_libIstance.getTapLinxVersion() method i have 1.7 version
Log.d(TAG,"card type"+cardType.getTagName());
byte[] byVersion=objNtag424tt.getVersion();
Log.d(TAG, "version: "+UtilityManager.byte2Hex(byVersion));
Log.d(TAG, "appname: "+UtilityManager.byte2Hex(NTAG424DNATT_APP_NAME));

byFCI=objNtag424tt.isoSelectApplicationByDFName(NTAG424DNATT_APP_NAME);//this always return null
Log.d(TAG, "selected");
SecretKeySpec keyDesDefault=new SecretKeySpec(KEY_AES128_DEFAULT,"AES");
KeyData keydatadesDefault=new KeyData();
keydatadesDefault.setKey(keyDesDefault);
Log.d(TAG, "Authenticate with AES key 0");
objNtag424tt.authenticateEV2First(0, keydatadesDefault, null);//return exception with 911C error
Log.d(TAG, "Authenticate ");
//}
}catch(Exception e){
e.getMessage();
}
+ 0  |  - 0