ATIV S ROM Extraction / Analysis - Windows Phone 8 Development and Hacking

Current progress:
Partitions extracted from SMD (.wp8 & .csc)
Tool to extract SMD
NTFS extracted
Decompiled Diagnosis
Decrypted Diagnosis codes
TODO:
Tool to extract NTFS

Funny how the ATIV S is the most underrated device and most unknown and yet, in the xda-developers community, work for the ATIV S is done the most because it isn't that hard.

Simply because Ativ S looks like business device. Not like kiddy colorful Nokia's or HTC (jesus 8X fail). HTC Mozart that was a gooood phone and I thought that HTC would release something similiar to it. But not, they've released these ****ty two-colored devices for kids. Microsoft is trying to aim WP to business users but how it can be done if they could only buy one phone (Samsung Ativ S)?
Additionally im also interested in this Samsung device and waiting for interop or full unlock. WP7 without file manager is UNUSABLE for me, same WP8. I'll buy WP8 phone when Samsung custom rom will be made. Im PHP and Game Developer and I offer my support anytime when You need it.
And big thanks to developer of Unique File Manager if is he reading this - GOOD JOB!
Regards

I've mounted it in Windows. Chkdsk repaired it into some sort of garbage

extract ?
-W_O_L_F- said:
I've successfully extracted all partitions from Italian ROM. Most of those are RAW, one FAT12, one FAT16 and two NTFS. FAT partitions mount just fine (on Linux), but NTFS not. There are 4096 byte header before NTFS signature. If I cut off those bytes Linux detects NTFS, but says it's broken (no $MFT). No recovery tool can repair it. Are WP8 NTFS partitions special? How can I unpack it?
P.S. Partition start in ROM and in GPT is the same.
P.S.S I can upload Data partition to an file hosting. It's 94 MB large.
Click to expand...
Click to collapse
hi ...
i have the GT-I8750 XXBME1_R_signed.wp8 ROM file
can you please tell me HOW did you extract this file ???
many thanks in advance
M

megasounds said:
hi ...
i have the GT-I8750 XXBME1_R_signed.wp8 ROM file
can you please tell me HOW did you extract this file ???
many thanks in advance
M
Click to expand...
Click to collapse
I have a tool for extracting. I'll post it here on first week of September, cuz I have to fix some minor bugs in it.

is the bootloader unlocked? have you guys figure a way around secureboot?

No

Hmm this thread doesn't seem to do anything with ROM hacking. I would rename it to ATIV S ROM Extraction / Analysis.

snickler said:
Hmm this thread doesn't seem to do anything with ROM hacking. I would rename it to ATIV S ROM Extraction / Analysis.
Click to expand...
Click to collapse
You're right. It's a better name.

Data partition
It's hard to belive but attached archive contains 90+ MB NTFS partition image. May be someone can mount it. The sad thing is that it's huge, about 13 GB. So you need much free space on your HDD.
I can't mount it, case I only have 3 GB free on my tablet.

13 GB? What methods did you use to parse and separate the partitions from the .wp8 file?

snickler said:
13 GB? What methods did you use to parse and separate the partitions from the .wp8 file?
Click to expand...
Click to collapse
File in the archive is what I've extracted from .wp8 file. It's image of the beginning of partition called "Data". "Data" is ~13 GB big but free space isn't included in .wp8.
I analyzed .smd files from wp7 Samsung devices. .csc and .wp8 are smd too. So, a tool I wrote to extract smd can extract csc and wp8. As I said it has some minor bugs.
Usage: smd-tool /u <file> [<folder>]

I think the ROM file is just a some repack form of FFU file.
The NTFS partition is compressed, you can grab full FFU part from the ROM and use imgmount tool to extract.

reker said:
I think the ROM file is just a some repack form of FFU file.
The NTFS partition is compressed, you can grab full FFU part from the ROM and use imgmount tool to extract.
Click to expand...
Click to collapse
AFAIK, FFU is Nokia's format. And this ROM is for Samsung. FAT partitions are not compressed, so are NTFS. Or you talking about internal NTFS compression feature? It's easy to check. If image contains any text data it's not compressed.
UPDATE: I found text info (part of xml) in the image, so it's really uncompressed.

