Question How do I unpack the images from super.img? - Samsung Galaxy S22

I downloaded a samsung galaxy s22 Odin firmware and unpacked the zip and the AP tar file and then I un lz4'd the super.img, unsparsed it and then I ran lpunpack on the unsparsed image to get unreadable images

Have you used one of the following?
Extract system.img,vendor.img and product.img from super.img
After lots of search i found a way to extract those img file from super.img What is need? 1.Computer with linux os. extract zip file from this post and place your super.img in same location where you extract.. then run below cmd... simg2img...
forum.xda-developers.com
super_img_lpmake_lpunpack.zip | by MrWaehere for Utilities
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com

ze7zez said:
Have you used one of the following?
Extract system.img,vendor.img and product.img from super.img
After lots of search i found a way to extract those img file from super.img What is need? 1.Computer with linux os. extract zip file from this post and place your super.img in same location where you extract.. then run below cmd... simg2img...
forum.xda-developers.com
super_img_lpmake_lpunpack.zip | by MrWaehere for Utilities
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com
Click to expand...
Click to collapse
I have. I can get system.img out but I can't open it. I think it's a f2fs partition but I haven't found any tools that can extract files from it

It seems on newer firmware this method of unpacking and extracting system.img out of super.img no longer works. It seems now that when you extract system.img from super.img.raw it gives you a file that reads just as data and does not have the ext4 filesystem magic header bytes.
Have uploaded two screenshots to show how super.img.raw looks and how system.img looks after extraction from super.img. Any thoughts on this?
This firmware is being pulled from latest tar files for SM-S901U

Update, am working on a way and almost got it now. Will probably create a post on this once done and link from here. If you dont hear back from me, i failed. :'(
UPDATE: had some luck following this guys tutorial although a little different was able to extract files. Still cant mount but much closer. Device is f2fs file system. The reason it's not working is most methods on xda are for ext4
How to Extract F2FS Image from Android Device Flash - Baremetallics
How to Extract F2FS Image from Android Device Flash
baremetallics.com

kalexander7 said:
Update, am working on a way and almost got it now. Will probably create a post on this once done and link from here. If you dont hear back from me, i failed. :'(
UPDATE: had some luck following this guys tutorial although a little different was able to extract files. Still cant mount but much closer. Device is f2fs file system. The reason it's not working is most methods on xda are for ext4
How to Extract F2FS Image from Android Device Flash - Baremetallics
How to Extract F2FS Image from Android Device Flash
baremetallics.com
Click to expand...
Click to collapse
Is this also work for other's like erofs?

Mr Hassan said:
Is this also work for other's like erofs?
Click to expand...
Click to collapse
I doubt it although it may be alike using same linux tools like fsck. Erm I'm still stuck on trying to get this f2fs image too mount. It seems corrupt and although I was able to extract libs and apks they're coming out corrupted. Anyone in the community have any knowledge in this area?

kalexander7 said:
I doubt it although it may be alike using same linux tools like fsck. Erm I'm still stuck on trying to get this f2fs image too mount. It seems corrupt and although I was able to extract libs and apks they're coming out corrupted. Anyone in the community have any knowledge in this area?
Click to expand...
Click to collapse
Bro samsung have many dev's to mount fsf2 and already many dude done
The erofs not possible

Mr Hassan said:
Bro samsung have many dev's to mount fsf2 and already many dude done
The **** is erofs
Click to expand...
Click to collapse
what?

Related

[Q] Mount/UnPack SYSTEM.IMG Files from 1.29.728.12

