CrazySmiley / readnfccc

Automatically exported from code.google.com/p/readnfccc
0 stars 0 forks source link

Cannot read my CB/Visa - IOException when IsoDep.connect() #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello !
I don't know if anyone is still following this NFC story... I tried to see by 
myself if my data was exposed by reading my own bank card, however I cannot get 
anything from it. This might be a good thing, or it is just that I am not a 
good enough android dev. Maybe someone can help me?

The mTechStringList attribute of the Tag object discovered has 2 values: IsoDep 
and NfcA.
However when I try to use the connect() method, I get a IOException...

Concerned code is the following:

Tag nfcTag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
//Tag t = (Tag) nfcTag;
IsoDep myTag = IsoDep.get(nfcTag);
   if( !myTag.isConnected() ) {
    try {
        myTag.connect();
    } catch (IOException e) {
        e.printStackTrace();
        return;
    }
}

Do you know if banks reacted and implemented security measures ? Or is there 
something wrong with the code ?
My card is a French bank CB / VISA card, quite common.

Thank you !
Nicolas

Original issue reported on code.google.com by Nico...@gmail.com on 2 Jul 2014 at 9:56