Most of the tools are made for Linux, so here are some tools I have found in the web and I have used in Windows.. for X5 development.
The package contains 2 tools:
explore2fs: system.img and others .img extractor.
ZTE Racer kitchen by TigTex!: boot.img extract for replacing kernel and init tweaks (works on u8800)
Related
This tool i came across when i was working on the Ubuntu for Eris.
Code:
It copies your bootimage to a temp file so it has a space to work in
It then unpack the boot.img
Replaces the zImage you included ith the original one
Repacks the boot.img
Flashes the new boot.img with your kernel in it.
All you need to do is rename your kernel zimage, and place it in the kernel folder and re-sign it. MUCH easier than fastboot or baking up a custom boot.img each time you have to swap the kernel.
All thanks to Koush, i just found the thing
Hi,
Because of the need of a bootmanager and the lack of patience to type a hack a lot at the console, I created a ubuntu maverick based build system for arm crosscompiling with a script helps by building kernel, ramdisk, recovery archive, debugging via fastboot and so on. As chroot env it is very flexible, needs not to install something and runs inside all linux distris.
just extract it somewhere onto an ext partition goto the directory and type ./start
in the root of the chroot env is a README file which contains infos where is what. read it before.
it contains three tools
build (a script supports different actions, "build help" shows them)
unpack-boot (extracts a boot image into the actual directory)
unpack-ramdisk (extracts a ramdisk into the actual directory)
Download:
http://www.bisme.net/files/xda/bootbs.tar.bz2
TODO:
the chroot env is still based on a desktop version of maverick and bigger than needed, this will change soon.
PS: Bootmanager is still in work, should finish(as a trivial but working version) in the next days and is the first step to support multiboot different linux installations(also different android versions) on android tablets. But this is another story will get an own Thread here. In the meantime I hope all romcookers out there will have fun with this build system.
Hi,
This is a small collection of tool for unpack official Huawei firmware
github.com/dpeddi/huawei_firmware_unpacker
split_updata.pl
Improve split_updata.pl for Huawei phones
FactoryImage.img.pl
unpacked firmware may contain FactoryImage.img file. This file contain recovery.img, boot.img and cust.img
split_bootimg.pl (from zen-droid.googlecode.com)
use this to get kernel binary and ramdisk
extract-ikconfig (from kernel.org)
use this to get .config from kernel binary (without installing the image to the phone)
dpeddi said:
Hi,
This is a small collection of tool for unpack official Huawei firmware
www.github.com/dpeddi/huawei_firmware_unpacker
split_updata.pl
Improve split_updata.pl for Huawei phones
FactoryImage.img.pl
unpacked firmware may contain FactoryImage.img file. This file contain recovery.img, boot.img and cust.img
split_bootimg.pl (from zen-droid.googlecode.com)
use this to get kernel binary and ramdisk
extract-ikconfig (from kernel.org)
use this to get .config from kernel binary (without installing the image to the phone)
Click to expand...
Click to collapse
fixed the link
-Rik[Rittik]
Hello guys,i was trying porting MIUI for Zenfone (I used Mi Pad 2's rom).I am following this guide :http://http://forum.xda-developers.com/android/software/guide-build-port-miui-rom-to-device-t3250984
I prepared the rom,now i am trying modifying boot.img but with Android Kitchen at guide it is impossible,so i googled and found this:http://github.com/shakalaca/ZenFone-boot-tools
and this:http://github.com/sndnvaps/intel-boot-tools
but i couldn't extract ramdisk and split_img files.
So how can i extract ramdisk and split_img files or is it possible?
Thanks!
Yeap its possible!
You should look this : https://github.com/xiaolu/intel-boot-tools
Yeah,i saw that,tried but when i drag boot.img top of the unpack.exe nothing happens
My recommendation is for you to use AndImgTool, download it here: https://basketbuild.com/filedl/devs?dev=dgadelha&dl=dgadelha/Tools/AndImgTool.exe
Me and tank use it to [un]pack the kernels.
Also you can use mboot.py by quanganh2627 .This script was made for Linux and it is working good.
- unpack: mboot.py -u boot.img
- repack: mboot.py new-boot.img
https://drive.google.com/file/d/0BwEWY6gMvYOedDV1LVJUVkN2dms/view
I think that you can use AOSP kernel for miui but maybe few changes in ramdisk will be needed.
Do you have space between ur computer's user account's username???If it is there,it won't work......
Try moving that unpacking software folder to Root C drive and then from there try perform dragging the img on to the unpack.exe file....
and for other ported roms ? can by port rom unbootable duo to non ported kernoel ?
So there's threads about how to unpack UPDATE.APP on windows/PC/OS X so i decided why not do it on android too, this apps requires some additional tools to be downloaded just as OS X/Windows and linux needs as well. but process is otherwise similar. this tutorial doesn't need root!
NOTE THIS TUTORIAL isn't fully working on OREO on Huawei devices, it has some issues and i haven't found a workaround for it yet!
Needed apps
Termux https://play.google.com/store/apps/details?id=com.termux
Recommended apps
Hacker keyboard
Needed files
https://github.com/atarii/split_updata.pl/blob/master/splitupdate
@Atarii 's modification of splitupdate to manually enter the partitions you want to unpack
The desired FW you wan't to unpack
Unpack process:
Download Termux
Open termux and type
termux-setup-storage This will allow termux to access your /sdcard
pkg install perl (this will install perl which the update.app process is using) once asked press y and enter.
copy the downloaded files to root of your SDCARD *We keep this simple*
Once copied type: cd storage
perl splitupdate UPDATE.APP partitionyouwanttoextract if everything goes well you should be good to go and having the selected files in a folder called output where selected files should be stored.
The unpack tutorial is done. But wait! If you want to browse the files you need to do one more thing or two.
Download android image kitchen
https://play.google.com/store/apps/details?id=com.redlee90.imagekitchenforandroid
This will allow you to *unpack boot/recovery and convert system image (also vendor, product, cust and version)
*in order to unpack a boot or recovery file you'll need to remove all code using a hex edit file until you see ANDROID text. Else it won't unpack. You can unpack aosp images easily with this tool and modify what you want and repack to flash it on your device tested with twrp image for honor 8.
I would suggest to not unpack/repack boot using this tool since it'll cause problem.
There's a python script that works to unpack boot and recovery which can be found https://github.com/liudongmiao/bootimg/blob/master/bootimg.py
For this you'll need to install python.
pkg install python and hit y and enter
Now you just do as the splitupdate part where you extract the file.
Command to unpack
python bootimg.py --unpack-bootimg similar is for ramdisk but you replace bootimg with ramdisk.
To repack just simply python bootimg.py --repack-bootimg
Please note if you repack ramdisk the boot might not work (it's a while since I tested this) now this covers up how you unpack boot and extract update.app from phone.
Credits to @Atarii for telling how to unpack boot on phone and for his custom splipupdate script
Sent from my FRD-L09 using Tapatalk
Known Issues:
If you get Killed when trying to extract system.img this is most likely because the image size is too big, this isn't due to small space available i guess its due to all ram is being taken yet i can't tell.
i get permission issues. yeah this can happen sometimes try chmod +x or chmod 0777 with root, it might help.
when typing termux-setup-storage i get lots of errors and i'm on 8.0 EMUI
This is not your fault it's a bug caused by android i'd guess, or app isn't adopted completely for 8.0