[Guide] 4 ways to unpack/repack boot/recovery/logo without pc [IMG and BIN files] - Android General

In this guide I'm going to tell you about unpacking/repacking your boot(kernel),recovery.
I won't be responsible if u kill your phone and your mom beat the hell outta u.
Please do some research before trying this stuffs.
Method 1----
Put your boot or recovery.img in root/cache/here folder.
Get apktool mobile.
Open it and navigate to root folder.
Press hold on cache folder
Click on 'Get access permission(root)'
Now click on your img file
Select and click unpack all(mt6***) and bang...
U will see unpacked everything there.
And to repack click ramdisk folder and hit repack mt**** ...
Method 2---
Get unpack repack boot.img apk from google play
Put your boot.img in your SD card(default write disk)
Create a folder and name it unpack in SD CARD.
open that app and search for boot.img in SD CARD
Select it
Choose where to unpack(choose unpack folder)
Hit start and done
To repack,find out kernel base,page size in unpack folder.
Write them down in repack option
Select the zlimage(kernel) and select ramdisk
select the 'unpack' folder(where new img will b created)
click start and done
Method 3---(Advance Stuff)
Get Android Image Kitchen from play store
Open and click on ( ) sign
Select unpack and select boot.img or recovery.img
(U must should put the img in root of your default sd card and don't rename it)
U will see two folder like
ramdisk
and
kernel stuff
press hold on them and export them to modify
U can repack in same way by clicking repack option.
Method 4---
There is already a guide on xda about un/repack using terminal emulator.
U can check that out if u want to.
Facing problems?
comment below..

bump

Related

How to create an update.zip

Things you'll need :- 1. Auto sign tool2. update-binary for FIT3. update-script(If you don't know how to make, then use the one provided in the zip file. It can be used to copy files in the system folder to the /system/ of the phone)
DOWNLOAD LINK :- w w w . multiupload .c o m / K2QQNT3W2N
NOTE :- Make sure you make a backup of the files you are flashing. For backup you can refer to the docs and download "deodexed update.zip" for your respective ROM !!
Lets get started :-1. Make a new folder on the desktop and rename it as "TEST"2. Make this structure of folders in the TEST folder
------META-INF>>>>COM>>>>GOOGLE>>>>ANDROID
TEST-----
------SYSTEM3. Now add whatever you want to flash Eg. You want to flash /app/systemUI.apk and /framework/framework-res.apk
Sol. 1. Create two folders named "app" and "framework" within "TEST>>>SYSTEM" 2. Put your files in the respective folders.
4. Now put "update-script" and "update-binary" in "meta-inf>com>google>android". (Provided in REPLICA in zip file !! ENJOY )
5. Now select the "META-INF" and "SYSTEM" folder together and compress it and make a file named "update.zip".
6. Put the update.zip in the "Auto-Sign" folder and run the" Sign.bat". Press any key to continue..
7. Now you'll get a "signed_update.zip" in the same folder !!
8. Flash it via RECOVERY....
the file was deleted...

[GUIDE]How To Create A Custom Rom(noob friendly guide)

