-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Android sparse image (simg) tools #8
Conversation
Hey, thanks for the PR. I am somewhat busy at the moment but currently working on an upgrade to platform-tools-29.0.2 which isn't entirely finished yet and currently requires gcc |
@nmeum That's fine. Take all the time you need! :) |
I merged the upgrade to platform-tools-29.0.2 into the master branch yesterday. Still want to make some tests before doing a new release. If you want to, you can rebase your branch against master now and check that everything still works as expected. Let me know if you run into any issues. |
@nmeum Done. (FYI, there seems to be platform-tools-29.0.3 now...) |
libsparse is already built for fastboot, so building the simg tools only requires a few build rules to link the executables. Adds the following tools: - simgtoimg - img2simg - append2simg
Rebased on 29.0.3, seems like it is working fine without conflicts/changes this time. Line 14 in c3439b0
|
Yep, indeed. Thanks for rebasing and pointing that out. Will fix that, do some more tests, merge your PR and then release a new tarball. Speaking of testing: Is there any easy way to test the utilities added by your PR? |
Yes. The easiest way is to obtain a raw image file of a partition (e.g. using
A real usage example would be downloading a factory image for an Android device (e.g. for one of the Google devices). The system image ( Not sure about |
Merged in db84fde. Thanks for the contribution and sorry that it took a while. |
The sparse image tools (simg2img, img2simg, append2simg) are now part of Alpine's android-tools where they are continously updated. (See nmeum/android-tools#8) Therefore, "libsparse" now conflicts with "android-tools", which causes the fastboot flasher to fail if "libsparse" is already installed. Install "android-tools" instead of "libsparse" before generating a sparse image to avoid this problem.
The sparse image tools (img2simg, simg2img, append2simg) are now part of Alpine's android-tools package where they are continously updated. (See nmeum/android-tools#8) Remove "libsparse" as depends from all packages because it is either: - installed automatically by pmbootstrap when needed for deviceinfo_flash_sparse="true" (device-chuwi-hi10plus, device-htc-flounder, device-lg-bullhead, device-semc-anzu, device-xiaomi-kenzo) - seemingly unused(?) (device-asus-z00t, linux-motorola-falcon, linux-motorola-peregrine) [ci:skip-build]: already built successfully in CI
libsparse is already built for fastboot, so building the simg tools only requires a few build rules to link the executables.
Adds the following tools:
These tools are used to convert partition images to the sparse format (saving some space), and back.