public class PersistentDataBlockService
extends SystemService
Service for reading and writing blocks to a persistent partition.
This data will live across factory resets not initiated via the Settings UI.
When a device is factory reset through Settings this data is wiped.
Allows writing one block at a time. Namely, each time
android.service.persistentdata.IPersistentDataBlockService
.write(byte[] data)
is called, it will overwite the data that was previously written on the block.
Clients can query the size of the currently written block via
android.service.persistentdata.IPersistentDataBlockService
.getTotalDataSize().
Clients can any number of bytes from the currently written block up to its total size by invoking
android.service.persistentdata.IPersistentDataBlockService
.read(byte[] data)