yashsingh1/xdaforums huggingface dataset:
[myTouch 4G Android Development] bobsbbq:
Well I don't have winrar as I use only ubuntu linux. Can someone upload it for me in a normal zip or 7zip please.

I have tried everything and I can't get S=on. I think I messed up by not putting the factory ROM back on first before I tried to unroot. Now I have the Factory ROM back and no root but I still have S=Off. I tried 2 different part7backup files but nothing seems to be working.

Please help I need to get this done as I have this device sold and need to deliver it by Monday.

Thanks
[myTouch 4G Android Development] Phateless:
Just use pd15img.zip. it's one click.

Sent from my HTC Glacier
[myTouch 4G Android Development] bobsbbq:
I did but it does not put back S=On, note I unlocked using gfree.
[myTouch 4G Android Development] Phateless:
Ah. Reverse gfree, then you can pd15img. I haven't done that procedure so I'm not familiar with tbr directions in the thread.

Sent from my HTC Glacier
[myTouch 4G Android Development] bobsbbq:
Yes this is what I have been trying but for some reason the gfree doesn't want to revert or something. I have the stock hboot.

This is why I wanted to try this method but I can't unzip the file.
[myTouch 4G Android Development] Phateless:
Don't unzip. Rename to pd15img.zip and place on root of sdcard. Boot into hboot and follow the prompts.

Sent from my HTC Glacier
[myTouch 4G Android Development] bobsbbq:
You have to unzip the downloaded file unroot_files.zip, not the pd15img.zip.

EDIT: I finally got to a friends Windows machine and was able to extract the file and was successful in getting Ship S=On

Not sure if it made a difference but this phone had no SIM card in it when I tried before. When I made the part7backup from gfree it did have a SIM card in it. So I put the SIM card back in and this time it worked perfect.

Many Thanks
[myTouch 4G Android Development] jjjackson56:
Bob pm me your email address and I'll just send you the files unzipped

Edit nevermind.
[myTouch 4G Android Development] TmobileDash12:
Has anyone used the part7backup included in the first post?

My backup was deleted when my harddrive crashed on my laptop >.>

I should backup my important files on my USB drive from now on. Or on dropbox.

Thanks in advance for your reply! :]
[myTouch 4G Android Development] irrelephant:
I have used it and all went well!
[myTouch 4G Android Development] unk2009:
Thank you, that seemed to do the trick..Appreciate your help
[myTouch 4G Android Development] goldfish524:
Wow great way to unroot. It was quick and simple. Thank you so much.
[myTouch 4G Android Development] big_d093:
downloaded the unroot file zip..but there is nothing in the zipfile..do i still rename the file pd15img.zip and run in bootloader or am i missing something..(i didnt root with gfree)
[myTouch 4G Android Development] DADDYDC650:
I unrooted the other day using the OP method. Question, when my phone installs the original stock ROM, does it completely wipe everything or does it install over whatever custom ROM/kernal I had installed thus possibly leading to issues because of stuff being left over?
[myTouch 4G Android Development] HeavyComponent:
Good thing this is out! Because I now need it!!! :D
[myTouch 4G Android Development] HeavyComponent:
For some reason I can't unzip the "zip" file that I downloaded. I keep getting errors.
[myTouch 4G Android Development] jjjackson56:
@Daddy puts everything stock keeps nothing the same as you had it.

@heavy some are having that issue pm your email and I'll send you the files unzipped
[myTouch 4G Android Development] jawnsixteen:
Awesome, everything worked great. I just had to do it twice. Other than that everything went smoothly!

