Skip to content

Conversation

@techted89
Copy link

This commit introduces a new dump command to the Android 15 firmware tool, allowing users to pull partitions directly from a rooted Android device using adb shell su dd.

Key changes include:

  • Device Dumper: A new device_dumper.py module handles the interaction with adb for dumping partitions.
  • CLI Integration: The dump command is added to main.py, making the new functionality accessible to users.
  • Firmware Detection Logic: The BootImage parser in boot_image.py has been updated to handle Android 15-style boot images where the os_version field in the header is zero. A placeholder for future AVB footer parsing has been added.
  • Documentation: A README.md file has been created with usage instructions for all commands, including the new dump feature. It also clarifies that super partition unpacking is not yet implemented.
  • Code Quality: The SuperUnpacker class now raises a NotImplementedError. A .gitignore file has been added, and previously tracked generated files (.egg-info, __pycache__) have been removed from the repository to improve hygiene.
  • Testing: New unit tests have been added for the device dumper functionality, and all existing tests continue to pass.

google-labs-jules bot and others added 4 commits December 29, 2025 00:03
This change introduces a new command-line tool for extracting and repacking Android 15 firmware and recovery images. The tool is designed to be a low-level binary extraction tool that can handle the complexities of modern Android firmware.

The tool provides the following features:
- Image Identification: The tool can identify various Android image types.
- Firmware Extraction: The tool can extract the contents of these images.
- Recovery and DTB Handling: The tool can decompile and recompile Device Tree Blobs.
- Repacking: The tool can repack boot and recovery images.
…50019978

feat: Implement Android 15 Firmware and Recovery Tool
This commit introduces a new `dump` command to the Android 15 firmware tool, allowing users to pull partitions directly from a rooted Android device using `adb shell su dd`.

Key changes include:
-   **Device Dumper:** A new `device_dumper.py` module handles the interaction with `adb` for dumping partitions.
-   **CLI Integration:** The `dump` command is added to `main.py`, making the new functionality accessible to users.
-   **Firmware Detection Logic:** The `BootImage` parser in `boot_image.py` has been updated to handle Android 15-style boot images where the `os_version` field in the header is zero. A placeholder for future AVB footer parsing has been added.
-   **Documentation:** A `README.md` file has been created with usage instructions for all commands, including the new `dump` feature. It also clarifies that `super` partition unpacking is not yet implemented.
-   **Code Quality:** The `SuperUnpacker` class now raises a `NotImplementedError`. A `.gitignore` file has been added, and previously tracked generated files (`.egg-info`, `__pycache__`) have been removed from the repository to improve hygiene.
-   **Testing:** New unit tests have been added for the device dumper functionality, and all existing tests continue to pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant