[Noob-Tutorial] How to create a CWM flashable zip file from FTF Firmware

RomanticDog

Member
Aug 5, 2009
7
0
0
34
i followed the exactly same instructions to create one file, but it didn't work when i using TWRP to flash it. I think it still need to create flashable zip file in Ubuntu.

Plus, should we go to META-INF/com/google/android/updater-script and edit it?
 
Last edited:

FateNozomi

Senior Member
Sep 17, 2013
492
644
0
i followed the exactly same instructions to create one file, but it didn't work when i using TWRP to flash it. I think it still need to create flashable zip file in Ubuntu.

Plus, should we go to META-INF/com/google/android/updater-script and edit it?
Yup you need to edit the updater script to smylink some files, go download other 4.3 roms for reference!
 

RomanticDog

Member
Aug 5, 2009
7
0
0
34
Yup you need to edit the updater script to smylink some files, go download other 4.3 roms for reference!
alright, got it. seems much more complex. i downloaded one of zips to check, it made me crazy. don't know what to do. ah....... any references or guiding articles? thanks.
 

eryen

Senior Member
Apr 1, 2011
357
230
0
Also we can use extracted system.ext4 to replace system partiton. no need to LinuxReader and compicated scripts.


1. Extract system.sin to system.ext4 with Flashtool Sin Editor option.
2. Replace system.ext4 file in attached CWM_update_system.zip file
3. Boot into recovery.
3.1 Flash CWM_update_system.zip
3.2 Flash NUT's XZ-lockeddualrecovery2.7.85-BETA.flashable.zip
3.3 Flash NUT's SuperSu_Fix

Flash original ftf file without data and system partitions to update modem and kernel etc.



Use your rooted and updated phone.
 

Attachments

Last edited:

RochiWizz

Senior Member
Mar 7, 2009
116
23
0
Hi @all,


Step 10
Download the Attached META-INF File - extract it and copy the META-INF Folder in the "Firmware" folder

Step 11
Now you have in your "Firmware" folder two sub-folders
"system" and "META-INF"
Now you only have to zip the both folders for example with 7zip or WinRar
Important: You have to set the compression to "Store"
Thanks for this guide nice that people take the time to make guides like this. One small question is the attached META-INF "universal" for Xperia Z series? (can I use it for Tablet Z)
 

johan8

Senior Member
Nov 16, 2010
389
20
0
I have tried this method with reference of certain rom here to create my own CWM flashable 10.4.1.B.0.101
However after CWM flashed, then flash 10.4.1.B.0.101 TFT with kernel and modem only......
my XZ become no network, baseband is unknown.... my XZ not working properly....

I have successfully created my own pre-rooted 10.4.B.0.569 and update with it.
But not 101 this time.
Any ticks in 101 ?
Or I have to wipe data this time ?
 

C_Karhu

Senior Member
Jan 28, 2012
349
80
0
Also we can use extracted system.ext4 to replace system partiton. no need to LinuxReader and compicated scripts.


1. Extract system.sin to system.ext4 with Flashtool Sin Editor option.
2. Replace system.ext4 file in attached CWM_update_system.zip file
3. Boot into recovery.
3.1 Flash CWM_update_system.zip
3.2 Flash NUT's XZ-lockeddualrecovery2.7.85-BETA.flashable.zip
3.3 Flash NUT's SuperSu_Fix

Flash original ftf file without data and system partitions to update modem and kernel etc.



Use your rooted and updated phone.
Hi!

Is there a way to update kernel, modem etc without flashmode? It doesn't work on my phone. There's something wrong with it. Don't know what... But fastboot mode works.

Thanks!
 

eryen

Senior Member
Apr 1, 2011
357
230
0
Hi!

Is there a way to update kernel, modem etc without flashmode? It doesn't work on my phone. There's something wrong with it. Don't know what... But fastboot mode works.

Thanks!
Kernel also can be flashed via cwm update zip. Just need to insert correct lines.

About modem files. I tried flashtool sin decypter but, result was not ok. Phone soft bricked.

Maybe allready flashed files might work, after copy to sdcard.

