I have tested with:
And works well,
Later with the purpose of write in the sector without having to write in each block. I have tryed with:
With the result of java.lang.IllegalArgumentException: Invalid sector byte range
sector = conn.getSector(1);
Taking in account that sector 1 have 14 data block of 16 bytes, and 128 is a multiple of block size i think that no source or destination byte range is out of bounds.
Have you got some idea?