I had to send in my MT4G (with panel 2 :( ) after the bottom of my touchscreen became unresponsive! Luckily my replacement came in yesterday and it had panel 2 as well :D!

Thanks for everything jjjackson56 !
[myTouch 4G Android Development] techdeskjocky:
Zomg awesome!
[myTouch 4G Android Development] IlPapu:
Is there another mirror for your zip? Mega upload is super slow....
[myTouch 4G Android Development] JWhipple:
This might be a silly question, but will this return me to a pre-OTA state or post-OTA ?
[myTouch 4G Android Development] Phateless:
Post-ota.

Sent from my HTC Glacier
[myTouch 4G Android Development] el-jodio:
Might be a little off topic but are the MD5:#########'s in the gfree perm-root guide supposed to be entered as commands also. I've already rooted and have SU permision. Do those numbers play a role in the perm-root process and or the un-root process in the op? Pardon my newbness, trying to learn here.
[myTouch 4G Android Development] jjjackson56:
No. Correct me if im wrong but you match this to the md5sum given to vefiy that the files downloaded are not corupt
[myTouch 4G Android Development] el-jodio:
Cool, thanks.
[myTouch 4G Android Development] el-jodio:
EDIT: GOT IT!!!! Used the part7backup from the OP. Thanks jjjackson56. I used the "new and improved thread" method. S-ON, and now to root with a different method.
[myTouch 4G Android Development] jjjackson56:
Glad it worked for you although you realize that the difference is that its all automated.
[myTouch 4G Android Development] synaesthetic:
Worked perfectly, thanks!

Needed to return my phone to stock in order to swap it. The power button died after only a month. :( Must've gotten a bum unit.

So worried I'll end up having to shuffle devices... I got lucky with this one and it had a good screen. Hope the replacement doesn't have a bad screen, or I'm going to just say screw it and get a nexus s.
[myTouch 4G Android Development] drewtang:
Thanks so much for this!!!! worked great, with the exception I had to download the img from your other thread for it to work, the one included with the zip did not work. Other than that worked like a charm. Saved me an out of warranty fee lol
[myTouch 4G Android Development] jjjackson56:
Which image did you have to download.
[myTouch 4G Android Development] JXTONY:
quick question

i need the stock rom. so i can flash it on my mytouch lost the sd card where i had it backed up..i want to send it in to get a new one..and cant really have cm7 on it. any help is appreciated...
[myTouch 4G Android Development] jjjackson56:
Use the PD15IMG if you didn't follow the gfree method of rooting
[myTouch 4G Android Development] marcos.lennis:
S=off and unrooted. Thank u all.
[myTouch 4G Android Development] gizzymo:
My device wont flash the PD15IMG.zip file. it loads but then goes right to the main screen of the Hboot. Help?
[myTouch 4G Android Development] nixxofugi:
megaupload

is there anyone willing to host this file on a mirror? megaupload is causing all kinds of problems. download hangs randomly, and is slow to transfer also... hope someone can help...
[myTouch 4G Android Development] jjjackson56:
pm me your address and i could just email you the files needed
[myTouch 4G Android Development] nixxofugi:
megaupload

megaupload is freezing over and over again... cant get a complete file, and have never gotten more than 20%... is anyone else experiencing this behavior?
[myTouch 4G Android Development] Phateless:
My sig.
[myTouch 4G Android Development] viper_1986_1986:
Same problem here, i been lookn up and down forums for an hour now and you are the first person to also have this issue...

It gives an error saying it cant find the .img or something when it loads into hboot.

I guess there is suppose to be "loading bar" on th top right of the screen, then it is should promt you to reflash to the stock ROM or whatever.

I have downloaded a handful of the .zip and all do the same thing, also tried doing this from 2 home computers and a work computer. No luck....
[myTouch 4G Android Development] bgolden84:
very frustrated

got my mytouch4g prerooted and all that fun stuff with s=off and i cant get it to read the pd15img.zip it says not found or wrong img dont know what im doing wrong nor can i find any help ive tryed rerooting and all i get to the last part of unroot and i cant get it to update the img obv since i got the device prerooted i dont have the backup file i dont know if thats what is hangin me up but any help would be greatly app i have flashed many phones this is pissing me off lol thanks in advance
[myTouch 4G Android Development] jjjackson56:
I have found that when people have issuses of the PD15IMG not loading its, 99% of the time, because it is named PD15IMG.zip.zip this happens because people don't realize that windows hides the file type. Right click on the file, click properties, then click the details tab and make sure that it is just PD15IMG.zip not PD15IMG.zip.zip
[myTouch 4G Android Development] mark manning:
Get a new ip address on tour router, that will.fix your problem
[myTouch 4G Android Development] bgolden84:
thank you thank u

wow do i feel like a giant douche not a noob but fed up on the file name its been a long day thanks for bringing my day to a good end :D i cant believe that i made such a stupid mistake
[myTouch 4G Android Development] jjjackson56:
Glad I could help most people over look this all the time
[myTouch 4G Android Development] bgolden84:
ive had an android phone and been a flashing junkie since the mytouch 3g days and yet to brick one had alot of them too lol its an addiction and this is my support group dont post to much just read but thank you very much for making me think :D
[myTouch 4G Android Development] viper_1986_1986:
So i have done about 6 different donwloads of of the PD15IMG.zip file, double check the MD5, file size, and name. None seem to work for me.

hboot loads up, shows that there is no image, or is it the wrong image.

What gives? My only thought left is i need to have the eng hboot? but i don't see why, nobody has ever mentioned this before.

S-off

hboot 0.86.000

microp-0429

radio-26.03.02.26_M

eMMC-boot

[date here]
[myTouch 4G Android Development] bgolden84:
Make sure the file doea not have .zip in the file name it shoudlnt wimdows hides the .zip part if it has .zip in the title then remove it and try that
[myTouch 4G Android Development] EtherealRemnant:
It definitely did not work. I was running CM7 and I ran terminal emulator, su, changed dir, sh unroot.sh and it threw up some errors, seemed to have put the bits back where they were supposed to go that were changed, then rebooted the phone after saying file not found... stock ROM flashed back fine... anyone think T-Mo actually checks these thinks to see if security is OFF when they're exchanging for another device? :/

EDIT: That was rather odd... It was failing to copy to /data/local so I opened up the shell script in notepad and manually copied using the same command as is in the script, then ran gfree but still don't have S-ON :/

Another interesting tidbit is that now my HSPA+ is finally acting like HSPA+ - it never acted like HSPA+ since I've had the phone. Was getting 100kbps down and 1600 up - now suddenly I am getting 4-5Mbps down and 1.8-2Mbps up average. Weird.

EDIT2: If you want this to actually go back to stock, you need to add a command "./gfree -secu_flag=on" in order to get S-ON back... when you run ./gfree -f, it automatically tries to apply S-OFF, not S-ON. It even says so when you type ./gfree

Anyway, thanks for the guides - I ended up using your manual guide after the auto guide failed and then I figured out why S-ON wasn't working.
[myTouch 4G Android Development] jjjackson56:
Hum odd I've used this many times and never ran that command. I've always been able to achieve s=on.

Where did you run this command?
[myTouch 4G Android Development] EtherealRemnant:
Once I manually copied gfree to /data/local, I ran the unroot.sh script again from /sdcard/unroot. This was successful in reverting everything to stock except for turning S-ON. If you just type ./gfree, it lists a help listing for the program and specifically states that -f will set S-OFF, change CID to 8 digits, and remove simlock.

I even tried it with my own partition back up file that I had and ran through the entire manual process (mind you I nailed the manual process for rooting the first time I tried it and I've done the same convoluted S-OFF business on the Evo as well) and did not achieve S-ON until I ran ./gfree --secu_flag=on - then it reset the flag, I rebooted to bootloader, flashed the stock image, and I was now fully stock.

Maybe its just some devices that need it? Either way, it doesn't hurt anything to add it to the script since forcing S-ON through gfree with S-ON already set is just going to leave S-ON - I tested it myself.
[myTouch 4G Android Development] jjjackson56:
Ya I think I may just add that into the script just to be on the safe side maybe it will help some.
[myTouch 4G Android Development] jasonp2506:
everytime i try to download this file it gets to 30.1mb and stops. tried three times. maybe its just me, but everything else i download is fine.
[myTouch 4G Android Development] irrelephant:
same here, but its no big deal to me, just wanted it for if i needed it
[myTouch 4G Android Development] jasonp2506:
Yea, same. Just was curious if it went through everything. Wanted to see it work. Im such a nerd.
[myTouch 4G Android Development] irrelephant:
ive used it b4, and its all good, but i changed over to ubuntu and well lets just say i lost a lot of stuff!
[myTouch 4G Android Development] erickdj:
I was having issues using the automated script to unroot(mostly to turn s-on), so I realized all I needed to do was run "./gfree --secu_flag on" to turn security "ON" and then flash the PD15IMG.zip file through hboot, that set the phone back to stock really fast and easy. Didn't have to mess with part7backup files or nothing like that.
[myTouch 4G Android Development] jjjackson56:
Ya some people are having this issue where security won't turn on I'm going to add this command I just haven't yet. Without putting your part7backup in its correct spot you don't have stock completely.
[myTouch 4G Android Development] Lint6:
Thank you for this. I dropped my phone and had to revert it back to send in. Just the regular stock zip wasn't working, but this did. Thanks alot
[myTouch 4G Android Development] jjjackson56:
Yep for sure glad it helped.
[myTouch 4G Android Development] Poohba:
This worked for me to get back to a stock "rom" but that is all. My bootloader is messed up. I can't get into any type of recovery. I was never able to get into cw recovery but I am not able to get back to stock recovery either.

sh unroot.sh

pushing gfree

making executible

running gfree

--secu_flag off set

--cid set. CID will be changed to: 11111111

--sim_unlock. SIMLOCK will be removed

Section header entry size: 40

Number of section headers: 44

Total section header table size: 1760

Section header file offset: 0x000138b4 (80052)

Section index for section name string table: 41

String table offset: 0x000136fb (79611)

Searching for .modinfo section...

- Section[16]: .modinfo

-- offset: 0x00000a14 (2580)

-- size: 0x000000cc (204)

Kernel release: 2.6.32.21-g899d047

New .modinfo section size: 204

Attempting to power cycle eMMC... Failed.

Module failed to load: Operation not permitted

reverting to stock

/dev/block/mmcblk0p7: cannot open for write: Permission denied

syncing

press volume up upon reboot into bootloader to say yes and let it do its magic

Bootloader is still messed up. If I hold up while rebooting I get 3 quick vibrations and then nothing. If I hold vol + power I get the same messed up HBOOT or BOOTLOADER screen.
[myTouch 4G Android Development] xdviper:
Does it matter which rom I use to undo gfree? And also, does this undo the cid, radio, and hboot?
[myTouch 4G Android Development] xxMAGICxx:
The zip wont open, so it wont extract.
[myTouch 4G Android Development] xxMAGICxx:
Anybody?
[myTouch 4G Android Development] jjjackson56:
Try downloading it again our use 7zip
[myTouch 4G Android Development] johnsmith970:
I was rooted with gfree and I tried this method and I am now unrooted and back to stock rom with stock hboot and radio, but it still says s=off.

What do I need to do now?

Sorry if this had been covered.
[myTouch 4G Android Development] chicotunner07:
^im having the same issue, i have to return this phone, stock rom is back and apparently root is gone, but i still have S=off, wondering if tmobile looks at this?
[myTouch 4G Android Development] Ace42:
http://xdaforums.com/showpost.php?p=10851009&postcount=10
[myTouch 4G Android Development] chicotunner07:
^IT WORKED!!

thanks!

there was no gfree file in my data/local (dont know why) so after moving a gfree file using root explorer, i was able to follow the steps in the link you provided and it worked!
[myTouch 4G Android Development] :
Finally back to stock!

Thank you! This finally got me s on again and back to stock. For some reason since doing this I have gotten amazing battery life. I've been using my phone heavily for the past 4 hours and I'm still at 85% battery life and even on Royal Ginger I didn't get that kind of battery life. Not sure why but I'm not changing a damn thing anymore!
[myTouch 4G Android Development] civicvx94:
Because I'm a nice guy and that Megaupload download was painfully slow, here's a Dropbox mirror of the zip from the op. Hope this helps someone.

MIRROR

http://dl.dropbox.com/u/6755701/unrootfiles.zip

Also, just wanted to add a thanks to the OP. This has worked flawless twice.

Simply placed the files in the root of the sd card, booted into bootloader and let it update. done. that simple.

Thanks alot man.
[myTouch 4G Android Development] CriolaBrazuka:
So, I have been trying to get my friends MYTOUCH 4G back to stock in order to replace it with WARRANTY. The POWER button is NOT working, so I am having a heck of a time with this. I also did the Gfree unroot method found here but it's rebooting into Fastboot and since the POWER button is broken, I am unable to select anything in order to get it to HBoot (as instructed). I need to reboot into HBoot in order for it to read the PG15IMG zim. Using ADB, what is the COMMAND prompt to get it to the HBOOT (not FASTBOOT)?
[myTouch 4G Android Development] lt1pnyklr:
I'm getting a message saying, "unable to chmod, no such file or directory". Is this because the gfree file is missing? I have everything setup correctly in AndroidSDK and used the gfree method when I originally rooted to get Soff. Where do I need to place this file on my card?
[myTouch 4G Android Development] d0gan:
I need help guys. I believe my phone is unrooted but S=Off still. I was originally rooted with the gfree method. Need help as to how to get S=On.

I followed the commands in the first post which reported the following:

cd /sdcard/unroot

sh unroot.sh

pushing gfree

making executible

cd: can't cd to /data/local

: No such file or directory

running gfree

unroot.sh: ./gfree permission denied

reverting to stock

4096+0 records in

4096+0 records out

2097152 bytes transferred in .178 secs syncing

: not found

press volume up upon reboot into bootloader to say yes and let it do its magic

not permitted!

I went into the bootloader after this and flashed to the original image. What should I do now to get S=ON? I've taken a look at a few other posts and it looks like the gfree process failed.

How can I turn S=ON without using adb?
[myTouch 4G Android Development] d0gan:
Finally figured it out! Make sure you are using the "/" correctly to differentiate between files and folders.
[myTouch 4G Android Development] decko5:
none of these tutorials ever work
[myTouch 4G Android Development] jjjackson56:
You have to be smarter then your smart phone.
[myTouch 4G Android Development] decko5:
that's the problem. IM NOT!

so i figured it out. i didn't have a gfree file in /data/local

so i moved it there and then followed the rest of the steps and it finally worked.

also for step 5 of 651stp's instructions, this explanation is much more simple for super noobs like me

run "dd if=/sdcard/part7backup-whatevernumberitscalled***in this case it would be 1295670392 if you are using the .bin posted by OP***.bin of=/dev/block/mmcblk0p7

step 6 run "sync" (it worked for me)
[myTouch 4G Android Development] DANCCS:
hI,

I Rooted my Phone thru the method GFREE.

I saved my Custom rom Beofre starting to swap roms.

I need to send it back to T mobile, do you think they will check the S OFF or ON if i just load the Stock rom and do a Factory Reset? Or should I put the S back on?
[myTouch 4G Android Development] dung8604:
Thank you so much this worked for me, after the original instructions from Grankin failed to turn S-ON.

You guys are both awesome. Thanks so much
[myTouch 4G Android Development] Part Four:
S-ON or S-OFF doesn't matter, as T-Mobile allows us to have the phone S-Offed.
[myTouch 4G Android Development] tvotony:
Works great
[myTouch 4G Android Development] j0e_ahm:
Hey, I updated to the new gingerbread update 2.3.4 (ROOTED/DEODEXED with the new radio) and I'm wondering if i can unroot with this? If I can unroot with this, I was also thinking of using the updated PD15IMG.zip (2.3.4 Gingerbread) instead of the one you posted on the unroot process and I'm going unroot that way so when it flashes in hboot I would get the update :) would this work? I also have the bad chip in case your wondering why i want to unroot... I really don't but I don't want to mess up my phone and get it bricked :/ and if this is going to be safe to do :). I hope you help me no one has been able to answer my question and i have BEEN SEARCHING BEFORE POSTING!! :O
[myTouch 4G Android Development] bmakk2055:
Good work
[myTouch 4G Android Development] vom098098:
myTouch 4G Sensation ROM need to Unroot

I also am in the same situation as above. I have the phone rooted right now on 2.3 with the Sensation port. Can I use this method to unroot?
[myTouch 4G Android Development] 420hackr:
Awesome
[myTouch 4G Android Development] beryenbeh:
how can i unroot if my phone is stuck at the cm7 blue circle splash screen? someone please help me. my email is beryenbeh@yahoo.com

thank you
[myTouch 4G Android Development] :
i want to return to stock everything because i have to return my phone to tmobile for a exchange (bad screen/trackpad doesnt work)

im using a sense 3.5 rom right now, would it work if i tried the method or would it brick my phone? do i need to flash the stock sense rom that comes with the mytouch or does the file do everything for me and the rom im using right now doesnt matter? please someone reply quick
[myTouch 4G Android Development] nogoodnik30:
I've used this method to unroot several myTouch 4G's, without a hitch each and every time. Couldn't find the Thanks button on the OP, so I figured I'd say it. Thank you for making this so easy, it's almost foolproof. It has definitely saved those who've asked me an Out of Warranty Fee, or bricked device. Much appreciated, and keep up the great work.

HTC Glacier Rooted

Virtuous Unity V2.37

Dark HD Theme
[myTouch 4G Android Development] kamui957:
Hi, okay I followed the instructions, and I am at stock software and stock hboot, but it still says S-Off! Any assistance on this would be awesome.

Edit; I'm on 2.2.1 so I can still gain temp root. I'm going to try running this again and see how far I can get...

---------- Post added at 07:16 PM ---------- Previous post was at 07:02 PM ----------

This worked for me the second time I tried it once I re-ran visionary r11.

Woot. Now I just have to wait for my new MyTouch 4G in the mail and send this one back.
[myTouch 4G Android Development] skuidkid:
doesn't seem to be working, when i run the commands in the terminal i get the following errors:
[myTouch 4G Android Development] Metaleckz:
cd: can't cd to /sdcard/unroot

help?
[myTouch 4G Android Development] jjjackson56:
Weary are you doing
[myTouch 4G Android Development] jeremyritzmann:
Ill take over support if you'd like. Finishing the GUI for the app today. Ill post it later.

Sent from my LG-P999
[myTouch 4G Android Development] chukis13:
You're making an app for this? Sweet!
[myTouch 4G Android Development] jeremyritzmann:
That's the plan my man.

Sent from my LG-P999
[myTouch 4G Android Development] dannydrift:
I'm looking for the zip file that is linked in the first post that holds the 3 necessary files. Unfortunately, MegaUpload was seized and now the link is invalid.

Does anyone still have this file locally that they can upload?