Flashing CWM recovery in Odin from .img file? - T-Mobile Samsung Galaxy S 4

I downloaded the latest Clockwork Mod (CWM) recovery for my T-Mobile Samsung Galaxy S4 (SGH-M919), and noticed that the recovery file downloaded is a .img file (recovery-clockwork-6.0.4.7-jfltetmo.img). I tried to flash this file in Odin 3.07, and noticed that Odin will only accept flashable .tar.md5 files. I looked through the XDA forums, and noticed there are two threads that provide ready made scripts to convert .img files to flashable .tar.md5 files (http://forum.xda-developers.com/showthread.php?t=2446269 and http://forum.xda-developers.com/showthread.php?t=2281287).
However, I tried to use both of these scripts to convert the CWM recovery .img file to a .tar.md5, and both scripts returned errors. I believe it's because these scripts are outdated since they came from 2013 threads, and sensitive to which Windows OS the script is running on. In my case, I am running Windows 7 Ultimate (32-bit).
Would anyone be able to provide the most reliable way to convert CWM recovery .img files to .tar.md5 files?

Related

Does odin flash zip files? Trying to go to stock

Okay basically I have a samsung Galaxy S III from ATT. I'm trying to restore my phone to stock. I downloaded this file
http://samsung-updates.com/device/?id=SGH-I747
okay, I notice this file is a ZIP file. Do I flash odin with the zip file or do I put it on my sdcard and flash thru CWR. I"m really confused on how to get my phone to 100% stock. Any ideas?
Extract with 7zip it equivalent, then you should have a tar or tar.md5 file. Place that in the pda slot in Odin.

[Q] Is there a zip of CWM Touch 6.0.2.3?

If I'm creating a duplicate post, I apologize. However, I am trying to find a zip of CWM Touch 6.0.2.3.
As I am creating this post, I see that there may be a recovery in other forums. Is the recovery the same across all devices? I just want to make sure I get the right one for my S3.
Thank you,
The one and only GBP.
Just made these .zips...
CWM 6.0.2.3 (SGS3 T-Mobile)
CWM 6.0.2.3 Touch (SGS3 T-Mobile)
Flash either of them in Recovery Mode.
CWM SITE
Thank you, I really appreciate your help.
So I know how to do that the next time, how did you create the zip file? When I was at the CWM site, all I could download was an IMG file.
Try using twrp its nice and user friendly if you want an alternative touch based recovery just download goo manager from the play store and give it a try can't hurt
Sent from my SGH-T999 using xda premium
HOW to create a .zip (flashable rom when new version comes out)
1. Started with older CWM .zip ROM that I knew worked in past...
2. Download Newest CWM Recovery .img file from CWM SITE...
3. Extract older CWM .zip and rename to newest Version number... example "Recovery_CWM_v6.0.2.3"
4. rename newest CWM recovery .img to "recovery.img" and copy to your extracted folder. (Write over older version)
5. Re-compress with WinRAR or 7-Zip and make sure it's .ZIP format, not .RAR or another type.
6. All done
*** All your doing is taking recovery image and updateing into newly created .zip
*** in flash mode, the Recovery option to INSTALL (or flash any zip) always reads META-INF\com\google\android\"updater-script"
the script it reads for this example is...
ui_print("Please Wait");
ui_print("Flashing recovery");
show_progress(0.200000, 10);
package_extract_file("recovery.img", "/dev/block/mmcblk0p18");
show_progress(0.100000, 0);
ui_print("Success!!!");
so you can see it 's just gonna put "recovery.img" in your "mmcblk0p18" Partition which we can see is the recovery partition.
there are many partitions like System, Data, Flexrom, Cache, Dvalk Cache, SD Card, etc...they all have same start with different ending numbers mmcblk0p18
I agree with dscott973, that TWRP v2.3.3.1 is the best RECOVERY ! I'd change to that one (my opinion)
You can do the same thing by puting TWRP image renamed to "recovery.img" in the same format as this thread example (and rename folder accordingly),
but very important, always make sure your using the same type. Make sure your using for Samsung Galaxy S3 (TMobile type).
Example : Don't mix Verizon or AT&T type (just know what your doing and label it correctly)
ktmdave7 said:
1. Started with older CWM .zip ROM that I knew worked in past...
2. Download Newest CWM Recovery .img file from
3. Extract older CWM .zip and rename to newest Version number... example "Recovery_CWM_v6.0.2.3"
4. rename newest CWM recovery .img to "recovery.img" and copy to your extracted folder. (Write over older version)
5. Re-compress with WinRAR or 7-Zip and make sure it's .ZIP format, not .RAR or another type.
6. All done
*** All your doing is taking recovery image and updateing into newly created .zip
*** in flash mode, the Recovery option to INSTALL (or flash any zip) always reads META-INF\com\google\android\"updater-script"
the script it reads for this example is...
ui_print("Please Wait");
ui_print("Flashing recovery");
show_progress(0.200000, 10);
package_extract_file("recovery.img", "/dev/block/mmcblk0p18");
show_progress(0.100000, 0);
ui_print("Success!!!");
so you can see it 's just gonna put "recovery.img" in your "mmcblk0p18" Partition which we can see is the recovery partition.
there are many partitions like System, Data, Flexrom, Cache, Dvalk Cache, SD Card, etc...they all have same start with different ending numbers mmcblk0p18
I agree with dscott973, that TWRP v2.3.3.1 is the best RECOVERY ! I'd change to that one (my opinion)
You can do the same thing by puting TWRP image renamed to "recovery.img" in the same format as this thread example (and rename folder accordingly),
but very important, always make sure your using the same type. Make sure your using for Samsung Galaxy S3 (TMobile type).
Example : Don't mix Verizon or AT&T type (just know what your doing and label it correctly)
Click to expand...
Click to collapse
Thank you for your help. I'll take a look at TWRP. I just wanted the latest recovery because I'm considering upgrading to 4.2.1. I've read that the older recoveries struggle with the new file system, due to multiple users.
Merry Christmas
GBP85 said:
Thank you for your help. I'll take a look at TWRP. I just wanted the latest recovery because I'm considering upgrading to 4.2.1. I've read that the older recoveries struggle with the new file system, due to multiple users.
Merry Christmas
Click to expand...
Click to collapse
^So true, found that out the hard way... :silly:
ok. new noob here. so i have downloaded the file to root and install cwm on my gs3 from rootgalaxys3.com. the cwm in it won't allow me to flash a new rom. 'assert failed' is the only thing that keeps showing up. i looked into it and i think i have to upgrade my cwm version. so i found this link to the touch version for the galaxy s3. after i download it and i go to throw it in to the PDA slot in odin. its not there. so i extract it and i find 'meta-inf' file and a "recover.img" i can end up putting that in to the pda slot. BUT it ends in .img... is this ok or does the file have to end in .tar to flash properly and work?
PLEASE HELP ME!!!!
justinjrdawson said:
ok. new noob here. so i have downloaded the file to root and install cwm on my gs3 from rootgalaxys3.com. the cwm in it won't allow me to flash a new rom. 'assert failed' is the only thing that keeps showing up. i looked into it and i think i have to upgrade my cwm version. so i found this link to the touch version for the galaxy s3. after i download it and i go to throw it in to the PDA slot in odin. its not there. so i extract it and i find 'meta-inf' file and a "recover.img" i can end up putting that in to the pda slot. BUT it ends in .img... is this ok or does the file have to end in .tar to flash properly and work?
PLEASE HELP ME!!!!
Click to expand...
Click to collapse
Download ROM manager for cwm or goo manager for twrp and flash recovery from app in goo manager hit the menu button and flash recovery script. I dont know how to do it off hand in ROM manager but it is in there
Sent from my SGH-T999 using xda premium
The 2 files I posted earlier here are for FLASHING in RECOVERY only, not made for ODIN install.
another separate way to install Recovery is...
A) Download app from Market called "Terminal Emulator" (it's like using ADB commands on cell phone instead of PC).
B) use the same "recovery.img" from either of my 2 Zips earlier posted and then copied it to External SDCard (name of .img file has to match same name as in text below)
C) Run Terminal Emulator and enter these 2 command lines (Cell has to be ROOTED for su permissions to work)
su
dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
D) Check to make sure you have Recovery.
-with cell being off, Use {Volume Down, Home, Power} to load up recovery and check it.
To directly answer the question, you can only flash .tar files with Odin.
ktmdave7 said:
CWM 6.0.2.3 (SGS3 T-Mobile)
CWM 6.0.2.3 Touch (SGS3 T-Mobile)
Flash either of them in Recovery Mode.
CWM SITE
Click to expand...
Click to collapse
Seriuosly... just attach things like this.. They are small enough. Especially since you chose to use a stupid file hosting site that tells you to register for a free account but doesnt even give that option.
ktmdave7 said:
CWM 6.0.2.3 (SGS3 T-Mobile)
CWM 6.0.2.3 Touch (SGS3 T-Mobile)
Flash either of them in Recovery Mode.
CWM SITE
Click to expand...
Click to collapse
/
Useless, i cant even create a free basic account, could you unload it somewhere else please?
Here you go: http://db.tt/okfh9vzU
ktmdave7 said:
The 2 files I posted earlier here are for FLASHING in RECOVERY only, not made for ODIN install.
another separate way to install Recovery is...
A) Download app from Market called "Terminal Emulator" (it's like using ADB commands on cell phone instead of PC).
B) use the same "recovery.img" from either of my 2 Zips earlier posted and then copied it to External SDCard (name of .img file has to match same name as in text below)
C) Run Terminal Emulator and enter these 2 command lines (Cell has to be ROOTED for su permissions to work)
su
dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
D) Check to make sure you have Recovery.
-with cell being off, Use {Volume Down, Home, Power} to load up recovery and check it.
Click to expand...
Click to collapse
Don't you mean Volume Up, Home, Power for Recovery?
Can someone reload these links? I need them badly thanks

[Q] how to flash boot img official kernel via Odin

I've tried through Odin and cwm after the extract remains unreadable, thanks in advance
make boot.img into tar archive. odin only recornize tar

Which .img files should I be flashing in fastboot mode?

I'm currently rooted and flashing new updates/custom ROMs by extracting the payload of the new ROM and flashing the .img files using the manual flash instructions found here.
However, I'd like to understand more about this process. The instructions sometimes flashes less .img files than were extracted, e.g. in the recent OOS 10.0.11 update, the following .img files https://imgur.com/UyenBAc extracted (31) is less than what was flashed (19). Furthermore, the instructions passed the arguments "--disblae-verity" when flashing two of the .imgs, but not the others.
Therefore my questions are:
1. What do each .img file do?
2. Which files must be flashed and in what order?
3. Why are certain files flashed with certain arguments?

Question s22 sm-m901u/u1 rooting possible? please read

Ok so isnt it possible to just patch the boot img in the flash file for odin I mean I can extract the md5 file and then extract the boot img but is it possible. I can extract the boot file and patch it through magisk and then repack the file and flash through odin 3b patch. I just wanna know is it possible like will it work or its a flop idea.

Categories

Resources