[Q] converting extracted system.img back to .IMG format - Galaxy Tab 3 Q&A, Help & Troubleshooting

Hi all,
I have googled this but not had any satisfaction.
I've managed to grab the original FW during an udate to my P5220. (took more then a few goes!)
Now another thread pointed me in the direction of ext4_unpacker and ext2explorer(?). Thank you to the author.
So now I have a lovely extracted system.img contents waiting for me to monkey around with.
But I haven't been able to find any info or threads explaining how to convert this directory/filesystem
back into a IMG file, ready to brick my tab on first go with Odin. I'm not worried about converting to a .tar.md5.
After all, if I can't figure out how to make a .tar.md5 I should hand in the keys to my pc. :silly:
Can someone point me in the direction of the appropriate info or a link to another thread?
Many thanks,
Andrew.

You can folow my guide to mount and rebuit system.img. The guide is named [ROOT][T310] Advanced rooting procedure WITHOUT increasing the Flash counter.
Be very careful with the rebuilt command. The "/temp 2000MB" it must be smaler or eqal with the device system total space.
Sent from my SM-T310 using XDA Free mobile app

Cool.
Thanks Powermetza.
Andrew

Related

[Question] How to unpack/repack DHD img files? need a guide.

ok here is my question..
im trying to extract the system.img files to restore some of the original files i changed.
here is the things i want to know in a list
1, Which tool is used to extract those IMG files? guide please. if you do need to compile it please post guide on how to compile as well?
2, how to repack the files into readable Img files which we can use to fastboot flash system with?
3, the shutdown.zip and downanimation.zip what are the requirements? i have sucessfully made a custom bootanimation.zip but failed the downanimation and shutdown. the bootanimation works when i made zip file with store only attributes "no compression", but the other 2 wont work either way..
if i can get this information i would make a general thread about DHD with all the information so it would be easier for anyone to find out all about xda and the development for DHD
example, Radio/Eng S-Off CID-1111111 simunlock, adb commands/tools/guide, cygwin/unyaffs GIMP etc including graphical mods and specific how to's.
please help me out this might reward the newbies alot saving loads of precious time searching.. just like me
rofl edited to change adb to fastboot. sry my bad. stupid typo ;x

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

Is Anyone on OB3 on SGH-I747M(no I747)and are willing to create a debrick.img for me?

