Extracting firmware from Samfirmware ROM - Android Q&A, Help & Troubleshooting

I'm trying to extract firmware I downloaded from Samfirmware to look at the contents but having a hard time extracting it.
I extracted the zip file which gave me five tar.md5 files ( AP, BL, CP, CSC AND HOME CSC).
Then, I mounted the md5 and got boot.img.lz4 files. I used unlz4 to extract that and ended up with img.ext4 file
Now how do I extract the ext4 file to mount the IMG file?
Trying to tar -x it doesn't work, neither does renaming to tar then trying to extract

vortexmak said:
I'm trying to extract firmware I downloaded from Samfirmware to look at the contents but having a hard time extracting it.
I extracted the zip file which gave me five tar.md5 files ( AP, BL, CP, CSC AND HOME CSC).
Then, I mounted the md5 and got boot.img.lz4 files. I used unlz4 to extract that and ended up with img.ext4 file
Now how do I extract the ext4 file to mount the IMG file?
Trying to tar -x it doesn't work, neither does renaming to tar then trying to extract
Click to expand...
Click to collapse
With some more research I found the solution.
There's a tool call simg2img . It will convert the ext4 file into an img file which can be mounted directly

Related

[Q] how to extract baseband (amss) from stock rom?

i need to extract the amms inside the ROM (which is a tar.md5 file), I tried to extract it with 7zip, but creating a new .tar with the file and using it to flash the baseband, Odin gets stuck on "download AMSS".
i need the amss from a 5830L, i tried to flash the amss from 2.3.4 stock rom in the russian 2.3.6, but for some reason after that the phone starts to lag, so i think i need the amss from the same version.
anyone know how to extract the amss and create a valid file to flash with?
You need to use Linux/Ubuntu to change the permissions from rwxrwxrwx back to rw-r--r--
Herpderp Adreno + Tegra.
You can only extract the file in 7Zip and repack it to Tar. However, you cannot repack it to a Odin Flashable tar. The way to do it is using either Linux or if on a Windows Machine, then Install Cygwin and run the commands from there. The commands is as follows:
tar -H ustar -c filename1.ext filename2.ext filename3.ext filename4.ext > OdinFlash.tar
Include all files to be packed including their extentions by replacing filename#.ext with the relevant filenames to be packed. The resultant tar will be flashable in Odin.
thanks, work perfectly

XWLPO/Siyah

I've read that the latest 4.0.4 release (XWLPO) still has MMC_CAP_ERASE enabled in it's kernel.
Am I correct in thinking if I replace the zImage file in XWLPO's tar.md5 file with Siyah 3.4.1's zImage file, then flash the firmware through Odin then:
1. I will eliminate the possible brick bug
2. Device will be automatically rooted
I might replace the new bootloader (Sbl.bin) with the old one while I'm at it.
I know I'll have to install Tungstwenty's 4.0.4 camera/video fix after flashing.
Is there anything else I should consider if tweaking the official SamMobile tar file?
Cheers
...
I've tried updating the .tar.md5 archive but I have the following problems/questions:
1. When I open the XWLPO .zip file, as well as the .tar.md5 file, there is an SS_DL.dll file. What is this?
2. When I open the .tar.md5 archive with 7Zip it says "no correct record at the end of the archive"
3. Probably because of this error, if I try to update the archive 7Zip then says "not implemented"
Does anyone know how I can add/replace files in a SamMobile .zip file please?
Thanks
1-Ignore this file. Not needed for nothing.
2-Remove .md5 from the the end of extension .tar.md5 and 7zip open file without problem.
3-7zip does not update tar file. You have to unpack the whole archive and recreate the tar file

[Q] Convert Flashable Zip. files to flashable tar.md5 files via odin

I trying every day to convert a zip file to a tar.md5 flashable file
I found the program cygwin but when i create a tar.md5 file and try ro flash it it gives my directly a fail message

Can't see .tar file after unzip stock ROM (CWM_I9305TDVUENC1-XSA.zip)

I am trying to flash stock ROM (CWM_I9305TDVUENC1-XSA.zip) via ODIN, so I can get reception back on my S3 gt-i9305t. But when I unzip it (using 7zip) I don't see a .tar file all I see is -
META-INF File Folder
system File Folder
tmp File Folder
Even when I do it in ODIN it doesn't see the .tar file
I'm not sure what I'm doing wrong?

How to extract system.img.ext4?

I accidentally deleted DefaultContrainerService.apk and now I can't install apps. Can someone tell how can I extract system.img.ext4 to get it back?
I think Android Kitchen can do that.
Sent from my GT-I9060I using Tapatalk
7-Zip
7-Zip cannot read .img.ext4 files. I used program called sgs2toext4 and now the file is .ext4.img and 7-Zip can read it but it can't extract any .so files. I need to get libdefcontrainer_jni.so from /system/priv-app/DefaultContrainerService/lib/arm.
PetteriM said:
I accidentally deleted DefaultContrainerService.apk and now I can't install apps. Can someone tell how can I extract system.img.ext4 to get it back?
Click to expand...
Click to collapse
Use for that the EXT2 unpacker tool,
https://androidfrog.com/5gt67f
Select Package and then the directory where you want to extract it.
Doesn't work. It can't save that .so file.
same problem here, i try to extract cache.img from S8 firmware (G950FXXU1AQJ1/G950FOXM1AQJ1/G950FXXU1AQJ1/G950FXXU1AQJ1 , 20171018104053) . using ImgExtractor 1.3.7 it extracts , but the extracted zip cannot be opened by any program, with ext4_unpacker (after i fix the img header 4 bytes using sgs4ext4fs) it gives 'list index out of bounds' when i try to extract the zip, using CacheRipperUX it extracts the zip from img but when i try to open the zip using 7-zip it only sees a few files, when i try to open with Winrar it sees full list but cannot extract any of them because it give archive corrupted.
i found a solution: convert the original cache.img (samsung sparse ext4) to raw ext4 using simg2img , and the resulted .img file open with 7-zip and extract the content. My zip content was extracted correctly.
Is there any app for android which can extract .img files like system.img?

Categories

Resources