title: How to read the Mifare Classic tag using the NfcA class?
body: <p>I have an NFC tag with support for <code>NfcA</code> and <code>MifareClassic</code> technologies. After a firmware update, my phone does not support the <code>MifareClassic</code> technology anymore. On older firmware, reading the <code>MifareClassic</code> tag worked fine.</p>
  
  <p>Is it possible to use the <code>NfcA</code> class to read the Mifare Classic tag? How can this be done?</p>
  
  <p>The key for authenticating the technology of Mifare Classic A0A1A2A3A4A5 (For example)</p>
  
  <pre><code>public static String[] readTag(Tag tag) {
      byte[] readedData;
      byte[] PASSWORD = new byte[]{(byte) 0xA0, (byte) 0xA1, (byte) 0xA2, (byte) 0xA3, (byte) 0xA4, (byte) 0xA5};
      NfcA nfca = NfcA.get(tag);
      try {
  
          nfca.connect();
          readedData = nfca.transceive(new byte[]{
                  (byte) 0x30,
                  (byte) (0 &amp; 0x0ff),PASSWORD // (for example)
          });
      } catch (Exception e) {
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/r1HMM.png" rel="nofollow noreferrer">Commands for transceive</a></p>