I cannot find a method in Linux or Windows that will allow me to access the files in the system.img partition image from:
RUU_ENDEAVOR_U_ICS_40_hTC_Asia_SEA_WWE_1.29.728.12_Radio_1.1204.105.14_release_261350_signed.exe
I have never had a problem "unpacking" system.img files from other HTC phones using unyaffs or even in Windows with WinImage for EXT2/3/4 partitions.
Obviously many Devs have had success with the HOX system.img! Could someone please tell me what file system the system partition uses AND/OR reveal the correct approach to accessing the files within the img?
I presume the partition formats are identical in:
RUU_ENDEAVOR_U_ICS_40_hTC_Asia_SEA_WWE_1.28.728.9_Radio_1.1204.103.14_release_256493_signed.exe
...so I suppose there's no point in making an attempt with its system.img either!
Any help will be greatly appreciated!!
Thanks in advance.
BTW: I'm not one who asks for assistance as his 1st move.
I have been searching for resolution to this problem for @least a week!
Using appropriate keywords the best I have come up with is either others in this same predicament or suggested remedies which are not effective.
The overall picture I have got is that those with the solution seem reluctant to share the knowledge, which I find strange in development communities.
if you want just access to files inside the img, in windows use this jar attached to convert it to ext4 and then mount with DiskInternals Linux Reader.
or in linux use this tool to unpack.
http://forum.xda-developers.com/showthread.php?p=28837507#post28837507
don't even try to repack it will not work.
if you know how it posible to repack files to this img format please let me know.
Thanks heaps avicohh!
I solved the problem only a few hours before your post came in.
I used a slightly different approach through linux but basically same process & result.
If you follow this:
http://forum.xda-developers.com/showthread.php?t=1081239
you'll be able to unpack AND repack but it's done in linux.
I used Ubuntu 12.04 LTS (64bit) to compile & use the ext4_utils in the thread above.
Since you were so kind to answer my query please feel free to PM me if i can help you!! My use of the forum is sometimes sporadic though, unfortunately.
EDIT: Sorry, just realised we both had the same thread! So it doesn't work for repacking?? I'll see if I can find something that works.
Obviously something does but there's not as much free sharing of really useful stuff as I would have expected with this kind of thing.
Yap.. is the same thread.
probably the odin (samsung) img and the stock htc img they not exactly the same format.
i seraching after sulution to this thing because i'm trying to make custom rom to be able to flash on device with stock rom/locked bootloader from the stock recovery like the ruu firmwares.

[TUTORIAL] How To Extract Files From a TAR.MD5 Stock ROM (SPH-L710)

