Unpack stock system.img.ext4 - AT&T Samsung Galaxy S 5

Is it possible to unpack stock system.img.ext4 to raw img?
I have tried it in Ubuntu using android-tools-fsutils package but simg2img command comes back saying "Cannot open input file".
Please advise.
Thanks!

mdhandy said:
Is it possible to unpack stock system.img.ext4 to raw img?
I have tried it in Ubuntu using android-tools-fsutils package but simg2img command comes back saying "Cannot open input file".
Please advise.
Thanks!
Click to expand...
Click to collapse
Use Super R's kitchen.

muniz_ri said:
Use Super R's kitchen.
Click to expand...
Click to collapse
Thanks @muniz_ri!
Is there a similar tool for Windows/Cygwin?

mdhandy said:
Thanks @muniz_ri!
Is there a similar tool for Windows/Cygwin?
Click to expand...
Click to collapse
I am not aware of an equivalent Windows tool that can handle the new sammy img's. Likely one out there though....

Related

Open a DZ with DZDecrypt wont work - Any Solution?

Hey,
I've tried to extract a .DZ File from the V20B.kdz but if i use the command dzdecrypt -x 1.dz C:\
there will be an error named "Invalid markers in main header."
Please tell me how to open the DZ to make a flashable zip, please.
Thanks
DerMoonEclipse said:
Hey,
I've tried to extract a .DZ File from the V20B.kdz but if i use the command dzdecrypt -x 1.dz C:\
there will be an error named "Invalid markers in main header."
Please tell me how to open the DZ to make a flashable zip, please.
Thanks
Click to expand...
Click to collapse
did you try this (specifically look at 2nd, 3rd & other posts too, not just op):
http://forum.xda-developers.com/showthread.php?t=2207786
Thats from KDZ to DZ but i need from DZ to System.img, boot.img
DerMoonEclipse said:
Thats from KDZ to DZ but i need from DZ to System.img, boot.img
Click to expand...
Click to collapse
afaik, that's not possible, .dz is encrypted by lg and we don't have a way to decrypt it. don't take my word for it though, maybe someone has found a way, but i haven't read that anyone has managed to do it as of yet.
Ok but how can i make a flashable zip from the kdz ..

[Q] How to extract system.img

how could extract system.img from stock rom? I've tried simg2img and mount, but both not work.
use file command could only get the file as data.
any clues?
Thanks
fireinice said:
how could extract system.img from stock rom? I've tried simg2img and mount, but both not work.
use file command could only get the file as data.
any clues?
Thanks
Click to expand...
Click to collapse
Read--> http://forum.xda-developers.com/moto-x/general/questions-qa-thread-t2404256
You've already been told where to post why are you creating another [Q] thread in General section?
orky87 said:
Read--> http://forum.xda-developers.com/moto-x/general/questions-qa-thread-t2404256
You've already been told where to post why are you creating another [Q] thread in General section?
Click to expand...
Click to collapse
If you notice the post time, you can find the reason. I can not find how to delete this post. And I do use search for forum and google. tried all clues...

Extracting system.img

