How to read and extract Tab S firmware .tar.md5 files - Galaxy Tab S Q&A, Help & Troubleshooting

In the past, for e.g. my 3-4 year old Samsung galaxy tab, I was able to extract those firmware files (the ones you flash with Odin), by using the trick described in many places... Unzip, run sgs2toext4.jar on the .img file, then mount resulting .img.ext4 in Linux Reader.
On the files for Tab S, sgs2toext4.jar is failing. Like it has done for other devices, see e.g. post #48 at link below. (it endlessly loops the file name dropped into the program window).
http://forum.xda-developers.com/showthread.php?t=2138885&page=5
What's the way to read these files, on Windows?
Thanks!

You need simg2img to convert to a raw image.
Here is the windows version, rename your .img file to system.img then run convert.bat. You can view the files with ext2explorer.exe or Linux reader.
simg2img

Thanks very much.
That worked like a treat.

Related

[Q] How to extract firmware package via Kies Firmware Update

can u point out the folder???
It resides in the User Temp folder of your windows user profile.
And is deleted as soon as the firmware upgrade is completed on your phone.
can you post the exact compressed file name..what zip utility are you using.
I know winzip is suck..cant unzip alot of stuff.
What size is the package file ?
if the package is stored on non-english characters..that post problem too.
Its just any random file name ending with a TMP extension. Its about 257MB.
e.g. tmp2EFA.tmp
Still no leads to opening this file.
Post the first line of the file: some formats are identifiable based on their opening signature.
Sent from my GT-I9000 using XDA App
i2umi said:
Its just any random file name ending with a TMP extension. Its about 257MB.
e.g. tmp2EFA.tmp
Still no leads to opening this file.
Click to expand...
Click to collapse
What unzip program are you using ?
Can you try change the extension to .7z and use WinRar to unzip it..Winzip no go
Before Kies starts to flash the firmware, it decrypts the .tmp file to .zip file in the same directory. When Kies update window says "Extracting binary file" or something like that, you can copy the zip file from temp directory. It contains one tar and one dll file. Tar file can be flashed with Odin
Norpa76 said:
Before Kies starts to flash the firmware, it decrypts the .tmp file to .zip file in the same directory. When Kies update window says "Extracting binary file" or something like that, you can copy the zip file from temp directory. It contains one tar and one dll file. Tar file can be flashed with Odin
Click to expand...
Click to collapse
If that's the case, are there any other ways to decrypt this file back to zip directly than doing the whole upgrade thing again just for the zip?
hmanxx said:
What unzip program are you using ?
Can you try change the extension to .7z and use WinRar to unzip it..Winzip no go
Click to expand...
Click to collapse
Tired all. no go.
i2umi said:
Tired all. no go.
Click to expand...
Click to collapse
Use the method given on post #8

Img files...