FFU is reference Microsoft format.

OK extracted
ok i extract the files from the wp7 file
now i see a lot of *.bin files
question
how can i mount/uncompress/edit these files ???
many thanks in advance
m

ultrashot said:
FFU is reference Microsoft format.
Click to expand...
Click to collapse
I attached SMD header. Is it similar to FFU?
megasounds said:
ok i extract the files from the wp7 file
now i see a lot of *.bin files
question
how can i mount/uncompress/edit these files ???
many thanks in advance
m
Click to expand...
Click to collapse
With a hexeditor!
Did you read the opening post?
Data.bin contains NTFS. Dig.

question
hi there
yes i extracted the files from the *.wp8 file
my question
can i edit some files and REpack all the files to a new *.wp8 file ?
i saw an option to /p pack all the data but i cannot make this working
is it possible to make an example line how to PACK all the new data into a new *.wp8 file ???
many thanks in advance
M

Still no luck
I've downloaded FFU for Nokia and extracted MainOS NTFS image. It mounts just fine. What's the matter with Samsung's one?
P.S. FFU and SMD are totally different.

Related

just a thought

hi all,
just a thought.
and if its dumb then please say so lol
i understand development has stuck with getting roms onto the phone, we can encrypt and decrypt tsw's i think, but cant load them.
could we just replace the file in the official download and copy over the certificates or tell the certificates to look somewhere else for the relelvant version info?
it would require stripping out the official tsw, not sure how thats going tbh, and replacing it with our bits and bobs. copying over the certificates and modifying there dependacies or something
??? any thoughts ???
another thought
and I have another question, if we have the Bin file why we cant' load it throught the pin shorctcut method ?
gmx333 said:
and I have another question, if we have the Bin file why we cant' load it throught the pin shorctcut method ?
Click to expand...
Click to collapse
the bin file it's not the tsw file. While i really dont know if the bin file may be loaded with the pin method...
im not familiar with the pin shorten method but i assume the boot rom/boot loader looks for a specific file extension (.tsw) not a .bin, you cant rename it .bin as compression and packing is different to each format, so it wouldnt work.
its down to the sddl+ to allow the file to be written and the phone to accept it without questioning where its from (official or not)
people out there can hack into goverment secrets ina blink of an eye, yet no one can beat toshibas back to front programming
just a rant....for now
phillmydiamond said:
im not familiar with the pin shorten method but i assume the boot rom/boot loader looks for a specific file extension (.tsw) not a .bin, you cant rename it .bin as compression and packing is different to each format, so it wouldnt work.
its down to the sddl+ to allow the file to be written and the phone to accept it without questioning where its from (official or not)
people out there can hack into goverment secrets ina blink of an eye, yet no one can beat toshibas back to front programming
just a rant....for now
Click to expand...
Click to collapse
I'm sure, the shortcut method will load not encrypted files with .bin extension as well as excypte with .tsw and .enc. extension.
.bin .tsw .enc all one after another close to
Downloader
Don't Remove the SD Card & the Battery. Downloading ...
just search in .bin
cedesmith said:
.bin .tsw .enc all one after another close to
Downloader
Don't Remove the SD Card & the Battery. Downloading ...
just search in .bin
Click to expand...
Click to collapse
More specific, please... for rookies.

Rom Image?

