According to documentation;
Restore: Moves the contents of a block into the internal Transfer Buffer
Transfer: Writes the contents of the internal Transfer Buffer to a value block
So want to move some data from x block to y block.
According to access conditions, Sector 3 supports transfer and restore.
Also Block 12 have a data quickappdemotest. I want to move it from Block 12 to Block 13 by using restore and transfer methods but somehow it did not work.
MifareClassic mfc = MifareClassic.get(tag);
try {
mfc.connect();
boolean authA = mfc.authenticateSectorWithKeyA(3, MifareClassic.KEY_NFC_FORUM);
if (authA) {
mfc.restore(12);
mfc.transfer(13);
}
mfc.close();
} catch (Exception e) {
Log.d(TAG, "Error: " + e.getMessage());
}
It does not throw any exception but after method completes, when I checked from the app only Block 12 have quickapptestdemo data.
Can anyone give me clue?
