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

Search This thread

akash_bd

New member
Dec 17, 2013
2
143
Narayanganj
facebook.com
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.
 

droidmahadi

Member
Mar 4, 2014
21
21
29
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.

where is thanks button
 

lordscipio

Senior Member
Dec 14, 2010
75
14
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!
 

limcs79

New member
Mar 21, 2014
3
0
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 ?
 

carl1961

Senior Member
Dec 5, 2010
7,521
6,201
Tickfaw
CYGWIN Unpacking TWRP Backup Files

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 ?

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
 
Last edited:

Rom

Senior Member
Jul 1, 2013
2,574
1,064
Lyon
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.

Thanks for your thread :D
Just 1 question: i have see multiple flashable zip on XDA, and they have a diffrents compression level, so how decide it?
 

babai93

Senior Member
Feb 5, 2010
195
125
41
Sambalpur
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"
 

carl1961

Senior Member
Dec 5, 2010
7,521
6,201
Tickfaw
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"

What version is your phone
 

irwandwiyanto

New member
Oct 10, 2014
2
0
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.

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
 

carl1961

Senior Member
Dec 5, 2010
7,521
6,201
Tickfaw
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

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.
 
Last edited:

carl1961

Senior Member
Dec 5, 2010
7,521
6,201
Tickfaw
how do I get the Meta folder from the backup of my ROM ?

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
 
Last edited:
Mar 16, 2014
25
4
Florida
LG V60 ThinQ
Question onf TWRP Step 3

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.

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 rick2210@gmail.com when you post answers. Thanks
 

carl1961

Senior Member
Dec 5, 2010
7,521
6,201
Tickfaw
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 rick2210@gmail.com when you post answers. Thanks

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
 
Last edited:

Nidzo80

Senior Member
Sep 3, 2011
365
86
Beograd
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:
mpop.jpg

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 :confused: 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?
system.ext4.win.jpg
 
  • Like
Reactions: pirracas77

Top Liked Posts

  • There are no posts matching your filters.
  • 143
    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.
    15
    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.

    where is thanks button
    6
    CYGWIN Unpacking TWRP Backup Files

    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 ?

    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
    5
    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"
    2
    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 rick2210@gmail.com when you post answers. Thanks

    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