I use MFBlock.write(key, src,dstoffset) to write to a sector trailer. I write 16 bytes and they contain a valid sector trailer (0xd3 0xf7 0xd3 0xf7 0xd3 0xf7 0x7f 0x07 0x88 0x40 0xff 0xff 0xff 0xff 0xff 0xff). I write at offset 0 of block 3.
I get an IllegalArgumentException back. The docs saySo I would expect this to succeed.However if writing sector trailers and the amount of data isn't a multiple of the block size then an IllegalArgumentException will be thrown
I'm writing to the mifare emulation on the secure element.
The SE has been unlocked, I checked an all trailers are set to default.
The midlet is signed and can successfully talk to the secure element.
any ideas how I could write this sector trailer to the mifare emulation?