jekkos / android-hce-desfire

A HCE software implementation of the NXP Desfire NFC protocol in an Android app (to be used with Cyanogenmod HCE patch)
34 stars 13 forks source link

Found new status code for the Desfire chips #1

Open maxieds opened 6 years ago

maxieds commented 6 years ago

Have a look at page 17 of this document. I think you might have missed an error code or two. Your site is great BTW! I'm using some of the compiled codes in your java files to try to do rudimentary apdu recognition in my app for the Chameleon Mini.

Keep up the good work!

jekkos commented 6 years ago

Cool to hear that this work is useful to you! I never heard about this NFC emulator and it seems quite an interesting one as it implements most of the protocol stack in pure software?

Actually the annoying part of the android stack is that it's well capable of doing all these things (by modifying AOSP) but that you of course require documentation on how the NXP chips work (eg to disable parity checks so you can use mfoc, which is rather non standard).

I have an OpenPCD which uses Pn532 which is not really 'open' but for which a detailed manual exists that allows you to do most of these things (except a real UID emulation, which is sort of the holy grail of NFC hacking). Most of the android handsets don't have manuals available for their chips (except PN544 as I found out today) otherwise you would be well able to hack that all into a mobile phone..

jekkos commented 6 years ago

Useful document reference there btw, it was sort of hard to find clear documentation on how this protocol works so most of the code here was written and put together by searching the web and the citations in the readme