I've been a member of the Galaxy S3, S4, Galaxy Tab 4 8.0 and now I'm proud member of the Galaxy S6 Gcommunity..
I'm a modder and I have been having a lot of trouble with decompiling and extracting the system.img..
All my old methods will not work like ext4_unpacker...
I've been looking at youtube videos among other things and came up empty..
All I need is a point in the right direction and I can do the rest..
BTW I have the Samsung G920T 128 gig model..
I've tried so many old methods, this is a new device.. I'm likely to be ignored...
But I'd appreciate the help
I dont know much about that stuff but have seen this mentioned before. http://forum.xda-developers.com/galaxy-s5/general/tool-deodex-tool-android-l-t2972025
Really depends on who ya ask for help bro..............
The Sickness said:
Really depends on who ya ask for help bro..............
Click to expand...
Click to collapse
If you don't mind me asking, @thes1ckness what tool do you use to pull a system dump from system.img for s6 firmwares?
As op said I can't seem to find the common method for doing this nowadays.
Alarand said:
If you don't mind me asking, @thes1ckness what tool do you use to pull a system dump from system.img for s6 firmwares?
As op said I can't seem to find the common method for doing this nowadays.
Click to expand...
Click to collapse
The Sickness has said to me in a PM that ImgExtractor_1_3_4 that can be found at http://forum.xda-developers.com/showthread.php?t=2667610 is an excellent simple application to extract the system.img file.. It has worked on all system.img files current and old..
Zaphodspeaks said:
The Sickness has said to me in a PM that ImgExtractor_1_3_4 that can be found at http://forum.xda-developers.com/showthread.php?t=2667610 is an excellent simple application to extract the system.img file.. It has worked on all system.img files current and old..
Click to expand...
Click to collapse
Thanks man.
Alarand said:
Thanks man.
Click to expand...
Click to collapse
I'm just passing it on.. It was @The Sickness that pointed me in the right direction..
alternative solution for img extraction/fix here
How do you compile it? That way its back into a Odin compatible system.IMG?
1619415 said:
How do you compile it? That way its back into a Odin compatible system.IMG?
Click to expand...
Click to collapse
You use Winrar to zip it up with the appropriate file structure and flash in recovery. That's if you extracted files from the image.
For a tar, follow this....
http://forum.xda-developers.com/showthread.php?t=2665283
1619415 said:
How do you compile it? That way its back into a Odin compatible system.IMG?
Click to expand...
Click to collapse
For remaking system.img you do need make_ext4fs:
make_ext4fs -s -S file_contexts -l <system size> -a system system.img /directory/to/system/folder
System size can be found by dh command
File_contexts should be extracted from kernel ramdisk

How to convert boot.bin into boot.img??

I'm unable to figure out how to convert the boot.bin file I extracted from the firmware.kdz file. Magic iso won't convert the bin file to img file. So do I just change the extension from .bin to .img? Something tells me it's not that simple.
Btw I'm asking because I'm trying to build a rom. So I'm gonna need this boot.img to be able to boot in my rom. Any help is appreciated.
Or if someone could point me in the right direction for pulling the boot.img from my phone with adb, that would work too. All the guides I found are for different devices with different partition names. And a lot of the commands aren't working for me.
Sent from my LG-H811 using Tapatalk
Mikekelso421 said:
I'm unable to figure out how to convert the boot.bin file I extracted from the firmware.kdz file. Magic iso won't convert the bin file to img file. So do I just change the extension from .bin to .img? Something tells me it's not that simple.
Btw I'm asking because I'm trying to build a rom. So I'm gonna need this boot.img to be able to boot in my rom. Any help is appreciated.
Or if someone could point me in the right direction for pulling the boot.img from my phone with adb, that would work too. All the guides I found are for different devices with different partition names. And a lot of the commands aren't working for me.
Sent from my LG-H811 using Tapatalk
Click to expand...
Click to collapse
You answered the question urself... Just change the file extension from bin to img.. Ive done that before and it works... U can do a adb pull dev/block/bootdevice/by-name/boot.img
Google~Android said:
You answered the question urself... Just change the file extension from bin to img.. Ive done that before and it works... U can do a adb pull dev/block/bootdevice/by-name/boot.img
Click to expand...
Click to collapse
I'll try it and let you know if I have success. Thanks for your response.
Sent from my LG-H811 using Tapatalk
Did it work, or not? I have the same question.
If you have root you can use app 'Partitions Backup & Restore' by Wanam from app store to pull any partition from your phone.
fofopuka said:
Did it work, or not? I have the same question.
Click to expand...
Click to collapse
it work for me i just fix my Tecno WX3P that stuck at boot
Tech_Savvy said:
You answered the question urself... Just change the file extension from bin to img.. Ive done that before and it works... U can do a adb pull dev/block/bootdevice/by-name/boot.img
Click to expand...
Click to collapse
That's what I needed to know !

Question How to unpack .img.lz4 files?

I've been looking through a couple of xda thread about it, found a few solutions. I managed to unpack from the .tar file, got the img.lz4 file and from that the .img and from .img to .img.ext4, but the .ext4 file is too small compared to the original .img file, so I guess the older SVAImgUnpack doesnt do the job correctly and can't open it with ext2explore. Is there any other software to use for this?
Nevermind, I've found a program for it.
Dummen said:
Nevermind, I've found a program for it.
Click to expand...
Click to collapse
which program you used to extract, kindly share it, i need to extract modem files
hahmad78 said:
which program you used to extract, kindly share it, i need to extract modem files
Click to expand...
Click to collapse
I think it was this, Im not sure.

Categories

Resources