I was wondering if ther was a way to browse the img files created when you make a Nandroid backup. I sorta forgot t make a backup of swype.apk before I themed it with Metamorph. It looks nice and all but I want the OG handy in case I get tired of looking at it. Thanks guys.
Samsung Epic 4g
unyaffs
please do a search next time (even just google something like, "extract nandroid img files"
http://code.google.com/p/unyaffs/downloads/list
made for linux, but if you know a bit of c, you can probably change it to work with windows, maybe I will do that if I have some time this week.
********OR********
http://jiggawatt.org/badc0de/android/unyaffs-x86-win.zip
or http://www.4shared.com/get/fgryPnPx/unyaffs-windows.html
for windows..... instructions below apply for both
if not included in the zips above, cygwin1.dll is included as an attachment of this reply.
open up a command line, in windows vista/7 just press start and then type cmd press enter and change the directory to the folder with the unyaffs and the img in it. in xp press start>run>cmd... then the same
the usage is: unyaffs /path/to/img
example:
(if unyaffs.exe and system.img are both in c:\temp)
"c:\temp> unyaffs system.img"
note: the '/' is the way linux determines the pathname of a file and since it is built using cygwin(a file allowing for windows) it is preferrable that the path to the actual file is in unix POSIX format ie: / instead of \ between folders and files.
*********WARNING************
this will extract to directory that unyaffs binary is in.
Thanks. Good to know and have. Also sorry for not searching.
Samsung Epic 4g

[TOOL] Tools for file extraction of system.img and TAR MD5 for ODIN flash

Here are the tools needed for file extraction of system.img and
TAR MD5 packing for ODIN flash, it means you could do your package with only the files to want to flash in ODIN, for me this tools are very useful.
ALL IS WORKING FLAWLESS WITH LOLLIPOP
http://www23.zippyshare.com/v/4v1wFBtL/file.html
Explanation:
------
For unpacking the system.img
NEWIMG2EXT2 system.img systemext2.img <- It converts ODIN images to EXT2 filesystem
Read the file systemext2.img with ext2explore and extract any file you want
NOTE: newimg2ext2 is renamed from the original file name SVAImgUnpack, credits to @svadev
-------
For packing files for ODIN, I made an example file that is named modem2tarmd5.bat, this pack modem.bin into modem.tar.md5 ready to be flashed with ODIN,
edit the .bat and use with the files you like.
Yes!! I have asked countless people and put a thread up but nobody answered. Thank you very much for this tool! I used to use EXT2EXPLORE on KitKat with my S4 Mini, now I can use it on my S6. Thank you!!
citytrader said:
Here are the tools needed for file extraction of system.img and
TAR MD5 packing for ODIN flash, it means you could do your package with only the files to want to flash in ODIN, for me this tools are very useful.
ALL IS WORKING FLAWLESS WITH LOLLIPOP
http://www23.zippyshare.com/v/4v1wFBtL/file.html
Explanation:
------
For unpacking the system.img
NEWIMG2EXT2 system.img systemext2.img <- It converts ODIN images to EXT2 filesystem
Read the file systemext2.img with ext2explore and extract any file you want
NOTE: newimg2ext2 is renamed from the original file name SVAImgUnpack, credits to @svadev
-------
For packing files for ODIN, I made an example file that is named modem2tarmd5.bat, this pack modem.bin into modem.tar.md5 ready to be flashed with ODIN,
edit the .bat and use with the files you like.
Click to expand...
Click to collapse
I'm FRP boot loop locked on my G928W8 and I can't fix it because stock firmware isn't available on sammobile yet. Can this tool be used by someone with the stock firmware to pull it off and fix my problem? Does it require root to make the image?
I need a stock firmware image before the battery runs down even while off. So if someone can extract their stock firmware then it could really save my phone. Is this something the tool could be used for, or would the md5 not be the same as the actual stock firmware so the FRP lock would stay?
thismonk said:
I'm FRP boot loop locked on my G928W8 and I can't fix it because stock firmware isn't available on sammobile yet. Can this tool be used by someone with the stock firmware to pull it off and fix my problem? Does it require root to make the image?
I need a stock firmware image before the battery runs down even while off. So if someone can extract their stock firmware then it could really save my phone. Is this something the tool could be used for, or would the md5 not be the same as the actual stock firmware so the FRP lock would stay?
Click to expand...
Click to collapse
You need someone that can dump the partitions of their phone and flash that partitions to your phone, you need to understand a bit the procedure before flashing with ODIN
citytrader said:
Here are the tools needed for file extraction of system.img and
TAR MD5 packing for ODIN flash, it means you could do your package with only the files to want to flash in ODIN, for me this tools are very useful.
ALL IS WORKING FLAWLESS WITH LOLLIPOP
http://www23.zippyshare.com/v/4v1wFBtL/file.html
Explanation:
------
For unpacking the system.img
NEWIMG2EXT2 system.img systemext2.img <- It converts ODIN images to EXT2 filesystem
Read the file systemext2.img with ext2explore and extract any file you want
NOTE: newimg2ext2 is renamed from the original file name SVAImgUnpack, credits to @svadev
-------
For packing files for ODIN, I made an example file that is named modem2tarmd5.bat, this pack modem.bin into modem.tar.md5 ready to be flashed with ODIN,
edit the .bat and use with the files you like.
Click to expand...
Click to collapse
How can we use it;;it gives wrong parameter if executed.needs editing;;the newimgext2 ??
citytrader said:
For unpacking the system.img
NEWIMG2EXT2 system.img systemext2.img <- It converts ODIN images to EXT2 filesystem
Read the file systemext2.img with ext2explore and extract any file you want
Click to expand...
Click to collapse
Works fine ! I tried a lot of methods to do the same thing, of firmware Lollipop Samsung Galaxy S6 and S5 neo. This method is the only one which works. Thanks !
Very good love it, works even on Nougat (S7).

Need help finding .tar or .md5 file to flash back to stock.

Hello all, I need some help finding the .tar or the .md5 file from the stock ROM zip file (Tab Pro 8.4).
I am trying to flash / revert back to stock ROM and recovery, since I am giving this tablet to my nephew. I've downloaded the official firmware directly from Samsung, I've downloaded Odin V3.07 and the samsung drivers are installed on my laptop. I've used Odin before, to flash files (months ago), but where I'm getting stuck is on Odin when I go to select the .tar or the .md5 file form the zip, I can't locate the files. I've extracted them several times using different methods, but not a single time have I been able to extract a .tar or .md5 file, all I get is: META-INF folder, system folder and boot disk image, no .tar or .md5 file anywhere in the folders either.
Am I an idiot here or what am I doing wrong that I don't get the .tar or .md5 file?
Any help is appreciated, thanks!
i am not sure where you downloaded it from. i took it from sammobile and the name of the zip is: T320XXU1BNI1_T320DBT1BNJ1_DBT.zip inside it being a file named: T320XXU1BNI1_T320DBT1BNJ1_HOME.tar.md5
PS: i have a german device thats why the DBT code...please download yours...
mospantagruel said:
i am not sure where you downloaded it from. i took it from sammobile and the name of the zip is: T320XXU1BNI1_T320DBT1BNJ1_DBT.zip inside it being a file named: T320XXU1BNI1_T320DBT1BNJ1_HOME.tar.md5
PS: i have a german device thats why the DBT code...please download yours...
Click to expand...
Click to collapse
I am downloading it one more time from sam mobile just to make sure. How did you extract the zip (what program)? 7zip, winrar, etc?
i think i know whats going on. i use winrar for windows you probably use something else. inside .zip there is a .md5 file but inside .md5 file there are meta folders etc. some software consider it being an archive inside an archive and it doesn't even bother to tell you that probably it's extracting folders directly...
mospantagruel said:
i think i know whats going on. i use winrar for windows you probably use something else. inside .zip there is a .md5 file but inside .md5 file there are meta folders etc. some software consider it being an archive inside an archive and it doesn't even bother to tell you that probably it's extracting folders directly...
Click to expand...
Click to collapse
use 7 zip, there should be a .tar.md5 in the .zip only extract the .tar.md5. dont extract anything from the tar.md5. just select the tar.md5 in odin after you put your device in download mode

LG G7 G710EM sof. ver V30f-EUR-XX root

This morning I deleted my system camera app and that made my phone bootloop. After some trickery I managed to install a new version but lost all my photos and files along with root. Can I get a tutorial how to create my own boot image with magisk so I can hopefully recover some of the photos. Thank you
Hey, there might be more ways, but this is the one I follow everytime I root my g7.
Download the firmware (.kdz file). You can get that here.
In the meantime (the download will take some time) you can search and download a tool called "LG Firmware Extract", mine is v1.2.6.1. If you struggle finding it, you can download the one I attached (for Windows).
Once both are downloaded, open the firmware extractor and there click "Open" next to "KDZ File" label and locate the .kdz file you just downloaded. You can also type in the file path instead of locating.
In the table of files below, check the largest file starting with G71030f and click "Extract KDZ"
In the working directory (marked as "Working folder ..." above the table) you should now find a file named after the file you checked. Locate that one on "DZ File" row by clicking "Open" next to it.
Now in the second table, find a file called boot.img_65286, check, Extract DZ.
The file should be in the same directory previous one (G71030f...) was. Rename it to boot.img.
Send the boot.img to your phone
Install Magisk Manager, open, click "Install magisk"
On method selection choose "select and patch a file" and pick the boot.img file and proceed.
That's it, you should be told where your patched image sits.
In case you want to skip steps 1 to 7, I attached a boot.img file. I also attached a patched boot.img, since I did it for mine, too.
BTW if you choose to download the firmware extractor from the attached files, you can find a short tutorial on how to extract boot image in a text file inside.
Hope it still helps you.

Categories

Resources