Wednesday, December 19, 2012

system.img.ext4 unpack

system.img.ext4(system partition)
amss.bin(The device driver)
mdm.bin(base band)
recovery.img(recovery partition)
boot.img(core)

use  file ext4_utils (genext4.sh,make_ext4fs,mkuserimg.sh ,pack.sh,simg2img)

copy the file(mkuserimg.sh,simg2img) to "bin" directory and Modify permissions

    sudo cp ~/dir/make_ext4fs /bin/
    sudo chmod 755 /bin/make_ext4fs
    sudo cp ~/dir/simg2img /bin/
    sudo chmod 755 /bin/simg2img
    simg2img system.img.ext4 system.img
    mkdir temp //create directory "temp" to moutn the "system partition"
    file system.img  //dispaly the type of system.img
    mount -o loop system.img temp

No comments:

Post a Comment