If you are looking for a way to easily unpack / repack boot.img, recovery.img or logo.bin from your MediaTek device, don't look any further. Here you can find my own Perl scripts.
Scripts were first based on the ones available on Android-DLS WiKi, but are now highly modified in order to work with specific MTK boot and recovery images. The scripts fully work with every image from all known MediaTek SoC:
- MT6516
- MT65x3 (MT6513 and MT6573)
- MT65x5 (MT6515 and MT6575)
- MT6577
- MT65x2 (MT6572 and MT6582)
- MT6589
- MT83xx (MT8377 and MT8389)
Usage: unpack-MT65xx.pl <infile> [COMMAND ...]
Unpacks boot, recovery or logo image
Optional COMMANDs are:
-kernel_only
Extract kernel only from boot or recovery image
-ramdisk_only
Extract ramdisk only from boot or recovery image
-force_logo_res <width> <height>
Forces logo image file to be unpacked by specifying image resolution,
which must be entered in pixels
(only useful when no zlib compressed images are found)
-invert_logo_res
Invert image resolution (width <-> height)
(may be useful when extracted images appear to be broken)
Usage: repack-MT65xx.pl COMMAND [...]
COMMANDs are:
-boot <kernel> <ramdisk-directory> <outfile>
Repacks boot image
-recovery <kernel> <ramdisk-directory> <outfile>
Repacks recovery image
-logo [--no_compression] <logo-directory> <outfile>
Repacks logo image
- Android-DLS for the initial scripts
- starix (from forum.china-iphone.ru) for the decryption of logo.bin files structure
Visit the support page for any questions or comments. Please don't forget to hit "Thanks" button.
Copyright (C) 2012 Bruno Martins (bgcngm@XDA)
You may not distribute nor sell this software or parts of it in Source, Object nor in any other form without explicit permission obtained from the original author.