[Guide] Unpack-Repack Boot, Recovery .img without Kitchen - Other Tools & General Discussion

I have searched a lot, but couldn't find any post like this. So I thought I would post it here. This is NOT purely my work, and I do not take credit for it as such .
NO NEED ANDROID KITCHEN FOR UNPACK REPACK IMG's
This is the easiest way to unpack .img files with extracted ramdisk. So, Lets Start
At first Download the tool from HERE
For MTK (chineese) phones - use MTK_unpack.bat (MTK_pack.bat)
For android standard phones - use STD_unpack.bat (STD_pack.bat)
Here I am showing you about MTK (chineese) phones .img unpack-repack....
Instructions
1. Extract the file in any where you want
2. You will see this files
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3. Then Copy your .img file in this folder like this
Remember the file should be named as boot.img or recovery.img
4. Just Drag and Drop .img files into unpack.bat for unpacking. Then you will see this.
5. A folder will be created there. I unpacked boot.img so here is the all file you want
6. To repack, again just drag and drop the folder into pack.bat. you will see this
7. New .img file created. Rename it as you want. So All done. Enjoy.
[ NOTE: It's Only for Windows]
Thanks to
Michfood for making this tool
DON'T FORGET TO HIT THANKS IF I HELPED YOU
NO NEED TO DONATE ME, JUST SAY THANKS TO ENCOURAGE ME

Thanks for this awesome guide
Thanks bro for this awesome guide and Tool

I will so much try...... but I don't success bcoz ramdisk folder empty.....
I will so much try...... but I don't success bcoz ramdisk folder empty.....

try with patience
A.S.Noman Khan said:
I will so much try...... but I don't success bcoz ramdisk folder empty.....
Click to expand...
Click to collapse
do it carefully bro.. this tool extract ramdisk nicely bro

problem
Bro, when I am going to repack my boot.img, its not repacking correctly. Help me out. Please.

golam1962 said:
Bro, when I am going to repack my boot.img, its not repacking correctly. Help me out. Please.
Click to expand...
Click to collapse
did u deleted something? Make sure that your boot.img has all the files what needed.

check
I will just check. By the way, thanks again for this.

golam1962 said:
I will just check. By the way, thanks again for this.
Click to expand...
Click to collapse
Ok. I will wait. And don't thank me. Thank the main dev MICHFOOD who created this tool

Succeeded
aalakib07 said:
Ok. I will wait. And don't thank me. Thank the main dev MICHFOOD who created this tool
Click to expand...
Click to collapse
it worked bro thanks

My device is LG GX F310, original boot.img 24MB, https://docs.google.com/file/d/0Bx0NlR3rjLYeUS14YmxESGc3bWc/edit?usp=docslist_api after unpacked and repacked new boot.img only has 11MB. And can't boot into system. Could you help me?

Work with MT6752?

this tool isn't working under Windows 10, that unpack all files except "rmdisk" folder.
the rmdisk is empty...

I tried to use this tool to unpack the lienageOS recovery ROM from https://wiki.lineageos.org/devices/s5neolte/install
When I change the name and drag it to unpack it, it doesn't work and I get these error messages.
'chcp' is not recognized as an internal or external command,operable program o - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
Am I doing something obvious wrong?

I tried it for my stock boot.img(Mi 11 lite 5g NE-Snapdragon 778G) and the unpacked items didn't satisfy me. Looks like it isn't for snapdragon chipset. BTW I'm looking for similar tool to extract kernel from boot.img of this device.Thnaks though for uploading the tool.

Related

[GUIDE] Deodexing your custom rom the easy way

Hello Guys,
@android.zealot.fervor wanted me to post this guide so why not
There is already a guide by Panda00 but that one is a bit outdated...
Requirments:
- A Windows PC
- Zip opener (7zip,winrar,winzip)
- Dsixda's kitchen and cygwin
- sgs2ext4.jar
- linux reader
- A Brain and hands
So let's begin:
Step 1)
- Download the stock firmware from sammobile samsung-updates search for yourself and open the file with 7zip inside the file you will find a md5 file open that with 7zip it should give you a error ignore that! Take out the system.img and open up sgs2ext4.jar and drop the system.img into there now after some time the system.img.ext4 will be placed onto your desktop!
Step 2)
- Open up Linux Reader and mount the system.img.ext4 drive open it up and take out only the app and framework folder save them to your desktop!
Step 3)
- Now make a WORKING_DEODEX folder name it exact as i say you and make inside that folder a system folder! drop the app&framework folder in the system folder and copy WORKING_DEODEX to C:/kitchen or where ever you have kitchen on your PC!
Step 4)
- Open up kitchen with cygwin by typing in the following:
cd C:/kitchen and hit Enter! (I take the C drive as example but your drive letter could be diffrent!!!)
sh menu Hit Enter again!
Now it should load up kitchen if not do not ask me!
go in kitchen to advanced options by typing in 0 and after that go to 11 now select the correct api version it should be 17!
Now type in b for deodexing both folders! let kitchen do his work here this can take up to 20min!!!
Step 5)
When kitchen is done go back to your C:/kitchen drive and take out the system folder of the WORKING_DEODEX and drop it onto your desktop!
What you need to do now is download the zip file from the attachments and drop the system folder in it!
Step 6)
Copy the zip to your device and flash enjoy your deodexed phone!
Credits:
Panda00 for his zip file
CoolDevelopment for his CWM
Some things you need to know:
1) secemail_j will not deodex!!!
2) you must be on the firmware you are deodexing!
3) Install custom recovery for flashing
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
android.zealot.fervor said:
Click to expand...
Click to collapse
Thanks man if you want more guide's etc just ask
safariking said:
Thanks man if you want more guide's etc just ask
Click to expand...
Click to collapse
Thanks a lot. That's so generous of you. Well i just want to ask right now....in your guide i couldn't found the ZipAlligning step.Is zipalligning necessay after deodexing. Thanks
android.zealot.fervor said:
Thanks a lot. That's so generous of you. Well i just want to ask right now....in your guide i couldn't found the ZipAlligning step.Is zipalligning necessay after deodexing. Thanks
Click to expand...
Click to collapse
not needed to zipalign btw: new link for deodex xxbml1
safariking said:
not needed to zipalign btw: new link for deodex xxbml1
Click to expand...
Click to collapse
Thanks.....well i already fixed the update-script and it worked.
Thanks once again for your efforts.