I recently did this for the E4GT and have been asked to do it here as well.
I've received a TON of PM's and emails asking how to do this and I've decided to do a write-up for everyone. Now to start off, this does not automatically make you a Super Duper Developer, this does not show you how to make your own TAR ROMs, nor does it show you how to make your own Odin One-Clicks. What it does do is show you how to pull files from those stock leaked/official ROMs so that you can proceed to make yourself into a Super Duper Developer!
In essence if the Developer knows what they are doing they could use this method to extract all the files from the build and could then add them to a ZIP and have a stock odexed ROM within minutes and do it all through Windows! Depending on time I may or may not do a tutorial on that as well...
So let's begin!
We've all seen those pesky TAR.MD5 packages that we can flash through Odin. How often have you wanted to look inside them and see what is inside before flashing? There are several ways to do it and the most common answer requires Linux and Dsixda's Kitchen utility. This tutorial gives you the ability to do that through Windows and without having to extract the full ROM. These instructions are specific to the Samsung Galaxy S3 (all variants) but can be used on most Samsung Galaxy phones.
Each TAR.MD5 release contains multiple files. Each of these files corresponds to a specific partition on your device. These files are formatted to be mounted by your device but not by a computer. We will be converting them from a .img.ext4 partition type to an ext4.img type partition so we can mount them and read them through Windows. For this tutorial we will be opening up the system.img.ext4 (the system files partition).
Before you dive in there are a few things you'll need.
- A PC running Windows.
- A stock TAR.MD5 release. Several are available at www.rwilco12.com.
- DiskInternals Linux Reader (must be installed on the Windows PC). You can download DiskInternals Linux Reader here.
- SGS2toEXT4 Utility available here. *Be sure to extract the JAR file from the ZIP archive.
- 7-Zip available here.
For the rest of the tutorial please visit my site: www.rwilco12.com
Enjoy!
Reserved.
Awesome! First!
Sent from my SPH-L710 using xda app-developers app
great it's work fine with me on windows8
if you let me a noop question
can we cook the rom in this way ? i mean after upack the image we can edit the files or the apk or the font and repack it again as a md5.tar extension
is that possible
regards
IRoN MaN9 said:
great it's work fine with me on windows8
if you let me a noop question
can we cook the rom in this way ? i mean after upack the image we can edit the files or the apk or the font and repack it again as a md5.tar extension
is that possible
regards
Click to expand...
Click to collapse
Unfortunately no. That part does require Linux but this could help simplify the process if you prefer a Windows environment.
رد: [TUTORIAL] How To Extract Files From a TAR.MD5 Stock ROM (SPH-L710)
rwilco12 said:
Unfortunately no. That part does require Linux but this could help simplify the process if you prefer a Windows environment.
Click to expand...
Click to collapse
Relly sad hope that you can develop this threat in the future so we can cook the stock roms anyway thank you very much for your answer
Regards
IRoN MaN9 said:
Relly sad hope that you can develop this threat in the future so we can cook the stock roms anyway thank you very much for your answer
Regards
Click to expand...
Click to collapse
I might have some other stuff in the works for you guys here soon.
رد: [TUTORIAL] How To Extract Files From a TAR.MD5 Stock ROM (SPH-L710)
rwilco12 said:
I might have some other stuff in the works for you guys here soon.
Click to expand...
Click to collapse
I can't wait to see your next work
Hey after installing linux reader on windows it shows mf5 file in HEX manner , it dont convert it in .zip file..
any way to do it?
mjp93 said:
Hey after installing linux reader on windows it shows mf5 file in HEX manner , it dont convert it in .zip file..
any way to do it?
Click to expand...
Click to collapse
You need to extract it from the img file by saving it. After extracting you'll need to package it in a ZIP.
I followed the guide to the t and its saying that the image is invalid. Any ideas?
macasus76 said:
I followed the guide to the t and its saying that the image is invalid. Any ideas?
Click to expand...
Click to collapse
What device and what files are you using?
Using windows Vista x64 the file is a I537UCUCNE3 stock odin image. I created a .img file using ext4 tool you posted but the Linux viewer says invalid
The image here shows my created .img file on the left, the Linux reader on the right and the error in the middle
This tutorial is no good anymore.
Finally !!
I found how do that after to waste a day to search one real solution.
Is only to use the ClassyKitchen free version for windows.
I found it here:
https://forum.xda-developers.com/chef-central/android/tool-classykitchen-android-roms-t3862584
Basically, after to open the program, you will choose "create new project" on the tab "Projects utils", and choose the firmware from PC or from mobile root. So, the program will extract the folders and files to PROJECT/system folder, and you will can access them by windows explorer, including the app folder with all original apks.
I was looking for a way to restore the calculator apk after delete it before to find another to replace it.
[ ].

[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).

[h815] Ripping OFF LGBloatware & Googleware from KDZ before flashing onto G4 ??

