0

Unpack Repack boot.img Android

Berikut adalah langkah-langkah untuk Unpack boot.img android:

  • Download tools disini.
  • Copy boot.img kedalam folder bootimg-tools-linux.
    akhal@akhal-pc:~/Documents/bootimg-tools-linux$ ls -l
    total 10304
    -rwxr-xr-x 1 akhal akhal 10485760 Jan 21 10:39 boot.img
    -rwxr-xr-x 1 akhal akhal      228 Mei 19  2011 extractboot
    -rwxr-xr-x 1 akhal akhal    24302 Mar 31  2012 mkbootfs
    -rwxr-xr-x 1 akhal akhal    23798 Mar 31  2012 mkbootimg
    -rwxr-xr-x 1 akhal akhal      424 Mei 19  2011 packboot
    -rwxr-xr-x 1 akhal akhal     6121 Peb 23  2011 split_bootimg.pl
    
  • Ketikkan perintah: ./extractboot boot.img
    akhal@akhal-pc:~/Documents/bootimg-tools-linux$ ./extractboot boot.img 
    Page size: 2048 (0x00000800)
    Kernel size: 6314748 (0x00605afc)
    Ramdisk size: 155904 (0x00026100)
    Second size: 0 (0x00000000)
    Board name: 
    Command line: console=ttyHSL0,115200,n8 androidboot.hardware=qcom
    Writing boot.img-kernel ... complete.
    Writing boot.img-ramdisk.gz ... complete.
    593 blocks
    akhal@akhal-pc:~/Documents/bootimg-tools-linux$
  • Boot.img berhasil diupack, untuk melihat hasilnya ada didirektori out.
    akhal@akhal-pc:~/Documents/bootimg-tools-linux$ ls -l
    total 16632
    -rwxr-xr-x 1 akhal akhal 10485760 Jan 21 10:39 boot.img
    -rw-r--r-- 1 akhal akhal  6314748 Jan 21 10:42 boot.img-kernel
    -rw-r--r-- 1 akhal akhal   155904 Jan 21 10:42 boot.img-ramdisk.gz
    -rwxr-xr-x 1 akhal akhal      228 Mei 19  2011 extractboot
    -rwxr-xr-x 1 akhal akhal    24302 Mar 31  2012 mkbootfs
    -rwxr-xr-x 1 akhal akhal    23798 Mar 31  2012 mkbootimg
    drwxr-xr-x 3 akhal akhal     4096 Jan 21 10:42 out
    -rwxr-xr-x 1 akhal akhal      424 Mei 19  2011 packboot
    -rwxr-xr-x 1 akhal akhal     6121 Peb 23  2011 split_bootimg.pl
    akhal@akhal-pc:~/Documents/bootimg-tools-linux$

Berikut adalah langkah-langkah untuk Repack boot.img android:

  • Ketikkan perintah: ./packboot
    akhal@akhal-pc:~/Documents/bootimg-tools-linux$ ./packboot 
    Using base address 0x00200000
    Using command line 'console=ttyHSL0,115200,n8 androidboot.hardware=qcom'
    akhal@akhal-pc:~/Documents/bootimg-tools-linux$ 
    
  • Hasilnya menjadi boot_new.img
    akhal@akhal-pc:~/Documents/bootimg-tools-linux$ ls -l
    total 22956
    -rwxr-xr-x 1 akhal akhal 10485760 Jan 21 10:39 boot.img
    -rw-r--r-- 1 akhal akhal  6314748 Jan 21 10:42 boot.img-kernel
    -rw-r--r-- 1 akhal akhal   155904 Jan 21 10:42 boot.img-ramdisk.gz
    -rw-r--r-- 1 akhal akhal  6475776 Jan 21 10:47 boot_new.img
    -rwxr-xr-x 1 akhal akhal      228 Mei 19  2011 extractboot
    -rwxr-xr-x 1 akhal akhal    24302 Mar 31  2012 mkbootfs
    -rwxr-xr-x 1 akhal akhal    23798 Mar 31  2012 mkbootimg
    drwxr-xr-x 3 akhal akhal     4096 Jan 21 10:46 out
    -rwxr-xr-x 1 akhal akhal      424 Mei 19  2011 packboot
    -rwxr-xr-x 1 akhal akhal     6121 Peb 23  2011 split_bootimg.pl
    akhal@akhal-pc:~/Documents/bootimg-tools-linux$

Bagi pengguna operating system Windows, tools yang digunakan dapat diunduh disini.