Change Background Image Of Your CWM Recovery - THE EASY WAY

Only For Windows Operating System .. !!!
So It is a post for beginners who want to just look inside the recovery.img and do some modification like changing the default background image to a custom image. So without wasting any time here We Go....
Requirements :
Recovery.img (Most Important)
Boot/Recovery repack utils for WINDOWS by @michfood
Any Image editor Like Photoshop Or GIMP .
Click to expand...
Click to collapse
Procedure :
Just place the recovery.img in the same folder where You extracted The boot/recovery repack tool.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Drag and drop recovery.img on MTK_Unpack and it will split the recovery into its parts.
Now browser into recovery > rmdisk > res > images open the images edit them or replace them with your desirable .png's.
Now again drag the recovery folder and drop on MTK_pack after Modification.
Click to expand...
Click to collapse
Voila .!!!!!!!!
You are Done with changing the background of your custom recovery.
*/ Just Flash This Recovery In FastBoot.
PLEASE PRESS THANKS INSTEAD OF TYPING :fingers-crossed: THANK YOU FOR UNDERSTANDING
Nice man - good work
it's good for me as a nobie.
Thanks my freind.
DON AMIGO said:
Nice man - good work
it's good for me as a nobie.
Thanks my freind.
Click to expand...
Click to collapse
ThanX Share It so That Other Olso LeaRn to Do It... (
navneetasnavi said:
ThanX Share It so That Other Olso LeaRn to Do It... (
Click to expand...
Click to collapse
I dont know why ts not working for me. After re-packing, it gives a file "new-image.img" and not "recovery.img". And also reccovery folder gets a "new-image.img" automatically. If it is supposed to work like this. Even this I tried to flash it on my mobile (MI3), it loses CWM whole and goes directly into fastboot. Thanks it didnt brick my mobile but something is definitely odd when repacking.
pkb_always4u said:
I dont know why ts not working for me. After re-packing, it gives a file "new-image.img" and not "recovery.img". And also reccovery folder gets a "new-image.img" automatically. If it is supposed to work like this. Even this I tried to flash it on my mobile (MI3), it loses CWM whole and goes directly into fastboot. Thanks it didnt brick my mobile but something is definitely odd when repacking.
Click to expand...
Click to collapse
bro see as per the repacking script it will create a new image u need to rename it to to recovery.img and more over the image that u are using in it that is to be edited in Gimp ... other i haven't used personally... and try to flash it using flashify.
post ur results too.
navneetasnavi said:
bro see as per the repacking script it will create a new image u need to rename it to to recovery.img and more over the image that u are using in it that is to be edited in Gimp ... other i haven't used personally... and try to flash it using flashify.
post ur results too.
Click to expand...
Click to collapse
Sure, I renamed the "new-image.img" as recovery.img and put it back into old Cwm.zip And got the fastboot. Lost recovery completely two times. Thanks for reply though.
pkb_always4u said:
Sure, I renamed the "new-image.img" as recovery.img and put it back into old Cwm.zip And got the fastboot. Lost recovery completely two times. Thanks for reply though.
Click to expand...
Click to collapse
i dont know where you aredoing the things wrong b'coz it has always worked for me. just PM me.. :/
Your post really helped man!
technochatter said:
Your post really helped man!
Click to expand...
Click to collapse
Just press thanks its easy than to type it in @technochatter
Sent from my AO5510 using XDA Premium 4 mobile app
Sure

Delete

Delete
Thank you very much for sharing
Thanks for sharing. But I can not see any system img files via 7zip without previously repaired. May I use repaired system img files?
You must be doing something wrong. I've tried WWE and Orange PL and both extract without repairing.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks for sharing.
thank u!
Thanx mate later that day ill extraxt System dump an share it with you guys.
Thanks for the DiskInternals thingy
Since i never needed to extract a System.img I never looked for a method but I will remember this. Seems fairly straightforward.
And thanks for the creds.
I will try this one.
Btw, i made a backup with twrp. Ia there any way to get the backed up system.emmc.win file extracted? Renaming it to .tar doesn't work.
What I try to achive is an extracted ROM so I can deodex the apks
DroidShift79 said:
I will try this one.
Btw, i made a backup with twrp. Ia there any way to get the backed up system.emmc.win file extracted? Renaming it to .tar doesn't work.
What I try to achive is an extracted ROM so I can deodex the apks
Click to expand...
Click to collapse
add .tar to the end of each image and under Linux or cygwin use tar -xvf xxxx.tar
Hmm... Hoped there's anything for win 8.1
...setting up cygwin
Edit: @LeeDroid
Nothing happens when doing the command in the cygwin window...
Worked like a charm
I did have to edit the ConvertHima.bat and remove the line set wf=%cd%\ for it to work
but everything else was spot on .. thanks!!
Anyone need the 0PJAIMG_HIMA_UL_L50_SENSE70_ATT_NA_Gen_Unlock_1.32.617.6_R2_Radio_01.01_U11440221_59.04.50303G_2_F_release_426167_signed.zip
System.img or Dump
Worked great I think. I did get an error, and I received this error 4 times for sparse.img, 2,4,6,8. Here is the error: - "1 [main] sparse2img 7912 find_fast_cwd:". It also says "WARNING Couldn't compute FAST_CWD pointer. Please report this problem to the public mailing list [email protected]". I wrote cygwin, and got a reply from a Marco stating, "Dear Hal, Same answer as given last month to another guy". Then gave me this link https://cygwin.com/ml/cygwin/2015-05/msg00318.html. Followed by, "Please report the solution to whom provided the ConvertHima.bat". The answer in the link basically says a utility called rsync is being used, and the person who provided it is bundling it with an old version of the cygwin kernel. I did however get a new system_hima.img, and I started ConvertHima.bat. After completion I have what appears to be a complete system image. It's 3.53Gb in size, and has the folders - app, bin customize, etc, fonts, framework, lib, lib64, lost+found, media, priv-app, tts, usr, vendor, xbin, and has the file build.prop. It appears to have all the Deodexed APK's in app and priv-app. This is from the T-Mobile RUU. I'm using Window 8.1.
I'm trying to create a system dump (1.40.708.9)but was stuck at step 2. Where can I download my ROM.zip?
xunus said:
I'm trying to create a system dump (1.40.708.9)but was stuck at step 2. Where can I download my ROM.zip?
Click to expand...
Click to collapse
i think you misunderstand what this is for
flex360 said:
i think you misunderstand what this is for
Click to expand...
Click to collapse
That could be true. Seems like this is to extract M9's rom from an RUU and not from the phone itself.
Mr_Bartek said:
You must be doing something wrong. I've tried WWE and Orange PL and both extract without repairing.
View attachment 3226483
Click to expand...
Click to collapse
Can you send me the file system.img_01 ?
htsang08dqt said:
Can you send me the file system.img_01 ?
Click to expand...
Click to collapse
https://forum.xda-developers.com/one-a9/development/decrypt-ruu-ruu-decryption-script-htc-t3282562
Is there a Linux version of the sparse2img.exe? I am in need of this because I don't have the system.img but I have the system.img_xx chunks from the RUU ZIP.

[GUIDE][WIN]How to Unpack and Repack .CPB Firmware/Stock Rom of coolpad/other OEM's

**************************************************
Please subscribe to my channel and like this video
Stay tuned for more upcoming videos
**************************************************
For any queries comment below
Video requests are appreciated
**************************************************
How to Unpack and Repack .CPB Firmware/Stock Rom of coolpad/other OEM's
WINDOWS
UNPACKING
Procedure:
1) Firstly unzip your stock .cpb firmware which can be flashed with YGDP tool
(Here i am taking example of coolpad dazen 1 (4.4.4) firmware..it can also be used for extracting other OEM's .cpb firmware. I've tested it on coolpad Fancy lollipop firmware its not working ..corectly)
2) After unpacking open CPB_Unpacker.exe
3) Copy cpb_unpacker.exe in same folder of firmware
4) Copy **********.cpb filename and paste in first input field of cpb_unacker
5) After that click the bottom left (down) button..you will se extaction of system.img,boot.img.........etc in the same folder
REPACKING
1) After you have done changes you wanna repack your firmware
2) Open CPB_Unpacker.exe
3) After that click the bottom right (up) button..you will se repacking of system.img,boot.img......etc into CPB file in the same folder
4) Thats it
Please watch the video to understand it clearly
Credits:-
@greendream for this tool
@Innfinite4evr for writing this guide:good:
​
Innfinite4evr said:
......
​
Click to expand...
Click to collapse
Why would you put a password on the zip file that is not the one mentioned in the youtube video? :S
Anyways, here is the file http://www.leeco.re/topic/1985-tool-pack-unpack-stok-cpb-files/
tassos_chry said:
Why would you put a password on the zip file that is not the one mentioned in the youtube video? :S
Anyways, here is the file http://www.leeco.re/topic/1985-tool-pack-unpack-stok-cpb-files/
Click to expand...
Click to collapse
I didnt get it..
Btw password is innfinite4evr
Innfinite4evr said:
I didnt get it..
Btw password is innfinite4evr
Click to expand...
Click to collapse
On the description of your YouTube video it says password is: Innfinite4evr NOT innfinite4evr
tassos_chry said:
On the description of your YouTube video it says password is: Innfinite4evr NOT innfinite4evr
Click to expand...
Click to collapse
Ooh...thnx for that...probably a typo......will correct it soon..if u have some time....just comment the right password in comments of that video..
Plz provide this tool, Thanx
China user
Thanks for the tool!
Now I need a flasher that understands *.mbn unpacked files to unbrick a Vodafone 890N (Yulong Coolpad 3601U). It is detected as Qualcomm HS-USB QDLoader 9008, no fastboot, no recovery, nothing, only that when connecting to the USB port (battery off).
Could anybody give me a hand?
Edit: I have just realised that YGDP tool unpacks the .cpb firmware too as long as you install it as "developer", not "assembly". Continue in need of help anyway to unbrick the phone.
I am able to extract the CPB File, but when i try to pack it again, nothing happens. Or i can not read the error, which language is this?
h**p://i612.photobucket.com/albums/tt209/oldtime/Coolpad/CPB%20Editor%20Fehler%20nichts%20passiert.jpg
I am also not able to copy and paste the Messages to put them in a translator. Is here someone who can translate the CPB Editor in english or german? When i extract the CPB File i got a Message.
h**p://i612.photobucket.com/albums/tt209/oldtime/Coolpad/CPB%20Editor%20Fehler.jpg
Can someone say what that mean in english or german? I can not say if this is a just a information or an error.
When I try to unpack Rom I got this message and no file was extracted
I can not read it. Pls help.
Thanks.
I have the same problem, does anyone have a solution?
Many year have elapsed... Had anyone found out what .... language this piece of software uses?
vp1117 said:
Many year have elapsed... Had anyone found out what .... language this piece of software uses?
Click to expand...
Click to collapse
Hi all!
No ideas?
Nobody ever uses ROMs in CPB format and nobody uses this ungly piece of a software CPB Editor? What f....g language is it?
Anybody knows hot to translate this s...t into English?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