What programs is everyone using to open the rom image?
Unaffys.exe then you will need to make a update script see existing roms for examples
great thans so much....
Hi all,
Where can I download "Unaffys.exe" from?
I do not seem to be able to find any info on this file...
Thanks.
I think they mean unyaffs
Only the system.img and userdata.img files within the HTC ROM files (PB00IMG.ZIP) are formatted in yaffs2 - the rest are just raw (binary) data blobs.
I'm not sure that's what the OP meant by "ROM", but whatever.
Note that the Nandroid backup files "system.img" and "data.img" are also YAFFS2 formatted - so if you have been using Nandroid, you can extract saved Nandroid backups (for instance if you are longing for an older version of an app that you formerly used, but hate the version available on the Market).
A couple of notes about using "unyaffs" - it does not preserve time-stamps, file modes, or ownership information, even when running as root on a Linux box (the sources can be fixed up, though - *cough, cough* ). Certainly ownership and file modes/permissions will not be preserved when using a Windows version of the tool.
bftb0

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

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
Learned ! Thank you.
Nice tutorial!
EDIT: The flashable zip is huge (990MB), did this have anything to do with the compression being set to 'store'?
xL3thalTuRdZz said:
Nice tutorial!
EDIT: The flashable zip is huge (990MB), did this have anything to do with the compression being set to 'store'?
Click to expand...
Click to collapse
If you don't set it to store it wont work at all, no rom/flashable zip have anything other than store compression the same goes for bootanimations
Edit: OP/Mod you might just want to change TFT file to FTF in step 1
Sent from my GT-i9100 using Tapatalk 2
Edit2: It seems like this only goes for bootanimations, sorry my bad.
Great.....learning it now
Thanks for the positive feedback.
Changed also the typo on Step 1
I've tried setting compression to 'Normal' and all seems to be going fine...
Sent from my C6603 using xda app-developers app
Can this be applicable to nxt devices like mine?thanks for the tutorial...
Sent from my LT22i using Tapatalk 2
how to extract from ext4
can you explain with details :fingers-crossed:
im getting ext4 file again after extracting !
ShivangDave said:
can you explain with details :fingers-crossed:
im getting ext4 file again after extracting !
Click to expand...
Click to collapse
You have to selected the .ext4 file open with LinuxReader. (like you .doc file with Word)
LinuxReader will "mounted" it in his own window, open your "new" disk (2Go) then select the "Save" option above...
tempofestival said:
You have to selected the .ext4 file open with LinuxReader. (like you .doc file with Word)
LinuxReader will "mounted" it in his own window, open your "new" disk (2Go) then select the "Save" option above...
Click to expand...
Click to collapse
did it via linux ! thanks any way !
When I tried to extract Xperia S's stock rom from the ftf using DiskReaderInternals, then the rom would boot but USB would never work. Even the guy above me (ShivangDave) tried extracting using DiskReaderInternals for Miro but the rom failed to boot and got stuck at the Sony logo. That's why it is better to use linux to extract the system.ext4 image.
i want to make a flashable zip to install aps
UserX10 said:
Important: You have to set the compression to "Store"
Click to expand...
Click to collapse
How do I set the compression to "Store"?
Thanks a lot for your guide!
MinnesotaVikings1961 said:
How do I set the compression to "Store"?
Thanks a lot for your guide!
Click to expand...
Click to collapse
whenever you add file in archive it will show a box first ! 'NORMAL' is default ! change it to 'Store' !
Please!
Does this tutoriral can be applied to other models as Neo V.
Thank you and best regards!
fer14 said:
Please!
Does this tutoriral can be applied to other models as Neo V.
Thank you and best regards!
Click to expand...
Click to collapse
This Tutorial should also work with the Neo V. Only one thing could be different.
But depending on your Android Version (when I remember well) it could be possible that you have instead of an ext4 file a yaffs2 file. In this case you can search the forum for an how to for this extension.
TheHawk002 said:
If you don't set it to store it wont work at all, no rom/flashable zip have anything other than store compression the same goes for bootanimations
Click to expand...
Click to collapse
I use a template for flashing various things and I just drop stuff in it using Normal compression and it flashes ok, might be more important for full ROMs or zips to be run on the Phone like a boot animation, but for flashing the odd apk or other file I don't think it matters.
UserX10 said:
This Tutorial should also work with the Neo V. Only one thing could be different.
But depending on your Android Version (when I remember well) it could be possible that you have instead of an ext4 file a yaffs2 file. In this case you can search the forum for an how to for this extension.
Click to expand...
Click to collapse
XperienceD said:
[GUIDE] How to make your regional firmware an .FTF file
[Guide] How make a FTF of stock firmware from SUS files
[GUIDE]How to make a rooted flashable rom from ftf file[FOR ALL XPERIA PHONES]
[tutorial] | how to extract system.sin
[tutorial] step by step method to extract ftf file from ics [ics]
[Tool] Yaffey - Utility for reading, editing and writing YAFFS2 images
Click to expand...
Click to collapse
UserX10 said:
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
Click to expand...
Click to collapse
I tried this on Xperia SP but the installation is aborted, does this supports Xperia SP? If not, how can I make another one for Xperia SP? Thanks
tdth said:
I tried this on Xperia SP but the installation is aborted, does this supports Xperia SP? If not, how can I make another one for Xperia SP? Thanks
Click to expand...
Click to collapse
which error ?
---------- Post added at 08:52 PM ---------- Previous post was at 08:50 PM ----------
tdth said:
I tried this on Xperia SP but the installation is aborted, does this supports Xperia SP? If not, how can I make another one for Xperia SP? Thanks
Click to expand...
Click to collapse
this works... make sure you have correct update-binary file and also script !