Friends !
I wanted to rip off some LG Software ( eg. Weather, Calender, Health etc) and ALL Google
Software from my KDZ File and flash this modified KDZ then onto my G4.
I´ve tested out some Custom Roms like LineageOS, Resurection and some other, all Google Free but they all drain out my Batterie fast or has some other issues.
The best working Rom for me is the Original V20g.
My G4 is rooted with Magisk. In TWRP i used GKillerExtreme.zip to eliminate all Google Stuff but after cleaning there are some Google Apps still on the Phone and can´t delete them.
So my Idea is to modify my KDZ file before flashing on the Phone.
------------------------------
I followed these Post to extract all Files from the KDZ:
https://forum.xda-developers.com/showthread.php?t=2666967
After extracting the *.dz file also i have a lot of *.bin files now.
So, how to working on with these *.bin Files now, how to open them, delete some Files are contained in the *.bin File and rebuild a flashable File?
Maybe there is a existing workaround here on XDA ?
Thank you all for a little Help.
-Ralf-
Foto-AG said:
Friends !
I wanted to rip off some LG Software ( eg. Weather, Calender, Health etc) and ALL Google
Software from my KDZ File and flash this modified KDZ then onto my G4.
I´ve tested out some Custom Roms like LineageOS, Resurection and some other, all Google Free but they all drain out my Batterie fast or has some other issues.
The best working Rom for me is the Original V20g.
My G4 is rooted with Magisk. In TWRP i used GKillerExtreme.zip to eliminate all Google Stuff but after cleaning there are some Google Apps still on the Phone and can´t delete them.
So my Idea is to modify my KDZ file before flashing on the Phone.
------------------------------
I followed these Post to extract all Files from the KDZ:
https://forum.xda-developers.com/showthread.php?t=2666967
After extracting the *.dz file also i have a lot of *.bin files now.
So, how to working on with these *.bin Files now, how to open them, delete some Files are contained in the *.bin File and rebuild a flashable File?
Maybe there is a existing workaround here on XDA ?
Thank you all for a little Help.
-Ralf-
Click to expand...
Click to collapse
Don't know how you would rebuild it - I guess you would need to use a twrp script to flash them onto the partitions
As for modifying them, depends on the bin file. For system, you can mount it on Linux to a folder
E.g.
Code:
mkdir ./extractedSystem
sudo mount ./system.bin ./extractedSystem
Then you can access it through that folder. When you are done...
Code:
sudo umount ./extractedSystem
Extract: SALT
Mount: SALT (Advanced menu)
Flash: SALT (v4)
Ah yea and btw: you can't create your own kdz. Well you can but you can't flash it as it must be signed.
Sent from my LG-H815 using XDA Labs
ThePiGuy said:
Don't know how you would rebuild it - I guess you would need to use a twrp script to flash them onto the partitions
As for modifying them, depends on the bin file. For system, you can mount it on Linux to a folder
E.g.
Then you can access it through that folder. When you are done...
Click to expand...
Click to collapse
Thank you very much. To mount a bin file as a Drive in Linux (FWUL ) is the Key. All other steps i will find in the next Days. Thx again.
steadfasterX said:
Extract: SALT
Mount: SALT (Advanced menu)
Flash: SALT (v4)
Ah yea and btw: you can't create your own kdz. Well you can but you can't flash it as it must be signed.
Click to expand...
Click to collapse
Thank you steadfasterx. I was think about to check Salt out too. I was reading about Salt alot and give it a try in the evening. Thx.
Foto-AG said:
Thank you steadfasterx. I was think about to check Salt out too. I was reading about Salt alot and give it a try in the evening. Thx.
Click to expand...
Click to collapse
when you use FWUL SALT is included
the flashing part of SALT is still in beta testing state thats why v4 is not (public) available yet ..
.
ThePiGuy said:
Don't know how you would rebuild it - I guess you would need to use a twrp script to flash them onto the partitions
As for modifying them, depends on the bin file. For system, you can mount it on Linux to a folder
E.g.
Then you can access it through that folder. When you are done...
Click to expand...
Click to collapse
Hey.
Doesnt work for me. Getting error in Terminal.
Mount: /home/android/extractedSystem: wrong fs type, bad option, bad superblock on /dev/loop1, missing codepage or helper program, or other error.
So, im not so involved into Linux and have no idea whats wrong. Ive test with all .bin files but the error message pops up on every.bin file
My FWUL version is 2.7, the 8GB version on USB Stick.
Im pretty sure i did something wrong :angel:
Greetings
Ralf
steadfasterX said:
when you use FWUL SALT is included
the flashing part of SALT is still in beta testing state thats why v4 is not (public) available yet ..
.
Click to expand...
Click to collapse
Hey....
Hmmm no can not find SALT. No Icon, no Folder, unknown command in Terminal. Search term for salt give me no result.
Using FWUL 2.7 8GB version. FWUL did some little updates but still no SALT.
-Ralf-
Foto-AG said:
Hey....
Hmmm no can not find SALT. No Icon, no Folder, unknown command in Terminal. Search term for salt give me no result.
Using FWUL 2.7 8GB version. FWUL did some little updates but still no SALT.
-Ralf-
Click to expand...
Click to collapse
Consider to read through whats included in FWUL : https://forum.xda-developers.com/showpost.php?p=70272684&postcount=3
.. there are even screenshots..
.
steadfasterX said:
Consider to read through whats included in FWUL : https://forum.xda-developers.com/showpost.php?p=70272684&postcount=3
.. there are even screenshots..
.
Click to expand...
Click to collapse
Many thx. But i dont have the Samsung and LG Folder on the Desktop.
Will download FWUL tomorrow from XDA. My FWUL was dl from an other Website because i have speed issues when dl from XDA or the Androidhosting Service. More then 5 hrs for dl the FWUL image, somewhere in Texas or other US- State.
Thank you btw for your Support me.
Foto-AG said:
Many thx. But i dont have the Samsung and LG Folder on the Desktop.
Will download FWUL tomorrow from XDA. My FWUL was dl from an other Website because i have speed issues when dl from XDA or the Androidhosting Service. More then 5 hrs for dl the FWUL image, somewhere in Texas or other US- State.
Thank you btw for your Support me.
Click to expand...
Click to collapse
yea AFH can be slow..
you can use a nightly or my mirror here:
http://leech.binbash.it:8008/FWUL/
("stable" contains the 2.7)
btw tonight a new nightly is planned (if all goes well)
steadfasterX said:
yea AFH can be slow..
you can use a nightly or my mirror here:
http://leech.binbash.it:8008/FWUL/
("stable" contains the 2.7)
btw tonight a new nightly is planned (if all goes well)
Click to expand...
Click to collapse
Hey. My little response....
I did it and ripped off most of all the Bloatwares. Google is complete out off my Phone now and don't wont it back. It was a very hard and long process to eliminate all the Stuff. Alot of failures was coming up, alot of new image installings and start again over because i delered some Mainfeatures or essential Routines etc. OMG i don't want do this again in my life lol.
So its better to flash a google free Rom.
Okay, only my little response for this thread and Big Thanks to Steadyfast for the last Supports !