How to port boot.img For SPD SC9832a Device(MMX Q402+)

IN THIS GUIDE WE WILL LEARN HOW TO PORT BOOT IMG FOR SC9832A DEVICES
CAUTIONS-
Read instructions carefully before proceeding.
I am not responsible for any damage to your device,
Use at your own Risk
FOR OTHERS GUIDES LIKE
Unlocking Bootloader [url]https://forum.xda-developers.com/android/general/bootloader-unlock-root-twrp-mmx-q402-t3918122[/URL]
ALREADY PATCHED BOOT FOR MMX Q402+
Patched Boot.img [url]https://mega.nz/#!PoYGGSAL!-V-QN6P7WptGPtZT3VTBXgxN1H2U2C9tmprQ-66gs-M[/URL]
AND CUSTOM RECOVERY
Credits
topjohanwu For magisk
osm0sis For his AIK tool
shankar Its me
sorry if, i forget someone
STARTING PORT
Porting Boot Image
Download Android Image Kitchen for Windows
For Other visit here [url]https://forum.xda-developers.com/showthread.php?t=2073775[/URL]
Extract it in Desktop and Now put your boot.img inside that folder and run unpacking.exe (simply double click it)
This will extract your boot image
for Example i use linux version of AIK in "LINUX MINT" but process is same as windows .
Now run Unpackimg.sh
you can see in terminal it extract boot.img
there is two folder inside AIK ramdisk and split_img
Just delete ramdisk folder and go inside split_img folder
and copy boot.img.dtb and boot.img-zImage files to AIK main directoey or somewhere else
Now replace your stock boot.img with Port ROM boot.img in AIK tool folder and again run unpackimg.sh. this will create same two folders ramdisk and split_img . in AIK directory
Now replace those two files you copied before from stock boot.img split folder "boot.img.dtb and boot.img-zImage" to new port split_image folder.
Run repacking
This is your new Boot image , rename it to boot.img
Also try replacing lib folder from stock to port ramdisk
Use Winmerge or Meld for comparing .rc files from stock to port ramdisk and add those missing line in port .rc files. like comparing fstab etc
Reserved for more porting tutorials
My first Ported ROM for MICROMAX Q402+
This is port ROM of Ever cross M50 Star
Screen shots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
camera
Reserved
Fire _Phoenix said:
My first Ported ROM for MICROMAX Q402+
This is port ROM of Ever cross M50 Star
Screen shots
camera
Click to expand...
Click to collapse
Nice sir thanks
I support you
How to down load InFocus a2
Given link is not working
Pleas provide other link
Fire _Phoenix said:
Reserved
Click to expand...
Click to collapse
Pleas provide InFocus a2 rom's link given link is not working 404 error occures
Priyanshubiswas said:
How to down load InFocus a2
Given link is not working
Pleas provide other link
Click to expand...
Click to collapse
i will upload rom soon
Nice

Categories

Resources