Exploring TWRP backups on Windows

This question is not specific to the G2 however since it's the device I currently own I figured I might as well ask it here since it seems as good as place as any to ask. That being said I would like to know how I can explore the contents of a TWRP created nandroid backup from my PC running Windows 7 professional. I have already transferred the files to my computer without issue, but when I try to extract the "data.ext4.win000" or "data.ext4.win001" files using 7Zip it just says the files are not supported so I am not sure what piece of software I need to get to open these files and explore their contents from within Windows and any help would be greatly appreciated.
TIA,
MTCellph
You need a specific program to view the files inside, as soon as I check the one I use on my laptop I'll let you know
Sent from my LG-D800 running stock kk, rooted with philz using XDA app
---------- Post added at 11:34 AM ---------- Previous post was at 10:49 AM ----------
Ok so here's what you want to do rename the file to data.est4.tar.gz and you will be able to explore the archive using 7zip
Sent from my LG-D800 running stock kk, rooted with philz using XDA app
I did that and there was a Tar file inside of the tar.gz file which I tried extracted to my desktop and tried to open in 7zip, but it would not open so I am at the same spot I was in to begin with
mtcellph said:
I did that and there was a Tar file inside of the tar.gz file which I tried extracted to my desktop and tried to open in 7zip, but it would not open so I am at the same spot I was in to begin with
Click to expand...
Click to collapse
for some reason that keeps happening with the data folder but you can easily view the system
XxZombiePikachu said:
for some reason that keeps happening with the data folder but you can easily view the system
Click to expand...
Click to collapse
Thanks again for the reply. I was trying to view the DATA folder as you may have guessed which as you found out does not work (or atleast I could not get it to work for me) on Windows so I had to boot up into my Ubuntu partition on my machine and concatenate the 2 .WIN files into one file using the following command from the Ubuntu terminal.
cat data.ext4.win000 data.ext4.win001 > data.tar (or tar.gz if compression was enabled when you created the backups in TWRP)
I then used the built in archive manager in Ubuntu and was able to browse the DATA partition and extract the information that I needed. This should not be necessary, but as we both discovered, windows (for whatever reason) does not seem to be able to handle the DATA partition while Ubuntu can so if anyone stumbles upon this post wanting to know the same information then you should try downloading a live cd / live usb version of Ubuntu (if you don't already have it installed on your machine that is) and running it and follow the steps above to access the files in your DATA partition.
Note: In the above example I had to combine the 2 data.ext4.win* files into one file before I could access the archive. If you do not have multiple data.ext4.win* files then you can skip that step and go straight to the next step which is opening the data partition in the built in archive manager that comes with Ubuntu.
HTH,
MTCellph
mtcellph said:
Thanks again for the reply. I was trying to view the DATA folder as you may have guessed which as you found out does not work (or atleast I could not get it to work for me) on Windows so I had to boot up into my Ubuntu partition on my machine and concatenate the 2 .WIN files into one file using the following command from the Ubuntu terminal.
cat data.ext4.win000 data.ext4.win001 > data.tar (or tar.gz if compression was enabled when you created the backups in TWRP)
I then used the built in archive manager in Ubuntu and was able to browse the DATA partition and extract the information that I needed. This should not be necessary, but as we both discovered, windows (for whatever reason) does not seem to be able to handle the DATA partition while Ubuntu can so if anyone stumbles upon this post wanting to know the same information then you should try downloading a live cd / live usb version of Ubuntu (if you don't already have it installed on your machine that is) and running it and follow the steps above to access the files in your DATA partition.
HTH,
MTCellph
Click to expand...
Click to collapse
great I already run Ubuntu on a virtual machine so this is very useful information
explore/extract system.ext4 with IZArc
Sorry - please ignore this post - I don't know what I'm talking about sometimes...
I know the thread is over 6mon old, sorry...
I have a recent backup from TWRP 2.7.x and really need to figure out how to get into /data/media or whatever the equivalent is in the archive. I did a 'cat' of my 4 data.ext4.win00* files and opened that in Ubuntu. All it contained was a big stack of APKs and a subfolder with a bunch of 0 byte objects. What bugs me the most is that the file browser reports the data.ext4.tar.gz I created at 3.3GB, but the ubuntu handler only reports the /data folder inside at 1.6GB.
I lost a buttload of data and files to an Odin restore necessitated to wipe 2 stubborn cache files. Nothing I tried could change their properties (thanks G00gle). Anyway, I ended up doing a full wipe of the phone thinking I had a good TWeRP backup on the extSDcard. Wrong.
I just checked system.etx4.win* and found the same/similar files under it's /app folder.
Have I lost all those files or is there something else I can try? TIA.
Talos4 said:
explore/extract system.ext4 with IZArc
Click to expand...
Click to collapse
Thanks a lot for this hint! I hadn't heard about IZArc before. It's really great and saved my day. :highfive:
Windows users
For windows (if you have multiple files) :
Code:
copy /B data.ext4.win001 + data.ext4.win001 + data.ext4.win001 + data.ext4.win001 output.tar
Mehdiway said:
For windows (if you have multiple files) :
Code:
copy /B data.ext4.win001 + data.ext4.win001 + data.ext4.win001 + data.ext4.win001 output.tar
Click to expand...
Click to collapse
Thanks to this, I was having a bad time viewing each of the data.ext4.win000 etc. etc. can't handle by windows I think. Looking for solution from google and I end up here. Thank you my friend. :good:
zidane02 said:
Thanks to this, I was having a bad time viewing each of the data.ext4.win000 etc. etc. can't handle by windows I think. Looking for solution from google and I end up here. Thank you my friend. :good:
Click to expand...
Click to collapse
if you want to explore twrp backup files on windows:
- rename i.e. data.ext4.win000 to data.ext4.tar and open that .tar file with winzip or winrar (whichever reads .tar compressed files) - same goes for .win001 etc...
btw just a sidenote - twrp doesn't backup your personal media files (photos, videos, etc)
I know I'm bumping a super old thread in a sorta old forum area, but Google brought me here. I am trying to browse a TWRP backup but I have a feeling I need to do a bit more fussing around. The backup is split into data.ext4.win000 through data.ext4.win007 and each of the parts has an accompanying .md5 with the same naming structure (ie. data.ext4.win000 and data.ext4.win000.md5.) There's also a data.info file as well.
The system backup is the exact same as described above for the data, except it's only 2 parts (system.ext4.win000 and system.ext4.win001, with the accompanying md5 files and the info file.)
Can someone provide a bit of guidance? I'm using a Windows 7 Home Premium machine.
I'm in the same situation cognitivedissonance is. Any help to put us on the right direction?
The answer for one question would be beneficial and highly appreciated: in which format the data.ext4.win00x files are ?
cognitivedissonance said:
I know I'm bumping a super old thread in a sorta old forum area, but Google brought me here. I am trying to browse a TWRP backup but I have a feeling I need to do a bit more fussing around. The backup is split into data.ext4.win000 through data.ext4.win007 and each of the parts has an accompanying .md5 with the same naming structure (ie. data.ext4.win000 and data.ext4.win000.md5.) There's also a data.info file as well.
The system backup is the exact same as described above for the data, except it's only 2 parts (system.ext4.win000 and system.ext4.win001, with the accompanying md5 files and the info file.)
Can someone provide a bit of guidance? I'm using a Windows 7 Home Premium machine.
Click to expand...
Click to collapse
To browse the "system.ext4.winxxx" files, simply add at the end of the file ".tar" and decompress them in the same folder created by the first file.
The MD5 is a type of Checksum file wich is created just to check the integrity of the backup file is linked to.
the gladiator said:
I'm in the same situation cognitivedissonance is. Any help to put us on the right direction?
The answer for one question would be beneficial and highly appreciated: in which format the data.ext4.win00x files are ?
Click to expand...
Click to collapse
They are compressed in TAR format.
Mehdiway said:
For windows (if you have multiple files) :
Code:
copy /B data.ext4.win001 + data.ext4.win001 + data.ext4.win001 + data.ext4.win001 output.tar
Click to expand...
Click to collapse
Actually the file numbers should increment, using the above example:
Code:
copy /B data.ext4.win001 + data.ext4.win002 + data.ext4.win003 + data.ext4.win004 output.tar
In the example you're appending a file to itself over and over.
forkup said:
Actually the file numbers should increment, using the above example:
Code:
copy /B data.ext4.win001 + data.ext4.win002 + data.ext4.win003 + data.ext4.win004 output.tar
Click to expand...
Click to collapse
In most cases that should be;
Code:
copy /B data.ext4.win000 + data.ext4.win001 + data.ext4.win002 + data.ext4.win003 + data.ext4.win004 output.tar
And the other (uncompressed) .win image-files (like system_image.emmc.win) can be read with a tool like Ext2Read.
Mehdiway said:
For windows (if you have multiple files) :
Code:
copy /B data.ext4.win000 + data.ext4.win001 + data.ext4.win002 + data.ext4.win003 output.tar
Click to expand...
Click to collapse
Unfortunately, thats wrong. It might work with tar --ignore-zeros (-i) option but only for uncompressed archives.
Do not combine the data.ext4.win* files into one file before accessing. These are single standalone tarball archives (gzip compressed sometimes) you should rename and unpack for each own
I am also seeking a correct and up-to-date answer for this. I have TWRP 2.8.7.0 and multiple .win files, .md5 files and data.ext4 files in my SD Card. Is renaming archives enough to browse in 7zip? Is there any special tool for this, or do we also combine/merge multiple files into one?
Thanks a lot!
Can anyone here shed any light on my TWRP backup browsing issue described here? Thanks

convert tar to zip?

I've been scouring the interweb looking for a way to take a stock tar file and convert it to a zip file that will flash with twrp. I know it can be done, but thus far I'm not happy with the processes I've found... how do you guys do it?
The stock TAR files contain partitions in IMG format - an all in one file system, and in this case using EXT4 formatting.
In order to create a ZIP, you need to access the files on the partition, which means finding a way to mount those IMG partitions to copy their contents, or find a piece of software to extract from them w/o mounting. Since they are EXT4, you can probably assume a Windows solution isn't available (EXT4 is Linux). Some utilities may exist to handle EXT4 on Windows, but finding one that knows EXT4 and can extract/mount an IMG file is pretty specific.
EDIT : found a utility for you - http://forum.xda-developers.com/showthread.php?t=2285831
If you can somehow get the files out of the archive, you'll need to find a tutorial on the structure of a flashable ZIP. Generally, its just folders and files but there is also a META-INF folder, scripts to install and set permissions, etc. There are likely threads here on XDA that can detail these steps.
Spitzaf, thanks so much! I was hoping for just such a tool

Categories

Resources