Question System_ext vendor unpack repack

Hello
I want to know when we extract payload
Then its have img files like this
System
System_ext
Vendor
Product
So my question is it this possible to unpack modify and repack and flash back?
Is there any window or linux tool?
Or easy way to done my jon?
Thanks
Not possible?
Google search "repack payload.bin" to start with....
TheGhost1951 said:
Google search "repack payload.bin" to start with....
Click to expand...
Click to collapse
Ahh i think i never explain it very well but let me tell
I dont need to repack as payload.bin
I need to unpack vendor and system to modify and repack
Then Google "unpack repack .img file"....
Maybe something like this?
Editing system.img inside super.img and flashing our modifications
I'm trying to modify my system.img (/system/build.prop) to include support for multi users. After struggling a lot, I've succeeded following your guide (that's an awesome work btw) to unpack, mount, modify, umount and repack super.img. Then...
forum.xda-developers.com
from oxygen 12 oneplus uses the EROFS
[GUIDE] Universal guide for making your partitions inside super read-writable again.
Disclaimer: I'm not responsible for any result of these operations. Please be careful and well prepared. Always have your important data backed up safely on other place. Hello everyone! As far as 2022 and Xiaomi gets their new phones updated...
forum.xda-developers.com
ChrisFeiveel84 said:
from oxygen 12 oneplus uses the EROFS
[GUIDE] Universal guide for making your partitions inside super read-writable again.
Disclaimer: I'm not responsible for any result of these operations. Please be careful and well prepared. Always have your important data backed up safely on other place. Hello everyone! As far as 2022 and Xiaomi gets their new phones updated...
forum.xda-developers.com
Click to expand...
Click to collapse
getting error already tired this
Mr Hassan said:
getting error already tired this
Click to expand...
Click to collapse
You have used the super Partition or the images from the payload.bin ?
ChrisFeiveel84 said:
You have used the super Partition or the images from the payload.bin ?
Click to expand...
Click to collapse
Ofcourse backup super part
But in payload its not super
Its all one by one like system
System_ext vendor odm
So backup make its whole super.img
I already make details thread about this
But not get any help
Mr Hassan said:
Ofcourse backup super part
But in payload its not super
Its all one by one like system
System_ext vendor odm
So backup make its whole super.img
I already make details thread about this
But not get any help
Click to expand...
Click to collapse
From oos 11 or oos 12 ?
ChrisFeiveel84 said:
From oos 11 or oos 12 ?
Click to expand...
Click to collapse
Bro os12
even not able to convert in raw
simg2img.exe super.img super.raw
Invalid sparse file format at header magic
Failed to read sparse file

Categories

Resources