Http://forum.androidspin.com/showthread.php/3973-ADVANCED-How-To-Mod-BOOT-amp-RECOVERY
[Advanced] How to mod: boot & Recovery
This is heavily based on:
Howto: unpack, edit, and re-pack boot images
Android magic
. IMG file is special (it is not regular, it has magic), it is the image file of a particle NAND partition...
- Use Linux
- GetMkbootfs&Mkbootimg
- These are tools made when compiling Android OS source code
- If you do not want to compile your own source code just download the Binaries
- This download link is from an xda
Forum post
- The zip has the correct binaries but they are named"Linux-x86", Feel free to rename
- This is just to let you know it was compiled for Linux (maybe you can find one for Windows ?) And X86 architecture
- Get split_boot.zip from how
To post mentioned in the beginning
- Grab a boot. IMG or recovery. IMG (my examples will be based on recovery )-See Post #3 for grabbing these from your device
- Split it
- Examine
- You will have two new files based on whatever file name you gave abve
- Kernel will have "-kernel"
- Yes this is the kernel (Compressed) for this. img
- You have successfully extracted the kernel
- You cannot edit these
- You can mix and match
- If I know the kernel from older boot works I can just use it with my Newly Edited ramdisk
- Ramdisk will have "-ramdisk.gz"
- Feel free to rename
- Unpack ramdisk
- Examine
- In all ramdisk you will have a few folders and files:
- Data
- Dev
- Etc
- Proc
- Res
- Images for recovery go here
- Sbin
- The actually recovery binary goes here
- Also adbd
- Sys
- System
- TMP
- Default. Prop
- Init
- Init. Goldfish. RC
- Init. RC
- Init. Yuhua. RC
- Init. Yuhua. Sh
- Initlogo. RLE
- Obviously recovery and boot will be different
- Compare stock ones with ones I edited
- Use Beyond compare or meld
- Pack-up ramdisk
- Back to IMG
- Now flash via recovery or something
- Only mess with boot or recovery if you break both you will have a bricked Device