Create Flashable Zip From CWM/TWRP Backup


Create Flashable Zip From CWM/TWRP Backup
Guides
*****
iyke quame

Android users who want to have a little adventure use many mods and frequently change ROMs to make their devices brand new everyday. But you might never know when your device might get into a boot loop after installing a Mod or in the worst case it might get bricked and you need to restore the device. So it’s always advisable to take Nandroid backup of your device whenever possible, so that you can restore your device whenever you face a little ill fate. If you don’t know how to take a nandroid backup, follow our guide from the below link.

How To Take Nandroid Backups Using Custom Recoveries

But what if you have an old CWM nandroid backup of your device but you’ve moved to TWRP recently.(or Vice Versa) We know how frustrating it would be, but don’t lose your hope yet as we are going to show you how to convert your nandroid backup into a flashable Zip so that you can flash it using any custom recovery. Once you got a Zip file, you can either transfer it to the SDcard on your bricked device or if your device doesn’t sport an external SDcard, then you can sideload it using the ADB tool.

So let’s begin our little tutorial on creating flashable Zip files from CWM and TWRP backups.

Create Flashable Zip from CWM/TWRP Backup
The method for creating flashable Zip from CWM and TWRP backups are different as both the recoveries use different techniques to backup the device.

For CWM Backup
Transfer the CWM backup from Phone to PC.
Extract system.ext4.tar file with any of the archive apps like Winrar or 7zip, you will get the system folder of your device containing all the files.
Gather the boot.img from the CWM backup.
Now collect a META-INF folder from any custom ROM which is made for your device. Make sure you get the correct Meta-Inf folder, else the Zip won’t work and might worsen the condition of your device.
Select the META-INF, System folders and the boot.img and right click your mouse and select add to Archive.
In the Archive settings, choose the extension of the compressed file as Zip (Make sure of this part)
That’s it, your flashable Zip is now ready and you can flash it using any custom recovery.

For TWRP Backup
Transfer the TWRP backup from Phone to PC.
You’ll see a file named system.ext4.win which is the System partition backup of your device. Rename it to system.ext4.tar (Changing its extension from .win to .tar)
Extract the system.ext4.tar using an archive software like Winrar or 7zip.
If your TWRP backup is not in compression mode, you will directly get the system folder, else you will get a file named system.ext4, which should be renamed again to system.ext4.tar and extract it to get the system folder.
Take the boot.emmc.win file and rename it to boot.img.
Now collect a META-INF folder from any custom ROM which is made for your device. Make sure you get the correct Meta-Inf folder, else the Zip won’t work and might worsen the condition of your device.
Select the META-INF, System folders and the boot.img and right click your mouse and select add to Archive.
In the Archive settings, choose the extension of the compressed file as Zip (Make sure of this part)
Now you can use this Zip file to flash it on your Custom recovery.



With this, Buddy u can get your full STOCK /CUSTOM ROM back in zip file again.



Comments

  1. Can I get all data back or Can I select data files i.e data.ext4 in the zip file.
    Reply me soon please

    ReplyDelete
    Replies
    1. If you select and add it, then its likely(not work on all devices) to get it.
      Thanks.

      Delete

Post a Comment

Popular posts from this blog

[GUIDE][PORTING][MEDIATEK][mt6580]Android 6.0.x Marshmallow ROM Porting Guide-figured

Lollipop n Marshmallow System Extractor and Repacker Version 1.60

[CM] [ROM] [6.0.1] CyanogenMod 13 Unofficial - TECNO W4