Related
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...
REQUIREMENTS:
- any file that you want to replace or add to your phone;
- an existing cwm flashable zip file to use as a base - I've attached one below;
- 7-zip;
- Notepad++.
STEPS:
DIRECTORY STRUCTURE:
(1) Download and place the sample.zip anywhere on your desktop;
(2) Right-click on it and choose: "7-Zip / Open archive" [*DO NOT extract; just *Open archive*];
Now you should see two folders: one called "system" and one called "META-INF".
I - FILES AND FOLDERS:
Let's start with the "system" one, so double-click on it:
In there, will go all files that what you want to add or replace to the system. So let's say for example that you want to replace the bootanimation and bootsound. To do so, we have to create sub-directories in the /system/ folder by following this easy method:
- On your desktop, right-click on an empty spot and select "New / Folder" then edit the name to "etc" (no " ") using no CAPS or space at the end;
- repeat the process to make another folder called "media";
- drag those two new empty folders into the /system/ folder of the 7-zip opened archive [just click yes on the popup dialogs];
- now simply drop the two files in their respective place: the sanim.zip file should go in '/system/media' folder and the PowerOn.wav into '/system/etc' folder.
.. If you have more files to add, just follow the logic above; I'm sure you get the idea by now..
/system/app - all the system apps (SystemUI.apk etc)
/system/framework/ -framework-res.apk, twframework-res.apk, android.policy.jar
/system/etc - vold.fstab, PowerOn.wav(bootsound)
/system/media - sanim.zip (bootanimation) (only for custom ROMs)
/system/lib - libraries (*.so)
II - UDATER-SCRIPT
The other folder included in the opened archive is named "META-INF" and all the file in it should be left unchanged.
That's it !!
Congratulations you've done your first CWM patch !!!
NOTE: Always backup your existing system file that you are going to replace by the patch(zip).
Good Guide!!
There are many more here. Check them
EDIT: Added your Post there. As CWM Flashable Zip Guide.
Hope you are Fine with it.
Thnx so much pankaj.........
Great guide man awesome, thanks!
I've got some questions which I believe you can answer:
1. I come from another device's forum [SAMSUNG Galaxy S II I9100] so I'm not sure, will this method work with any device, or at least with mine?
2. What I'm trying to do is to take the nandroid backup I made for the ROM my device is currently running (whole ROM, along with all the MODs, themes & changes I have on it) and convert it into a CWM flashable .zip file, so:
A. Is this even possible with this method?
B. If it is, just to verify that I got it all right up until now: I decompress the 'system.ext4.tar' file from the nandroid' backup folder and then I push the decompressed system folder into the 'sample.zip' file that I've downloaded from this thread, right?
3. I know for a fact (correct me, if I'm wrong) that a nandroid backup doesn't include a backup of the modem (at least not in my device), so how do I add my currently installed modem to the .zip file?
4. What about the recovery and bootloader, how do I add them?
5. What about "cache.ext4.tar" & "data.ext4.tar", are they necessary in any way?
Itzik68 said:
Great guide man awesome, thanks!
I've got some questions which I believe you can answer:
1. I come from another device's forum [SAMSUNG Galaxy S II I9100] so I'm not sure, will this method work with any device, or at least with mine?
2. What I'm trying to do is to take the nandroid backup I made for the ROM my device is currently running (whole ROM, along with all the MODs, themes & changes I have on it) and convert it into a CWM flashable .zip file, so:
A. Is this even possible with this method?
B. If it is, just to verify that I got it all right up until now: I decompress the 'system.ext4.tar' file from the nandroid' backup folder and then I push the decompressed system folder into the 'sample.zip' file that I've downloaded from this thread, right?
3. I know for a fact (correct me, if I'm wrong) that a nandroid backup doesn't include a backup of the modem (at least not in my device), so how do I add my currently installed modem to the .zip file?
4. What about the recovery and bootloader, how do I add them?
5. What about "cache.ext4.tar" & "data.ext4.tar", are they necessary in any way?
Click to expand...
Click to collapse
(1) This method will work with any device as long as the device has custom recovery (CWM).
(2) a. yes, it is possible
b. decompress system.ext4.tar and push all the files/folders in the system folder to the system folder in the sample.zip
You must add the line in BOLD/italic to the META-INF/com/google/android/updater-script file
Code:
run_program("/sbin/busybox", "mount", "/system");
[B][I]delete_recursive("/system");[/I][/B]
package_extract_dir("system", "/system");
This line has to be added only when you want to replace all the system files/folders
otherwise no need to add.
drag updater-script from sample.zip (open via 7zip, do not extract) to the desktop, make modifications, save & then push it back to the same locations in sample.zip
(3) To include modem.bin :
first drag modem.bin & this file to sample.zip
now the directory structure of sample.zip is as follows
FOLDERS - system, META-INF
FILES - modem.bin, flash_image
add following lines to the META-INF/com/google/android/updater-script file
Code:
package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
ui_print("Installing modem...");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p7", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
delete("/tmp/flash_image");
(4) Don't know about bootloader, but for recovery, similar step as above:
drag recovery.img to sample.zip
add these lines to updater-script
Code:
package_extract_file("recovery.img", "/tmp/recovery.img");
run_program("/sbin/busybox", "dd", "if=/dev/zero", "of=/dev/block/mmcblk0p8");
run_program("/sbin/busybox", "dd", "if=/tmp/recovery.img", "of=/dev/block/mmcblk0p8");
run_program("/sbin/busybox", "sync");
run_program("/sbin/busybox", "rm", "-f", "/tmp/recovery.img");
(5) No these files are not needed.
Thanks man, you're awesome!!!
I still have several questions though:
pankaj88 said:
b. decompress system.ext4.tar and push all the files/folders in the system folder to the system folder in the sample.zip
You must add the line in BOLD/italic to the META-INF/com/google/android/updater-script file
Code:
run_program("/sbin/busybox", "mount", "/system");
[B][I]delete_recursive("/system");[/I][/B]
package_extract_dir("system", "/system");
This line has to be added only when you want to replace all the system files/folders
otherwise no need to add.
drag updater-script from sample.zip (open via 7zip, do not extract) to the desktop, make modifications, save & then push it back to the same locations in sample.zip
Click to expand...
Click to collapse
OK, puling / pushing files / folders from / to the .zip / .tar files is no problem, but I don't really get the part with this: "updater-script" file...
1. Let's say I've pulled it:
A. What is this file?
B. How can I open and edit it?
C. You say to add those code lines, but I'm guessing there are already several other code lines in it, where do I add those line? Above something else? Below it? Where?
2. Except for this: "updater-script" file, there are also:
META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
META-INF\com\google\android\update-binary
A. What about those, what are they?
B. Don't they need to be changed as well?
I have more questions about the other parts of your answer, but for now let's live it at that.
I'm really sorry I'm bugging you, but I really like to understand what I'm doing before doing it...
Itzik68 said:
Thanks man, you're awesome!!!
I still have several questions though:OK, puling / pushing files / folders from / to the .zip / .tar files is no problem, but I don't really get the part with this: "updater-script" file...
1. Let's say I've pulled it:
A. What is this file?
B. How can I open and edit it?
C. You say to add those code lines, but I'm guessing there are already several other code lines in it, where do I add those line? Above something else? Below it? Where?
2. Except for this: "updater-script" file, there are also:
META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
META-INF\com\google\android\update-binary
A. What about those, what are they?
B. Don't they need to be changed as well?
I have more questions about the other parts of your answer, but for now let's live it at that.
I'm really sorry I'm bugging you, but I really like to understand what I'm doing before doing it...
Click to expand...
Click to collapse
(1) It is updater-script file.
CWM flashes the zip file according to the steps mentioned in this file.
lets say
updater-script contains following lines:
Code:
ui_print("| Writing System |");
run_program("/sbin/busybox", "mount", "/system");
delete_recursive("/system");
package_extract_dir("system", "/system");
Explanation of all the lines:
first line just print "Writing System"
next, mounts system partition so that files can be copied to it
deletes system folder
extract the system folder in the sample.zip to the device system partition
I hope now you have understand what updater-script is all about
You can use notepad++ to edit this file
(2) All the other files should be left as they are. No need to edit those files.
But their presence is necessary in the sample.zip
(these files serve as signature of the zip file)
Download this updater-script file to study more code.
OK, so now my "updater-script" file is looking like that:
Code:
ui_print("SAMPLE CWM FLASHABLE PACKAGE");
run_program("/sbin/busybox", "mount", "/system");
delete_recursive("/system");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
ui_print("Installing modem...");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p7", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
delete("/tmp/flash_image");
Is that right so far?
Itzik68 said:
OK, so now my "updater-script" file is looking like that:
Code:
ui_print("SAMPLE CWM FLASHABLE PACKAGE");
run_program("/sbin/busybox", "mount", "/system");
delete_recursive("/system");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
ui_print("Installing modem...");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p7", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
delete("/tmp/flash_image");
Is that right so far?
Click to expand...
Click to collapse
you should study the updater-script file, the link for which I provided in the last reply.
Code:
run_program("/sbin/busybox", "umount", "/system");
this line should come at the last when all the copying & flashing has been done.
It unmount the system partition.
Also you need to set permissions & create symbolic links.
I suggest you to study the updater script file first.
If you found any problem, post here.
pankaj88 said:
you should study the updater-script file, the link for which I provided in the last reply.
Code:
run_program("/sbin/busybox", "umount", "/system");
this line should come at the last when all the copying & flashing has been done.
It unmount the system partition.
Also you need to set permissions & create symbolic links.
I suggest you to study the updater script file first.
If you found any problem, post here.
Click to expand...
Click to collapse
what are symbolic links for? i have studied the updater script you posted.. and did some on my custom rom, both have many symbolic links, what it is for? is it necessary? or just for custom roms?
draiyan said:
what are symbolic links for? i have studied the updater script you posted.. and did some on my custom rom, both have many symbolic links, what it is for? is it necessary? or just for custom roms?
Click to expand...
Click to collapse
for understanding what symbolic links are:
http://en.m.wikipedia.org/wiki/Symbolic_link
it is necessary to have symbolic links for every ROM that you are going to flash via CWM.
Sent from my GT-I9103 using xda app-developers app
pankaj88 said:
- On your desktop, right-click on an empty spot and select "New / Folder" then edit the name to "etc" (no " ") using no CAPS or space at the end;
- repeat the process to make another folder called "media";
- drag those two new empty folders into the /system/ folder of the 7-zip opened archive [just click yes on the popup dialogs];
- now simply drop the two files in their respective place: the sanim.zip file should go in '/system/media' folder and the PowerOn.wav into '/system/etc' folder.
.. If you have more files to add, just follow the logic above; I'm sure you get the idea by now..
/system/app - all the system apps (SystemUI.apk etc)
II - UDATER-SCRIPT
The other folder included in the opened archive is named "META-INF" and all the file in it should be left unchanged.
Click to expand...
Click to collapse
So i followed these steps with Phone.apk. Made an "app" folder inside the already existing "system" folder. moved my modified "Phone.apk" inside that folder. put on SD card, reboot recovery, choose to install from zip, choose correct zip, and get...
Error: in /sample.zip
(Status 0)
Installation aborted
Any idea. those are my exact steps, i left nothing out.
baldypal said:
So i followed these steps with Phone.apk. Made an "app" folder inside the already existing "system" folder. moved my modified "Phone.apk" inside that folder. put on SD card, reboot recovery, choose to install from zip, choose correct zip, and get...
Error: in /sample.zip
(Status 0)
Installation aborted
Any idea. those are my exact steps, i left nothing out.
Click to expand...
Click to collapse
Try do Mount/System and then flash it. Still if u get some prob, please attach ur cwm zip. Will try to help u buddy.
baldypal said:
So i followed these steps with Phone.apk. Made an "app" folder inside the already existing "system" folder. moved my modified "Phone.apk" inside that folder. put on SD card, reboot recovery, choose to install from zip, choose correct zip, and get...
Error: in /sample.zip
(Status 0)
Installation aborted
Any idea. those are my exact steps, i left nothing out.
Click to expand...
Click to collapse
Do not extract the zip file.
Use "7zip" to open it & make a new folder named as "app" inside the system directory.
Also mount /system in CWM recovery.
Has anyone succeeded in making an update.zip for our device that can be flashed through stock recovery? If yes how to make one?
OK the "mount /system in CWM recovery" is did not do. I did not extract the files. I did use 7zip.
Sent from my Galaxy Nexus
Had the chance to try this last night. Mount /system in CWM didn't allow it either. Same error.
Sent from my Galaxy Nexus using xda app-developers app
I will upload a cwm zip with modified updater script soon.
Sent from my GT-I9103 using xda app-developers app
OP updated with modified "sample.zip".
Thanks !!
somehow i got "installatin aborted"
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?
First download Zipme from the playstore:
https://play.google.com/store/apps/...zipme&pcampaignid=APPU_1_3kCMVePfNsz9ULqsgogC
Then download DC07's Aroma Installer Template (attached below).
1.Use Zipme to generate a flashable zip file.
2. Extract your mod/theme (that you made with zipme) into any folder
3. Extract the aroma installer template.
4.Rename the updater-binary in your mods META-INF to update-binary-Installer
5. Move it along with your updater-script into the .../Aroma's_META-INF/com/google/android folder (the extracted one)
6.Rename AROMA'S_META-INF to META-INF
7.Delete the META-INF in your mod folder (the one you extracted)
8.Copy and paste Aroma's META-INF (the one you renamed to META-INF)
9.Compress to .zip
You can edit the updater-script created by Zipme. ui_print is basically echo "say what you want here"
CREDITS
DC07 FOR HIS TEMPLATE
Preferably view it on your phone in Google Chrome.
If there are any problems please Reply to me.
If the Aroma installer touch doesn't work properly with your touch screen,
1. Go to recovery
2. Install zip (your mod.zip)
3. Hold and release home button
4. Click on calibrate (or something like that)
5. Follow the instructions
6. Once finished write down the code that pops up.
7.
Replace in aromameta-inf/com/google/android
Code:
#calibrate("7.90","20","7.90","20");
With your code:
Example
Code:
calibrate_matrix("26310.00","-2205.00","420520.00","-3360.00","282240.00","913920.00","280644.00","20");
Important Note: The # must be removed otherwise it won't work
daboss5 said:
First download Zipme from the playstore:
https://play.google.com/store/apps/details?id=zip.me&hl=en&referrer=utm_source=google&utm_medium=organic&utm_term=zipme&pcampaignid=APPU_1_3kCMVePfNsz9ULqsgogC
Then download DC07's Aroma Installer Template (attached below).
1.Use Zipme to generate a flashable zip file.
2. Extract your mod/theme (that you made with zipme) into any folder
3. Extract the aroma installer template.
4.Rename the updater-binary in your mods META-INF to update-binary-Installer
5. Move it along with your updater-script into the .../Aroma's_META-INF/com/google/android folder (the extracted one)
6.Rename AROMA'S_META-INF to META-INF
7.Delete the META-INF in your mod folder (the one you extracted)
8.Copy and paste Aroma's META-INF (the one you renamed to META-INF)
9.Compress to .zip
You can edit the updater-script created by Zipme. ui_print is basically echo "say what you want here"
CREDITS
DC07 FOR HIS TEMPLATE
Preferably view it on your phone in Google Chrome.
If there are any problems please Reply to me.
Click to expand...
Click to collapse
Where is Aroma Installer Template???
TWRP Flashable Zip - Sample
About
This is a sample zip i.e Empty, with this you can move anything (for say: apps, fonts, boot anim, libs/hals, build.prop etc) to your system partition easily.
How-to?
Extract the zip
Now copy-paste the stuff you want to flash
normally compress the zip again
Go to TWRP
Flash and Reboot.
Hit thanks and Enjoy xD
Download
Attached below - click click
Notes
For anything you want to flash/move to system: You will have to first make a folder inside the system folder for ex
You want to push a lib in lib64 folder for that you need to create a folder as 'lib64' inside the system folder
so the path will be : (flashable zip)/system/lib64/(your file)
Lets say :-
For Apps:
(flashable zip)/system/app/(your app)
For Fonts:
(flashable zip)/system/fonts/
For Boot anim:
(flashable zip)/system/media/(bootanimation.zip)
PS : Sorry for Typos if any.
thread closed as per OP request