HERE IS A GUIDE FOR YOU ALL YOU CAN CREATE YOUR OWN ROM BY THIS SEXY METHOD.I AM NOT RESPONSIBLE FOR BRICKED DEVICES,DAMAGED DEVICES IF YOU BLAME ME I WILL LAUGH AT U.
Click to expand...
Click to collapse
Requirement to make a custom rom
*java jdk installed on your pc
*windows xp or 7.
*package given in download section
Who is this kitchen for ?
Those who are brand new to
creating custom ROMs and
want an easy place to start
learning
Those who just want to modify
shipped ROMs or someone
else's custom ROMs to their
liking
Those who are confused by all
those scripts and complex
commands required for
building and extracting
This is NOT a tool to
automatically turn you into a
full-fledged ROM developer.
ROM development normally
involves work from the ground
up and involves time , research
and patience .
Click to expand...
Click to collapse
PRESS THANKS IF YOU LIKE MY WORK
Kitchen setup guide
setting up android kitchen
1.download all the three link and unzip kitchen.rar and cywin package.
2.open cywin_package then open folder Now, you can see 3 icons, a read-
me,a setup, and a folder. Choose
the setup. Here You will choose
install from local directory. Next,
Navigate to the the folder of
extraction of cygwin and choose
the folder Cygwin_packages inside
the cygwin extraction folder. Wait
for some time. Then, You will come
across a list of file. Click the 2-
circle-arrows,untill, it displays
“install”
After the procedure is complete,
run the batch file cygwin.bat . Now, minimise
it and copy kitchen folder,
Keep it in some location where you have installed your cygwin package open home/ajay-Pc(in my case this is administrator name of my pc)kitchen
Now, open the batch file window
and type
cd C:\Kitchen
Wait for some time and then when
the location the changed, type
./menu
Click to expand...
Click to collapse
PRESS THANKS IF YOU LIKE MY WORK
GUIDE
now minimize the batch file and extract official rom and open pda there you will find system.img then extract it using magic iso or flash
the official stock rom using odin the take a nandroid backup u will get system.rfs.tar in your sd card extract it using magic iso then make a folder in called rom and open it. again create a folder called system and copy all data from system.rfs.tar which u have extracted(do drag and dropping).
Now copy meta-inf of any stock rom and copy and kernel to rom folder.
Now you will get two folder and one file in your rom folder zip the folder content and copy the file where you have installed cygwin/home/ajay/kitchen/original update folder.
now open command shell which you have minimized 1st create working folder then add root permission,deodex your rom.
and at last press 99 to build your rom..
note-if it ask you to change updater script to update script change it but dont forget to change it back to updater script.now you will get your rom in output folder copy it to your sd card flash it if error occur unzip the zip file and delete meta-inf and boot.img and again copy meta-inf of any rom and kernel to it and zip it..again flash the rom..
PRESS THANKS IF YOU LIKE MY WORK
Downloads
Downloads​
Link for cygwin click here :good:​link for kitchen click here :good:​link for magic iso click here :good:​
PRESS THANKS IF YOU LIKE MY WORK
CREDIT
credits
xda
dev of kitchen DSIXDA
me for boring guide
PRESS THANKS IF YOU LIKE MY WORK
gd 1 but think theirs many guide to teach how to cook rom from kitchen
amanmehta007 said:
gd 1 but think theirs many guide to teach how to cook rom from kitchen
Click to expand...
Click to collapse
many user asked for my help so i created this for them
gd
THE DEV OF KITCHEN IS DSIXDA U SHOULD MENTION HER NAME
bY
------------------------------------------------------------------------------SOMKLL---------------------------------------------------------------------------------------------------
Yes
yes i m Flasholic
I already have a guide for this.
Sent from my GT-S5360 using XDA

[TUTORIAL] Create Flashable Zip From CWM/TWRP Backup (MTK)