All files listed under this path
/dev/block/platform/msm_sdcc.1/by-name

Remember do not mess with TA partition...


Sent from my C6603 using Tapatalk

---------- Post added at 11:46 PM ---------- Previous post was at 11:26 PM ----------

Tonight i will try a full package with all partitions again to confirm, does it works.

Need to clarify modem and bootloader files.

Sent from my C6603 using Tapatalk
 

Lipa08

Member
Nov 14, 2013
16
0
0
Warsaw
Hi @all,

I´m using the Flashtool and other provided tools here in the Forum for a long time (thanks to all people who are involved in the developing)

Now I want to give something back.
I´m not a developer but I understand (hopefully) basic things.
I have also some phones which does not support the flashmode so I am reliant to the fastboot mode and CWM.
At this point my goal was to flash the stock ROM to the Xperia Z.

I found a tuturial how to make a flashable zip file for CWM but it was for old devices with yaffs2 filesystem and the new ones have ext4.


After some search I found everything what is needed and I want to share it with you.
The Tutorial covers basic things but maybe it will help some people who will try it.

Step 1
Download the Stock-FW you want (FTF-File)

Step 2
Rename the .ftf File to .zip

Step 3
Extract the system.sin (with 7zip or WinRar for example)

Step 4
Open Flashtool go to "Tools" -> "Sin Editor" -> Choose the extracted system.sin and push "extract" Data

Step 5
You will get an system.ext4 file

Step 6
We have to extract the files which are in the system.ext4 file - for this I used the DiskInternal Linux Reader

Step 7
After extracting the files you have to put all the files in a folder named "system" (low letters)

Step 8
Create a folder named for example "Firmware"

Step 9
Put the "system" folder in the "Firmware" folder

Step 10
Download the Attached META-INF File - extract it and copy the META-INF Folder in the "Firmware" folder

Step 11
Now you have in your "Firmware" folder two sub-folders
"system" and "META-INF"
Now you only have to zip the both folders for example with 7zip or WinRar
Important: You have to set the compression to "Store"

Step 12
Copy the zip File to your SD-Card and flash it with CWM


If you want you can now add files to the system folder - like busy box - and or modify things and flash it over CWM.


Special thanks to Bin4ry


Best regards
UserX10

I don't have system.sin, so what now?? :



I really need to work it out, cause my phone is useless without updating this CWM :(
 
Last edited:

eryen

Senior Member
Apr 1, 2011
357
230
0
I don't have system.sin, so what now?? :



I really need to work it out, cause my phone is useless without updating this CWM :(
You are using stripped ftf file. Please download full firmware file. You can use system.sin from that.


Sent from my C6603 using Tapatalk
 

UserX10

Senior Member
May 10, 2010
282
121
0
I don't have system.sin, so what now?? :



I really need to work it out, cause my phone is useless without updating this CWM :(

Then you have a stripped / reduced firmware which you have downloaded.
The system.sin is the partition with the whole "Operating System". Download a different FTF !!
 

amigo911

Senior Member
Oct 25, 2013
79
14
0
I tried your guide in my xperia sp .

this is log wen i tried to flash through CWM

-- Installing :/ storage/sdcard1/rom/gamerom.zip
finding update package....
opening update package...
installing update...
--format system
--Delete files
--Installing system
E: Error in /storage/sdcard1/rom/gamerom.zip
(status 0)

:( please help . i followed everything. i was bit confused when i was about to extract the ext4 .

i am telling you what I did .

I opened your linux reader .

Then choose from File menu > Drives>mount image
(.) Rawdisk images checked
Next
Located the ext4 then
then it created a partition for me LINUX EXT VOLUME 4
Opened the partition and saved those . Those are same as other flashzip system folder.

Whats wrong i did ? :(

---------- Post added at 07:20 AM ---------- Previous post was at 07:08 AM ----------

UPDATE :

Sorry i passed the installation aborted problem now . it stucks with no error msg

- Installing :/ storage/sdcard1/rom/gamerom.zip
finding update package....
opening update package...
installing update...
--format system
--Delete files
--Installing system

Going about 50% OF the progress bar and never ends :(
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone