LpUtil is a Win32 utility for modifying Android logical partitions (i.e. super).
Note that sparse files are not handled specially and will simply be outputted in their sparse form.
Modify only changes the limits of an extent and does not move any data. When resizing extents you will first have to extract the data, modify the extent, then replace the data.
To become familiar with this utility do not use the full super partition. It's easier to just start with a 1 MB chunk at the start of the super partition. That has all the tables and metadata that you need to play around with. The other GBs of a super partition are just the data.
Currently the backup slots must be written manually. That means when you modify slot 0 you must modify slot 2 or 3 depending on how many slots you have.
Always double check after modifications that everything is clean. The backup slots will only be listed tersely in a single line if they agree with the main slots.
Show information:
Extract a logical partition:
Replace a logical partition (must be the exact same size):
Extract an extent:
Modify an extent (don't forget the backup slot):
Modify multiple extents:
Modify multiple contiguous extents using size shorthand (retains original 2048 start):
Modify multiple contiguous extents using upper limit shorthand:
Modify multiple contiguous extents using size in sectors of file shorthand (retains size of E1, E2):
Dump an lp_metadata file (which has no data):
Download the executable.