lgetools
lgetools copied to clipboard
Tool for merging GPT from KDZ with device GPT
After a device's image was overwritten with a H901 KDZ, some of the old partitions might be desirable to restore. Need something to merge the appropriate chunks from the original KDZ.
The initial implementation of this is done. There are two missing features right now. First, I've got a third merging strategy I want to put in place. Second, I want to have the GPT CRC remain the same after alteration.
The second is meant to make it hard_er_ to notice the GPT was altered, hopefully the low-level firmware wouldn't be sensitive to changing the slice Ids, but it could be used to try to discourage modification. The first is simply to offer another alternative.
You need to have the Android NDK installed, at which point running ndk-build
will build mergegpt
which implements this task (gpt
is mostly a debugging tool).
This appears to be done. Testing is still needed before closing this bug.