NFC or RFID on Android topic

SOCIALIZE IT ⇨

I have a Nexus5 with NFC reader and I tring to comunicate with RFID tags ISO14443B and ISO14443A, these tags don't respect ISO at 100% for example for ISO14443B not reply to REQB command so android don't detect it.
I tried to comunicate with tags directly with this code:


Code:


Bundle extras = new Bundle();
    try {
        Class cls = Class.forName("android.nfc.Tag");
        Constructor c[] = cls.getConstructors();
        Method tags = cls.getMethod("getTagService");
        Object tagService = tags.invoke(tag);
        Tag t = (Tag)c[0].newInstance(new byte[]{0x00},new int[] { 2 },new Bundle[] { extras },1,tagService);
        Method setConnectedTechnology = cls.getMethod("setConnectedTechnology",new Class[]{int.class});
        setConnectedTechnology.invoke(tag,2);
        NfcB b = NfcB.get(t);

        b.connect();
        byte a[] = b.transceive(new byte[]{0x02,0x01,0x01,0x04});
    }catch(Exception e){ }


but transceive give an error because android monitoring constantly the presence of tag. I tried to receive data with Proxmark3.
I'd like to patch android for implement also not standard protocols, but I don't understand where in source code this comunication is done. Where REQB or REQA are generated?
Someone can help me to find it?
Thank you

xda-developers


  1. How to roll back to KK topic
  2. What is this in Greenify settings topic
  3. [Q] How to update? topic
  4. NFC or RFID on Android topic
  5. Is root required to roll back to KitKat? topic
  6. [REQ] Multi DPI Stock Camera topic
  7. May be this is it for Xperia J topic
  8. [Q] No IMEI and baseband anymore. So back to stock rom for repair! topic
  9. [Q] New to phone - on 24A rooted - where to go from here? topic
  10. Htc desire 816 official lollipop update video review topic
  11. [Q] Galaxy S6 Edge T-Mobile Unlock by SIM code topic

0 commentaires:

Enregistrer un commentaire