I need to debrick my s3 previously running on 4.4.2 OB3. is anyone running OB3 on s3 I747M (not the I747)?
I have the instructions ready. so first, root your phone. If you don't want to root your phone, good bye because I don't need you. Ill get to the next step once someone is willing to help.
I have the OB1 how you make a debrick? do you have a tutorial? i can help u
dragoonmx said:
I have the OB1 how you make a debrick? do you have a tutorial? i can help u
Click to expand...
Click to collapse
ok. so, first, install busybox from the playstore. then, download terminal emulater, as well.
MhikeiMPC12 said:
ok. so, first, install busybox from the playstore. then, download terminal emulater, as well.
Click to expand...
Click to collapse
Done, what's next...
go into terminal app, type the following:
"su"
It will ask you for root access. type Grant.
"busybox dd if=/dev/block/mmcblk0 of=/sdcard/backup.bin bs=1M count=70"
It will create a backup.bin in the root of /sdcard. ipload that file here. if the file type isnt supported, put it in a .zip then upload it using your pc. if you dont have a pc, just rename the end part of the file (.bin) to (.zip) and upload it here.
@dragoonmx
did he died?
Lets forget him. Do you have OB1?
MhikeiMPC12 said:
Lets forget him. Do you have OB1?
Click to expand...
Click to collapse
Hey, im in cm12.1, i need rom stock?
Thank goodness you are back! here is the link for stock:
http://dl.sammobile.com/PV9dRCQlOD0...1tcQExaUQ../I747MVLUFOB3_I747MOYAFOB3_RWC.zip
MhikeiMPC12 said:
Thank goodness you are back! here is the link for stock:
http://dl.sammobile.com/PV9dRCQlOD0...1tcQExaUQ../I747MVLUFOB3_I747MOYAFOB3_RWC.zip
Click to expand...
Click to collapse
could you link me a full tutorial for the debrick?
OK download Odin v3.07 search it in Google. then, open Odin, and extract all the files to the desktop.
Before continuing, make sure to backup all of your files because it will be deleted. The file you downloaded before, open it with winrar, then extract the files inside, to the desktop. Open Odin. Get your phone and turn it off. Once its off, hold vol down + home button + power button until you get the prompt to go to download mode. click vol up and it should say "Downloading...". Connect the phone to the computer, and Odin should recognise it. go to the AP slot, click it, and navigate to the file you extracted. Wait for Odin to recognise the file. After, click start, and don't disconnect it until it says "PASS" on the screen, or the phone boots up completely in the set-up. Its recommended that you eject the SD card in your phone (if you have one). Also, make sure only F reset time, and auto reboot are checked.
MhikeiMPC12 said:
OK download Odin v3.07 search it in Google. then, open Odin, and extract all the files to the desktop.
Before continuing, make sure to backup all of your files because it will be deleted. The file you downloaded before, open it with winrar, then extract the files inside, to the desktop. Open Odin. Get your phone and turn it off. Once its off, hold vol down + home button + power button until you get the prompt to go to download mode. click vol up and it should say "Downloading...". Connect the phone to the computer, and Odin should recognise it. go to the AP slot, click it, and navigate to the file you extracted. Wait for Odin to recognise the file. After, click start, and don't disconnect it until it says "PASS" on the screen, or the phone boots up completely in the set-up. Its recommended that you eject the SD card in your phone (if you have one). Also, make sure only F reset time, and auto reboot are checked.
Click to expand...
Click to collapse
Lol, for the debrick
Sorry bro I'm on 4.1.1 Stock and Rooted. Can't do OTAs.
dragoonmx said:
Lol, for the debrick
Click to expand...
Click to collapse
Just do what i told you to do earlier. read the other comments. the commands are over there
Hey man! Sorry I haven't been able to respond recently. Sent you a pm, but basically I've been in and out of town a lot the last few days!
Got a couple items that makes the process of creating a debrick.img very easy! Started out with a simple script and it evolved from there!
This one will create a 128mb debrick.img on your internal sdcard. (/sdcard/debrick.img)
Download this and flash in TWRP: https://www.androidfilehost.com/?fid=23196940996969297
That's It! Now just zip and upload!
(ignore the T999 in the filename
It will work on the I747 too)
This next one is slightly more difficult to use, but still easy if you just follow the instructions included in the zip file.
It includes options to create 128mb, 256mb and 512mb images. You should only need the 128mb one but we were using this for testing and troubleshooting when new firmwares were released.
Do NOT flash in recovery. Unzip and follow the included instructions. It will create the debrick.img and then will zip it for you using 7zip.
https://www.androidfilehost.com/?fid=23196940996969297
The first is the easiest and probably all you need. Just included the second in case anyone wants to try it or the first method doesn't produce a working image. (Doesn't fix a brick)
Hope it helps!
Sent from my SGH-T999 using Tapatalk
DocHoliday77 said:
Hey man! Sorry I haven't been able to respond recently. Sent you a pm, but basically I've been in and out of town a lot the last few days!
Got a couple items that makes the process of creating a debrick.img very easy! Started out with a simple script and it evolved from there!
This one will create a 128mb debrick.img on your internal sdcard. (/sdcard/debrick.img)
Download this and flash in TWRP: https://www.androidfilehost.com/?fid=23196940996969297
That's It! Now just zip and upload!
(ignore the T999 in the filename
It will work on the I747 too)
This next one is slightly more difficult to use, but still easy if you just follow the instructions included in the zip file.
It includes options to create 128mb, 256mb and 512mb images. You should only need the 128mb one but we were using this for testing and troubleshooting when new firmwares were released.
Do NOT flash in recovery. Unzip and follow the included instructions. It will create the debrick.img and then will zip it for you using 7zip.
https://www.androidfilehost.com/?fid=23196940996969297
The first is the easiest and probably all you need. Just included the second in case anyone wants to try it or the first method doesn't produce a working image. (Doesn't fix a brick)
Hope it helps!
Sent from my SGH-T999 using Tapatalk
Click to expand...
Click to collapse
@DocHoliday77 , any chance in hades this would work for atthtcm8 ? i know are completely different beasts , but figured couldnt hurt (too much.lol) to ask.
p.s. not bricked. just to have as 911-just-n-freakin-case.
"all i can really do is stay out of my own way and let the will of heaven be done"
DocHoliday77 said:
Hey man! Sorry I haven't been able to respond recently. Sent you a pm, but basically I've been in and out of town a lot the last few days!
Got a couple items that makes the process of creating a debrick.img very easy! Started out with a simple script and it evolved from there!
This one will create a 128mb debrick.img on your internal sdcard. (/sdcard/debrick.img)
Download this and flash in TWRP: https://www.androidfilehost.com/?fid=23196940996969297
That's It! Now just zip and upload!
(ignore the T999 in the filename
It will work on the I747 too)
This next one is slightly more difficult to use, but still easy if you just follow the instructions included in the zip file.
It includes options to create 128mb, 256mb and 512mb images. You should only need the 128mb one but we were using this for testing and troubleshooting when new firmwares were released.
Do NOT flash in recovery. Unzip and follow the included instructions. It will create the debrick.img and then will zip it for you using 7zip.
https://www.androidfilehost.com/?fid=23196940996969297
The first is the easiest and probably all you need. Just included the second in case anyone wants to try it or the first method doesn't produce a working image. (Doesn't fix a brick)
Hope it helps!
Sent from my SGH-T999 using Tapatalk
Click to expand...
Click to collapse
So, with this i can create de img, instead of using terminal, codes, etc ?
MhikeiMPC12 said:
I need to debrick my s3 running on 4.4.2 OB1. is anyone running OB1 on s3 I747M?
I have the instructions ready. so first, root your phone. If you don't want to root your phone, good bye because I don't need you. Ill get to the next step once someone is willing to help.
Click to expand...
Click to collapse
Hi, this is the debrick link for the OB1, i747M
https://mega.nz/#!M9ly3DZB!I58rC4SG33Y7k8SWfoKHYwQssasHmwxBPELYQ5bGvv4
dragoonmx said:
Hi, this is the debrick link for the OB1, i747M
https://mega.nz/#!M9ly3DZB!I58rC4SG33Y7k8SWfoKHYwQssasHmwxBPELYQ5bGvv4
Click to expand...
Click to collapse
Ok thanks so much!
Here goes nothing...

Question on modifying a combination file?

Good day all,
I am hoping someone can help me out and explain what I am not doing correct or point me in the right direction.
I have been reading the forums for quiet some time and have learned alot and want to thank everyone for their posts.
My question is I have taken apart the combination file and have been able re create the tar ball and successfully push it back onto the phone. ( I know some of these eng boot and combination files are digitally signed and I have not figured out how to confirm this). The issue is when I push this file with odin it wipes the user data which is the issue.
I then began digging deeper into the img files and located within the cache.img/recovery/command:
--carry_out=csc_factory
--wipe_data
Which will wipe the data. I have tried removing this along with changing the csc_home which would not wipe the user data if I understand this correctly. Once I modify the file I change the permissions back to read only and convert the cache.img to an android sparse file and create the tar-ball. I am now going through the system.img and boot.img to see if I can possibly modify these to bypass mounting the cache.img.
I am not sure if any of this will work and not sure why its not working so any advice would be very helpful.
Thanks,
San

Categories

Resources