abootimg
Manipulate Android Boot Images.
root@kali:~# abootimg --help
error - bad arguments
abootimg - manipulate Android Boot Images.
(c) 2010-2011 Gilles Grandou <gilles@grandou.net>
0.6
abootimg [-h]
print usage
abootimg -i <bootimg>
print boot image information
abootimg -x <bootimg> [<bootimg.cfg> [<kernel> [<ramdisk> [<secondstage>]]]]
extract objects from boot image:
- config file (default name bootimg.cfg)
- kernel image (default name zImage)
- ramdisk image (default name initrd.img)
- second stage image (default name stage2.img)
abootimg -u <bootimg> [-c "param=value"] [-f <bootimg.cfg>] [-k <kernel>] [-r <ramdisk>] [-s <secondstage>]
update a current boot image with objects given in command line
- header informations given in arguments (several can be provided)
- header informations given in config file
- kernel image
- ramdisk image
- second stage image
bootimg has to be valid Android Boot Image, or the update will abort.
abootimg --create <bootimg> [-c "param=value"] [-f <bootimg.cfg>] -k <kernel> -r <ramdisk> [-s <secondstage>]
create a new image from scratch.
if the boot image file is a block device, sanity check will be performed to avoid overwriting a existing
filesystem.
argurments are the same than for -u.
kernel and ramdisk are mandatory.