Allows to unpack and repack AMLogic Android images on Linux systems without using the Customization Tool - works for Android 7.
- Unpack and repack any image
- Mount and edit
system
partition - Unpack and repack
logo
partition (for bootup and upgrading logos) - Works for Android 7
- No need to unpack the image each time you want to use the tool
- Edit other partitions of the image such as
recovery
orboot
(you can still replace thePARTITION
files by hand)
- Clone or download this repository
- Move to the directory of the repository, and stay there
- (first time, or after a cleanup) Run
./bin/build
to build the required tools - (when editing a new image file) Run
./bin/unpack input.img
to unpackinput.img
- The image files can now be found in
output/image
, the system partition files inoutput/system
and the logo images inoutput/logo
- The image files can now be found in
- From now on you can edit the files of both the
image
andsystem
directories- Note that the
system.PARTITION
andlogo.PARTITION
files will be replaced when repacking - If you happen to loose the
output/system
mounting point (after a reboot for instance), just run./bin/remount
to mount it again - On the other hand, you can unmount the system partition using
./bin/unmount
- Note that the
- Just be careful not to break everything by chmod'ing the whole
output/system
folder, because it will be replicated in the image and it won't boot ! - When you have finished editing the files, run
./bin/repack output.img
to repack the image tooutput.img
- Done !
- Thanks to Magendanz and adg for the unpacking and repacking method
- https://github.com/khadas/utils for the
aml_image_v2_packer
andlogo_img_packer
binaries - https://github.com/anestisb/android-simg2img for the
simg2img
tool