Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 438feb9b authored by Martijn Coenen's avatar Martijn Coenen
Browse files

Provide system code and manufacturer code for Felica tech.

Change-Id: I56d5308ad5fa4998a88e1e0aec51fe301ab99078
parent 1253ebc7
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -36,8 +36,28 @@ import android.os.RemoteException;
 * permission.
 */
public final class NfcF extends BasicTagTechnology {
    /** @hide */
    public static final String EXTRA_SC = "systemcode";
    /** @hide */
    public static final String EXTRA_PMM = "pmm";

    private byte[] mSystemCode = null;
    private byte[] mManufacturer = null;

    public NfcF(NfcAdapter adapter, Tag tag, Bundle extras)
            throws RemoteException {
        super(adapter, tag, TagTechnology.NFC_F);
        if (extras != null) {
            mSystemCode = extras.getByteArray(EXTRA_SC);
            mManufacturer = extras.getByteArray(EXTRA_PMM);
        }
    }

    public byte[] getSystemCode() {
      return mSystemCode;
    }

    public byte[] getManufacturer() {
      return mManufacturer;
    }
}