Hi,
today I'm going to show how to create a flashable
zip from a CWM/TWRP Backup. This is specially for MTK
device(you can try in other device,may work). Here is
my step by step tutorial...
Requirements:
* PC
* CWM/TWRP Backup
* Winrar
* Brain
you need META-INF,system & boot.img for making a
flashble zip rom, so you have to collect these from
your backup
*CWM method:
1. Copy the CWM backup from Phone to PC
2. Extract system.ext4.tar file with winrar, you
will get the system folder
3. Collect the boot.img from the backup
4. Now collect a META-INF folder from any custom
rom which is made for your device
5. Now select META-INF,system & boot.img, click
right button of your mouse and select 'Add to archive'
now select archive format 'ZIP' and press ok
6. Your flasable zip rom is ready. Just copy it
to your sd card and flash with CWM or TWRP
7. Done.
TWRP method:
1. Copy the TWRP backup from Phone to PC
2. Collect the file 'system.ext4.win' rename it
to 'system.ext4.tar'
3. Extract the system.ext4.tar. Now in case if your
TWRP backup is not in compression method, you will
directly get the system folder. Or if your TWRP
backup is in compression method, you will get a
file named 'system.ext4', don't worry just again
rename it to 'system.ext4.tar' and extract to get
the 'system' folder
4. Collect the 'boot.emmc.win' file and rename it
to boot.img, now ypu manage the boot.img also
5. Now collect a META-INF folder from any custom
rom which is made for your device
6. Now select META-INF,system & boot.img, click
right button of your mouse and select 'Add to archive'
now select archive format 'ZIP' and press ok
7. Your flasable zip rom is ready. Just copy it
to your sd card and flash with CWM or TWRP
8. Done.
akash_bd said:
Hi,
today I'm going to show how to create a flashable
zip from a CWM/TWRP Backup. This is specially for MTK
device(you can try in other device,may work). Here is
my step by step tutorial...
Requirements:
* PC
* CWM/TWRP Backup
* Winrar
* Brain
you need META-INF,system & boot.img for making a
flashble zip rom, so you have to collect these from
your backup
*CWM method:
1. Copy the CWM backup from Phone to PC
2. Extract system.ext4.tar file with winrar, you
will get the system folder
3. Collect the boot.img from the backup
4. Now collect a META-INF folder from any custom
rom which is made for your device
5. Now select META-INF,system & boot.img, click
right button of your mouse and select 'Add to archive'
now select archive format 'ZIP' and press ok
6. Your flasable zip rom is ready. Just copy it
to your sd card and flash with CWM or TWRP
7. Done.
TWRP method:
1. Copy the TWRP backup from Phone to PC
2. Collect the file 'system.ext4.win' rename it
to 'system.ext4.tar'
3. Extract the system.ext4.tar. Now in case if your
TWRP backup is not in compression method, you will
directly get the system folder. Or if your TWRP
backup is in compression method, you will get a
file named 'system.ext4', don't worry just again
rename it to 'system.ext4.tar' and extract to get
the 'system' folder
4. Collect the 'boot.emmc.win' file and rename it
to boot.img, now ypu manage the boot.img also
5. Now collect a META-INF folder from any custom
rom which is made for your device
6. Now select META-INF,system & boot.img, click
right button of your mouse and select 'Add to archive'
now select archive format 'ZIP' and press ok
7. Your flasable zip rom is ready. Just copy it
to your sd card and flash with CWM or TWRP
8. Done.
Click to expand...
Click to collapse
where is thanks button
This is awesome. Thanks for the easy tutorial. What about adding the cache and data segments as well? How would we go about doing that with the twrp backup? Thanks!
What if my TWRP backup folder got 2 system.ext4.win files?
system.ext4.win000
system.ext4.win001
What should i do to combine these 2 files into single .tar ?
You are 1 bright mutha effa
Dude,
You are the brightest Mutha Effa Ever. Thanks for sharing that; Good Thinking dude.
CYGWIN Unpacking TWRP Backup Files
limcs79 said:
What if my TWRP backup folder got 2 system.ext4.win files?
system.ext4.win000
system.ext4.win001
What should i do to combine these 2 files into single .tar ?
Click to expand...
Click to collapse
This is for Latest TWRP used with safestrap (my phone is AT&T Note 3)
rename them both seperatly
system.ext4.win000.tar
system.ext4.win001.tar
winrar and 7-zip failed for me
I used CYGWIN
CYGWIN Unpacking TWRP Backup Files
akash_bd said:
Hi,
today I'm going to show how to create a flashable
zip from a CWM/TWRP Backup. This is specially for MTK
device(you can try in other device,may work). Here is
my step by step tutorial...
Requirements:
* PC
* CWM/TWRP Backup
* Winrar
* Brain
you need META-INF,system & boot.img for making a
flashble zip rom, so you have to collect these from
your backup
*CWM method:
1. Copy the CWM backup from Phone to PC
2. Extract system.ext4.tar file with winrar, you
will get the system folder
3. Collect the boot.img from the backup
4. Now collect a META-INF folder from any custom
rom which is made for your device
5. Now select META-INF,system & boot.img, click
right button of your mouse and select 'Add to archive'
now select archive format 'ZIP' and press ok
6. Your flasable zip rom is ready. Just copy it
to your sd card and flash with CWM or TWRP
7. Done.
TWRP method:
1. Copy the TWRP backup from Phone to PC
2. Collect the file 'system.ext4.win' rename it
to 'system.ext4.tar'
3. Extract the system.ext4.tar. Now in case if your
TWRP backup is not in compression method, you will
directly get the system folder. Or if your TWRP
backup is in compression method, you will get a
file named 'system.ext4', don't worry just again
rename it to 'system.ext4.tar' and extract to get
the 'system' folder
4. Collect the 'boot.emmc.win' file and rename it
to boot.img, now ypu manage the boot.img also
5. Now collect a META-INF folder from any custom
rom which is made for your device
6. Now select META-INF,system & boot.img, click
right button of your mouse and select 'Add to archive'
now select archive format 'ZIP' and press ok
7. Your flasable zip rom is ready. Just copy it
to your sd card and flash with CWM or TWRP
8. Done.
Click to expand...
Click to collapse
Thanks for your thread
Just 1 question: i have see multiple flashable zip on XDA, and they have a diffrents compression level, so how decide it?
Thank you for such a simple and amazing tutorial
Great tutorial
[my phone iz better than urz]
I want to make KK Stock ROM for iBall Slide 3G 7271 HD70
Hi,
Regarding the 4th step, Their are no ROM available for this device so I don't have the files.
I have the block MAP for the device,
So could u plz guide me to make the meta files?
"4. Now collect a META-INF folder from any custom rom which is made for your device"
babai93 said:
Hi,
Regarding the 4th step, Their are no ROM available for this device so I don't have the files.
I have the block MAP for the device,
So could u plz guide me to make the meta files?
"4. Now collect a META-INF folder from any custom rom which is made for your device"
Click to expand...
Click to collapse
What version is your phone
These are the files i have.. Is UBOOT.img is necessary?
boot.img
cache.ext4
data.ext4
nandroid.md5
recovery.txt
system.ext4
uboot.img
Click to expand...
Click to collapse
akash_bd said:
Hi,
today I'm going to show how to create a flashable
zip from a CWM/TWRP Backup. This is specially for MTK
device(you can try in other device,may work). Here is
my step by step tutorial...
Requirements:
* PC
* CWM/TWRP Backup
* Winrar
* Brain
you need META-INF,system & boot.img for making a
flashble zip rom, so you have to collect these from
your backup
*CWM method:
1. Copy the CWM backup from Phone to PC
2. Extract system.ext4.tar file with winrar, you
will get the system folder
3. Collect the boot.img from the backup
4. Now collect a META-INF folder from any custom
rom which is made for your device
5. Now select META-INF,system & boot.img, click
right button of your mouse and select 'Add to archive'
now select archive format 'ZIP' and press ok
6. Your flasable zip rom is ready. Just copy it
to your sd card and flash with CWM or TWRP
7. Done.
TWRP method:
1. Copy the TWRP backup from Phone to PC
2. Collect the file 'system.ext4.win' rename it
to 'system.ext4.tar'
3. Extract the system.ext4.tar. Now in case if your
TWRP backup is not in compression method, you will
directly get the system folder. Or if your TWRP
backup is in compression method, you will get a
file named 'system.ext4', don't worry just again
rename it to 'system.ext4.tar' and extract to get
the 'system' folder
4. Collect the 'boot.emmc.win' file and rename it
to boot.img, now ypu manage the boot.img also
5. Now collect a META-INF folder from any custom
rom which is made for your device
6. Now select META-INF,system & boot.img, click
right button of your mouse and select 'Add to archive'
now select archive format 'ZIP' and press ok
7. Your flasable zip rom is ready. Just copy it
to your sd card and flash with CWM or TWRP
8. Done.
Click to expand...
Click to collapse
I try to follow the tutorial you created but when the flash still fails , a description that appeared md5 not found , and whether the Meta - Inf / updater - script that must be made because I was dizzy with it
irwandwiyanto said:
I try to follow the tutorial you created but when the flash still fails , a description that appeared md5 not found , and whether the Meta - Inf / updater - script that must be made because I was dizzy with it
Click to expand...
Click to collapse
You need to use the Meta folder from a working rom installer for your phone, you then select the Meta folder, system folder (hold down the ctlr key to select each folder, then right clink the selected file and zip.
carl1961 said:
You need to use the Meta folder from a working rom installer for your phone, you then select the Meta folder, system folder (hold down the ctlr key to select each folder, then right clink the selected file and zip.
Click to expand...
Click to collapse
how do I get the Meta folder from the backup of my ROM ?
irwandwiyanto said:
how do I get the Meta folder from the backup of my ROM ?
Click to expand...
Click to collapse
sorry I meant META-INF folder, you use the META-INF from a working rom install for your phone. Look under your phones thread here on XDA and locate a rom and use it to go with your backup files so you can make a install of your backup
Question onf TWRP Step 3
akash_bd said:
Hi,
today I'm going to show how to create a flashable
zip from a CWM/TWRP Backup. This is specially for MTK
device(you can try in other device,may work). Here is
my step by step tutorial...
Requirements:
* PC
* CWM/TWRP Backup
* Winrar
* Brain
you need META-INF,system & boot.img for making a
flashble zip rom, so you have to collect these from
your backup
*CWM method:
1. Copy the CWM backup from Phone to PC
2. Extract system.ext4.tar file with winrar, you
will get the system folder
3. Collect the boot.img from the backup
4. Now collect a META-INF folder from any custom
rom which is made for your device
5. Now select META-INF,system & boot.img, click
right button of your mouse and select 'Add to archive'
now select archive format 'ZIP' and press ok
6. Your flasable zip rom is ready. Just copy it
to your sd card and flash with CWM or TWRP
7. Done.
TWRP method:
1. Copy the TWRP backup from Phone to PC
2. Collect the file 'system.ext4.win' rename it
to 'system.ext4.tar'
3. Extract the system.ext4.tar. Now in case if your
TWRP backup is not in compression method, you will
directly get the system folder. Or if your TWRP
backup is in compression method, you will get a
file named 'system.ext4', don't worry just again
rename it to 'system.ext4.tar' and extract to get
the 'system' folder
4. Collect the 'boot.emmc.win' file and rename it
to boot.img, now ypu manage the boot.img also
5. Now collect a META-INF folder from any custom
rom which is made for your device
6. Now select META-INF,system & boot.img, click
right button of your mouse and select 'Add to archive'
now select archive format 'ZIP' and press ok
7. Your flasable zip rom is ready. Just copy it
to your sd card and flash with CWM or TWRP
8. Done.
Click to expand...
Click to collapse
QUESTIONS
---------------------------
1. On STEP 3 I did the following:
Extract the system.ext4.tar.
If your TWRP backup is in compression method, you will get a file named 'system.ext4',
Rename it to 'system.ext4.tar'
Next part, " Extract to get the 'system' folder", does not work. What do I do here?
2. Doing #1 in Linux or does this need to be done win Windows?
3. META-INF - My HTC ONE X+ (code name evitare UL) does not have any custom ROMs I can find. What other sources of META-INF are there?
Please notify me at [email protected] when you post answers. Thanks
Click to expand...
Click to collapse
[email protected] said:
QUESTIONS
---------------------------
1. On STEP 3 I did the following:
Extract the system.ext4.tar.
If your TWRP backup is in compression method, you will get a file named 'system.ext4',
Rename it to 'system.ext4.tar'
Next part, " Extract to get the 'system' folder", does not work. What do I do here?
2. Doing #1 in Linux or does this need to be done win Windows?
3. META-INF - My HTC ONE X+ (code name evitare UL) does not have any custom ROMs I can find. What other sources of META-INF are there?
Please notify me at [email protected] when you post answers. Thanks
Click to expand...
Click to collapse
Rom List
You can get your META-INF from one of them
Extract to get the system folder:
CYGWIN Unpacking TWRP Backup Files
Download CYGWIN http://cygwin.com/
rename:
data.ext4.win to data.ext4.win.tar
system.ext4.win000 system.ext4.win000.tar
system.ext4.win001 to system.ext4.win001.tar
Make a directory in your CYGWIN Home [Username]folder
Example: untar
Use Windows File Explorer go to your CYGWING Home
C:\cygwin\home\carl (your user name will be here)
make any folder you choose
Example:
C:\cygwin\home\carl\untar
and C:\cygwin\home\carl\untar\data ( for data files)
put your renamed data files in a folder named data
C:\cygwin\home\carl\untar\data (this is to keep files separate when unpacked)
While in Explorer put your renamed system files in untar folder
start CYGWIN ( Use the Cygwin Terminal and then you can copy and paste these commands)
cd to untar folder
example:
cd\untar
do these commands one at a time, it will extract to a folder named system
tar -xvf system.ext4.win000.tar
tar -xvf system.ext4.win001.tar
cd to data
do this command
tar -xvf data.ext4.win.tar
tar -xvf data.ext4.win000.tar
tar -xvf data.ext4.win001.tar
all your data files will extract
Click to expand...
Click to collapse
carl1961 said:
What version is your phone
Click to expand...
Click to collapse
This is iBall Slide 7271 HD70 with preloaded KitKat 4.4.2
I lost my nandroid backup of stock network carrier's ROM so my friend made backup using same TWRP recovery and now I want to build flashable zip. He excluded only data and cache.
There are some things that confuses me.
This device (Alcatel OT M' Pop) has custpack.ext4.win. Do I have to include it and how?
This is all files from backup:
{
"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"
}
Also I used Cygwin Terminal to unpack system.ext4.win because 7Zip and WinRar gave me errors during unpacking process but interesting thing is that when I open archive with 7zip I can see META-INF folder Can I use that META and how the hell WinRar doesn't show it? Or is it safer to include META from another ROM for this device?

[Guide] How to unpack/repack diffrent img files easily without pc.

Hey, today in this post I've discussed on the topic
"How to unpack/repack img without PC or android tools (android tool is a little complicated and sometimes doesn't works)."
So let's get started
First of all download & install 'android image studio'
1: open it and click on repack/unpack
2: select the port ROMs boot or recovery img.
3: we get two folders
a.) Split_img --->> contains kernal zimage.
b.) Ramdisk----> contains init.rc recovery. Fstab etc..
4: to delete any file long press on it and click delete
5: to import any file click on import button in right panel & select the file
6: after making desired changes. Repack the img using repack button
7: a file will be created with the name image-new.img
8: export this file using export button and select the desired location.
Congratulations you have just ported an img without PC easily.
Link for the tool: https://play.google.com/store/apps/details?id=com.redlee90.imagekitchenforandroid
Link to my video toitorial for better understanding on this:
If you liked it just PRESS the THANKS button
I need more help, trying to open a .IMG boot file for Samsung s5, it gives the "No Image Supplied" error
Screenshot
Using AIS. Trying to port custom recovery but first thing I've tried is to just unpack and repack stock recovery. When repacking output of AIS is new IMG and new ramdisk. New IMG is smaller than original but from what I've read this should be okay. Flashed new IMG and attempted reboot recovery and all I got was black screen. Flashed stock recovery and it booted recovery fine. Not sure what I'm doing wrong. I used AIS to open the new image it created and then kept doing file/folder comparisons on the output. I narrowed down the difference being recovery.img-ramdisk.cpio. But when I unpack with cpio the contents of the archive are the same. Additionally, I repacked the contents with cpio but it still comes up as not matching the original recovery.img-ramdisk.cpio. My device can and does make replacement recovery images using applypatch with bonus files and boot img. Any help greatly appreciated!

without pc unpack stock firmware

install
AIK.apk
APPU_1_67suW6vBKIrXwAKkiICoDw
ZArchiver
https://play.google.com/store/apps/details?id=ru.zdevs.zarchiver
 Explorer
Start
sample: E700FXXS1BQC1-etc. zip
tar/rar
install
Open file with zarchiver md5.tar open wiht zarchiver long press system.img.ext4 copy
move
same shape boot.img and recovery.img
open AIK app press the plus botons
unpack/mount press run your system.img.ext4
Wait until the file is extracted
After it will be a file hath sent your sdcard
in the directory
system.img.ext4.raw
Change extension of sdcarta file to tar open ZA file manager has now extracted the file the files will now be sorted
it's that simple
thanks bro
This uses simg2img for converting.
We can also use Image Factory app for unpacking boot, recovery imgs. Sources are here, here, here.
For rooted device and PC, we can use https://forum.xda-developers.com/t/...kernel-ramdisk-win-android-linux-mac.2073775/

Categories

Resources