lgetools icon indicating copy to clipboard operation
lgetools copied to clipboard

Tool for merging GPT from KDZ with device GPT

Open ehem opened this issue 7 years ago • 2 comments

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.

ehem avatar Oct 29 '16 16:10 ehem

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).

ehem avatar Nov 13 '16 01:11 ehem

This appears to be done. Testing is still needed before closing this bug.

ehem avatar Nov 24 '16 01:11 ehem