feat: Add device dumper and refine firmware tool #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit introduces a new
dumpcommand to the Android 15 firmware tool, allowing users to pull partitions directly from a rooted Android device usingadb shell su dd.Key changes include:
device_dumper.pymodule handles the interaction withadbfor dumping partitions.dumpcommand is added tomain.py, making the new functionality accessible to users.BootImageparser inboot_image.pyhas been updated to handle Android 15-style boot images where theos_versionfield in the header is zero. A placeholder for future AVB footer parsing has been added.README.mdfile has been created with usage instructions for all commands, including the newdumpfeature. It also clarifies thatsuperpartition unpacking is not yet implemented.SuperUnpackerclass now raises aNotImplementedError. A.gitignorefile has been added, and previously tracked generated files (.egg-info,__pycache__) have been removed from the repository to improve hygiene.