nadam / nfc-reader

Simple NFC Reader for Android
903 stars 354 forks source link

Can't read from OnePlus 3 #26

Open Graunephar opened 6 years ago

Graunephar commented 6 years ago

Not important to me personally.

However I tried your app on my OnePlus 3T with a NFC tag that I know I can read from other apps on the same device. And nothing happens.

xsten commented 6 years ago

Currently, with V1.05, you should have

1/ a sound notification indicating that the card is read 2/ "Error: Please rescan your card" or "Card read complete" toast message 3/ display a summary of data obtained for the card

If there is no sound notification, the contactless interface of card us unreadable (not EMV,desactivated by bank, or maybe NFC is just switched off on the phone). Double check with another application.

If an error message appears, the card was partially read, but application failed on one APDU. It occurs when you retract the card too early, but I found this problem in early stages of development (trying to used CDA on a DDA card for example) - so maybe a bug there.

If the card is read, but displays "null" for some fields (typically the certificate), the card deliberately refused one of the commands. Very often, you can workaround by changing terminal tags (Terminal Type) and (Generate AC P1) are good candidates : simulating an online terminal gives often better results.

If you are a developer, you can send me the ADB traces of your transaction (you can hide the PAN of your card for more safety)