Sabtu, 16 Februari 2013

Unpack, Repack boot.img, dan Edit


Unpacking boot.img:
Code:
$ mkdir -p unpack
$ tools/unpackbootimg -i boot.img -o unpack
Extracting boot.img-ramdisk.gz
Code:
$ mkdir -p unpack/boot.img-ramdisk
$ cd unpack/boot.img-ramdisk 
$ gzip -dc ../boot.img-ramdisk.gz | cpio -i
$ cd ../../
Packing a new ramdisk:
Code:
$ tools/mkbootfs unpack/boot.img-ramdisk | gzip > unpack/boot.img-ramdisk.gz
Create a new boot.img:
Code:
$ tools/mkbootimg --kernel unpack/boot.img-zImage --ramdisk unpack/boot.img-ramdisk.gz -o boot.img-repack --base `cat unpack/boot.img-base`
Convert rle to png:
Code:
$ tools/from565 -rle < COOPER.rle > COOPER.raw
$ convert -size 320x480 -depth 8 rgb:COOPER.raw COOPER.png
Convert png to rle:
Code:
$ convert -depth 8 COOPER-new.png rgb:COOPER-new.raw
$ tools/to565 -rle < COOPER-new.raw > COOPER-new.rle
NOTE:
For developers only, don't ask me for support! Solve your problems by yourself!

PASSWORD:
As usual: ketut.kumajaya
ATTACHED FILES
File Type: rarboot.img-tools.rar - [Click for QR Code] (66.4 KB, 2831 views)
File Type: zipblackhawk-tools.zip - [Click for QR Code] (282.5 KB, 1277 views)
.
Source: http://forum.xda-developers.com/showthread.php?t=1241005


 

Copyright © 2009 Study In Today . Blog Designed by Study In Today & AdhiTj.