History log of /frameworks/base/core/java/android/nfc/tech/MifareClassic.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
72677c98bd8231374ff60a2dd48886446de99f1f 24-Nov-2011 Sunil Jogi <sunil.jogi@nxp.com> Patch to support MIFARE with SAK 0x01

Change-Id: Ic30c083bb43b37f90beefc0ff165ba2713635a7f
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
82328bfd40008d85917cc01a1b2eb8eed1f23ec4 30-Aug-2011 Nick Pelly <npelly@google.com> NFC API updates.

o NfcAdapter.set*(): enforce at least one activity is provided at compile time.
o Unhide and update javadoc for some API's scheduled for ICS release.

Change-Id: I2bf4ea101442dcdeb359be26d3869f82e6e3748b
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
faca12adc62d148505fadfd286e6a2752c197fa0 19-Aug-2011 Martijn Coenen <maco@google.com> Add getMaxTransceiveLength() API.

Also moved canMakeReadOnly() down in the stack, and
cleaned up TransceiveResult.

Change-Id: I85576c52478ab79f0726606659b0c17d00b222e6
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
20e62c9f1466ace5771e244f03a995dc0939b11b 20-Jul-2011 Martijn Coenen <maco@google.com> Support for getTimeout() (API).

Bug: 4492175
Change-Id: Ibc9a1b78d8c0992f47664d33760e0ce8dca67c64
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
112fdf612db71a552fce063136bf2796df3b71ec 09-Jun-2011 Martijn Coenen <maco@google.com> Support for setting the NfcA transceive timeout (API).

Change-Id: I2c40fbc7e9101462afae18125feba30cf76ea5f2
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
734e9b0c73483fdaa582c21dedc24107b1fe8838 26-May-2011 Jeff Hamilton <jham@android.com> Swap Mifare for MIFARE.

Change-Id: I45580d32f5ccebf906372c3c1664bc66718a672e
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
39cf3a445e507f219ecc8a476f6038f095d9d520 07-Feb-2011 Nick Pelly <npelly@google.com> Document NFC permissions.

Change-Id: Ib1b1625058c9c673692f3fbcb3546ec7c2d54a07
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
46797ac098e90cbef5c266b75fb37fc06e9acc80 04-Feb-2011 Nick Pelly <npelly@google.com> Fix docs type that broke build.

Change-Id: I5b5a2fc5baf95ace74bf90ff2c750ba890054d64
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
74fe6c6b245ebe7d3b3d96962c32980d88dca4f5 03-Feb-2011 Nick Pelly <npelly@google.com> NFC documentation overhaul.

Change-Id: I45dca95a24b2d0327e080436fbcc7b1dad79de02
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
4a5e2532205252e0b8616ebc07ca089fd3721681 27-Jan-2011 Nick Pelly <npelly@google.com> Clean up MifareUltralight API.

o Some javadoc updates
o writeBlock -> writePages (Block means something else in NFC Forum).
o validate page offset

Change-Id: Icae54db3397d57aaa451caaa86d56e8ba82507f2
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
b134223f91c8801d577cb72e92a37cb65fec717a 25-Jan-2011 Nick Pelly <npelly@google.com> Make Mifare Classic increment/decrement operands little endian

Also make sure they are non-negative.

This is not documented in Mifare Classic spec, but based on findings from NXP:
- Operand should be stored in little-endian format in the transceive buffer
- Tag ignores the sign bit on the operand, its effectively 31-bit unsigned
- Overflow and underflow generates an error.

Change-Id: Id3389b3894ded732c4b00d564ca53f5df651359e
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
1e233af3a783d44843a6f2b895d00a5d3b0c29f0 24-Jan-2011 Nick Pelly <npelly@google.com> Add operands to mifare classic increment, decrement.

Change-Id: Ib35f615142bda48a5e33888a09ebae2880624788
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
e45083b11bef915f713379fb4106dd2ebd897d03 22-Jan-2011 Nick Pelly <npelly@google.com> Make MifareClassic methods more consistent.

Remove method overloading for combinations of sector+block addressing.
Instead provide methods that more closly match the raw commands, and more
efficient helpers to convert between blocks and sectors.

o fix off-by-one bug in getBlockCountInSector()
o add BLOCK_SIZE
o remove DESFIRE not operating in classic emulation (SAK 0x20)
o hide isEmulated(), there is no use case, and the info is available elsewhere
o getTotalBlockCount() -> getBlockCount()
o getBlockCount(int) -> getBlockCountInSector(int)
o introduce blockToSector() and sectorToBlock()
o remove authenticateBlock()
make it really clear that authentication is per sector, and reduce function
explosion. blockToSector() allows you to use authenticateSector...
o explicit authenticateSectorWithKeyA() / authenticateSectorWithKeyB()
get rid of magic boolean
o remove all (int sector, int block) parameters
always address by absolute block. this makes the API crystal clear, and
helps reduce function explosion
o validation of all sector and block indices
o dont & 0xff when converting to byte - its redundant
o Remove TYPE_OTHER. Mifare Classic types are well-known and stable.

Change-Id: I3c9f8254ff307f31b388b3d7592c862d5de6afa5
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java
4e21e1d21a877cce4db5ec8c5786604cc10f2d7e 21-Jan-2011 Jeff Hamilton <jham@android.com> API changes for NFC.

Bug: 3366009
Change-Id: Ia28e03e1501421906b640b78d4c9a59a20e9c668
/frameworks/base/core/java/android/nfc/tech/MifareClassic.java