yashsingh1/xdaforums huggingface dataset:
[Legend General] TheGrammarFreak:
Well, I tried a few things. DarkTremor didn't work for me, not sure why. I tried firerat's script for apps2ext, but it required rw access to /system to install. I tried editing the script, as well as doing everything manually, still no joy.

So, my question is thus: any pointers?

EDIT:

Another, related, question: could I symlink /data/app to /sd-ext/app? Would that work, assuming I mounted the ext partition early in the boot sequence?
[Legend General] TheGrammarFreak:
I got it now.

Swyped from my Galaxy Tab
[myTouch 4G Android Development] grankin01:
Great find man! Hopefully this will work on all the pre-OTA devices and everyone can have root utopia! :D

My MyGlacier 4G MINE!!!
[myTouch 4G Android Development] Kline:
I'd love to try this, but I don't see where the OTA plays a part here? May give it a shot when I get off work tonight.
[myTouch 4G Android Development] slhpss:
Thanks man, I'm here to help if anyone has questions... I spent about a week waiting for someone smarter than me to figure it out... I have a little linux experience (I run a few servers for fun), but didn't think I would be able to figure this out... turned out it really wasn't too hard... I was about to try the rage thing when I came home today, but someone beat me to it and posted a link to your post, and that was the last piece of the puzzle. :D

the first file you're downloading is actually the image files from the OTA, this updates some files but doesn't do a full system patch. The thing it does update is the kernel, which allows you to use the original S-OFF method. Once you're S-Off you can install clockwork and flash the actual OTApkg.zip through clockwork's recovery. Then you have to reroot using rage because for some reason visionary thinks it's already rooted and su won't work...
[myTouch 4G Android Development] brian6685:
Thanks alot man! I have a pre-ota device and im gonna give it a shot in a few minutes to see if it works. Ill let you know soon!
[myTouch 4G Android Development] brian6685:
I am on a pre-ota device, i followed the instructions, and now I am s-off ;) wow thanks alot man! Im gonna do the rest and get clockwork installed and install the update
[myTouch 4G Android Development] brian6685:
Okay so everything went successfully. Wifi working again and everything works. I am on the second part now to re-root. I am using linux..... that adbbat is for windows...... any suggestions?
[myTouch 4G Android Development] Kline:
VirtualBox? ... I kid I kid :D. Just open up adbbat in a text editor and run the commands by hand I'd say.
[myTouch 4G Android Development] grankin01:
I can either wip up a script or you can "edit" the batch file and use the commands inside it manually in your shell.:)

Edit: Genocaust beat me to it. :p

My MyGlacier 4G MINE!!!
[myTouch 4G Android Development] brian6685:
Oh, i see ;) Ill do it thanks lol
[myTouch 4G Android Development] brian6685:
Okay, everything is done and everything works ;) s-off and superuser working correctly. Man ive been waiting for this lol. Thanks alot guys this was a huge help! You can put in the OP that it works for phones pre-ota, because i can confirm ;)
[myTouch 4G Android Development] slhpss:
the syntax should be the same... just add #!/bin/bash to the top and I bet it will work
[myTouch 4G Android Development] PolishDude:
stupid question but how do you flash through bootloader?
[myTouch 4G Android Development] slhpss:
The first file you download which is called manualota.zip you need to rename it PD15IMG.zip and place it on your sdcard. When bootloader starts it will automatically look for a file with this name and flash from it.
[myTouch 4G Android Development] std396:
HTC Sense

Hey guys dumb question, im new to android. I like adroid so far, but is flashig the same as Windows Phone? Hold down (Power) Button + Vol Down to enter flash mode. Oh and this phone is cool, but how can i get the actual HTC Sense i dont like My sense, its to girlee.

Thanks in advance.
[myTouch 4G Android Development] cdw9800:
Is their a way I can force 2.2.1 update without rooting?
[myTouch 4G Android Development] krise11385:
hopefully we now have a way for ppl without the ota to update and root maybe we will now get some rom devolopment !!!!!!!!!! thank u for this cant wait for a vanilla android rom.shouldnt be to long now everyone can have root access
[myTouch 4G Android Development] slhpss:
you won't have root if you follow the force update method and not the re-rooting instructions, but if you do decide to root later visonary won't work you will have to use the rage method
[myTouch 4G Android Development] asko1981:
Working on pre-OTA

Just would like to say thank you very much for this guide and confirm that it is working on pre-OTA.

Thank you!
[myTouch 4G Android Development] myrdhyn:
Ok stupid question, after this step:

"3. This is going to appear as if no updates were made when you reboot, but you will now be able to follow the root instructions in this thread perma root guide to get S-OFF"

Should we just have S-OFF, and therefore need to use temproot to install clockwork and such, or should we have S-OFF and permaroot

edit: Nvm, the answer to the above is you should have S-OFF and Permaroot at this step, also I'm a complete dink...you shouldn't even need root to install clockwork, it's just a regular apk. It appears you CANNOT use VISIONary R12 for this, you have to use R11.
[myTouch 4G Android Development] Hinouchi:
Yea it happen to mine too, but it didn't root tho, it just display s-off when I was in hboot. :D

And thank you very much for the guide, I have been trying to get the update from Tmobile, but found out I can't cause I'm in Canada :(, and they won't push the update during roaming.
[myTouch 4G Android Development] blklexluthor:
Ok....first off thanks for posting this as I've finally been able to update to 2.2.1 and I currently have s=off....BUT I'm stuck on something. Now when I go into terminal and type su I get "unknown user root" error. When I open clockwork I get permission errors....and clicking fix permissions doesn't help, in titanium I also get permission issues. When I open up visionary (r11) and yes I've tried reinstalling it.... its says I'm already rooted....can someone please walk a newb through this?!

I have adb working and I completed the re-

rooting process following the guide and it did restart twice so I don't understand what I did wrong along the way.....I'm coming from Windows mobile and so far I like Android but flashing a Rom has been a hassle. Lol any help would be appreciated.
[myTouch 4G Android Development] slhpss:
I never had this issue (except the visionary r11 already rooted thing) this is why I posted to use the "alternate" rage against the cage rooting method. BUT I do know visionary r14 will work and won't tell you it's already rooted. so I recommend uninstalling superuser and visionary then install r14 and give it a run. if that doesn't work get in irc on irc.freenode.net channel #HTC_Glacier and I will be glad to troubleshoot with you.
[myTouch 4G Android Development] blklexluthor:
I gave ur advice a try.... amongst a few other things and I believe it worked...I think I was just making things unnecessarily complicated who knows....and who cares i'm rooted now lol and I'm finally no longer running and thats all that matters. Thanks a lot for all the help...xda community and slhpss ;)
[myTouch 4G Android Development] xdviper:
Yes, proud owner of a White MT 4G, former owner of a G2, and Damn YES IT WORKS! THANK YOU! I THOUGHT I WAS OUT OF LUCK FOR SOME REASON BUT YES THANK YOU GUYS!
[myTouch 4G Android Development] Altephore:
Could you tell me what other things you did? I am still stuck with "unknown user root". I cannot get SU via any method! =(
[myTouch 4G Android Development] slhpss:
What is the exact command you're trying when you get the error?
[myTouch 4G Android Development] tech_p:
I was having the same "unknown root error", I think the problem was, when running "adbbat" from the pc, the phone in usb mode. Switched to charge only and ran the whole process over and now i have root.
[myTouch 4G Android Development] tomtom2007:
plz help me with the last steps

i did everything and i lost my wifi all is done

now i try to flash the recovery-clockwork-2.5.1.2-glacier

it says

sending recovery ' <4000 kb> ..... failed <status malformed <1 bytes>>

finished.total time : 0.000s

where is the problem why i cant do that?

really i need help
[myTouch 4G Android Development] nuwan32:
hey guys im having a problem. im at step 2, and when im in bootlaoder, it tries to flash the img, but it says invalid cid
[myTouch 4G Android Development] Calmplex2g:
Can somebody reupload the file 2 flash please
[myTouch 4G Android Development] photolarry:
This works!

Thanks so much. I been pulling my hairs all day and this thread got it working.

:p
[myTouch 4G Android Development] drixtab:
Worked great for me! Pre-OTA device and now have S-Off!!!

Great work! Thanks a lot!!!
[myTouch 4G Android Development] jmerlos:
Thanks a bunch! Worked great on pre-OTA :)
[myTouch 4G Android Development] slhpss:
yes you will have root at this step, but after you flash the update you will lose it... I'm sure you've gone through the rest of the steps and figured this out by now. I haven't tested R12 does it not work with it?
[myTouch 4G Android Development] myrdhyn:
R12 doesn't work. I've got the update flashed, but I can't get the "re-root" section with rage to work. When I type "/data/local/rage" i jsut get "access denied" rather than rage running. I know it says 'uninstall visionary', but are we sure that portion of the directions is correct? ADB has gone haywire on my windows PC, so I've been using my linux setup which seems to like my Mt4g for some reason, ran the commands in teh bat file manually. Not sure if that has something to do with it (got no errors, but it's possible that if CHMOD didn't run properly it could be erroring out)
[myTouch 4G Android Development] slhpss:
did you make sure that disk storage is off, because you need to push to the sd card.... and you should have no problem running files in /data/local/

can you paste the output from the commands in here?

looking at the commands in the bat file it might be best to adb shell then run the chmod separately, because if the chmod didn't run then the files aren't executable and could be the cause.

I haven't used ADB in linux... I could as I already have a box up and running, but let's try to talk through this before I go down that road ;)
[myTouch 4G Android Development] myrdhyn:
Hah, sorry I didn't respond immediately I was trying a few things (and yes disk storage was off, I'm not that big of a nub). One of the things I tried was what you said, but with one small modification. I had to chmod each file individually rather than chmod file file file file. I know it SHOULD work doing all of them at once, but I couldn't get it to.

Also I seemed to have bombed my ADB install on linux by accidentally running rage from that command prompt without thinking (was just zoned out auto-pilot typing commands). So now the phone is working but both machines are down for the count for ADB until I sort through it.

edit: just incase anyone else does something as stupid as I did b/c you're too damn tired to be doing this, the fix for running rage from the WRONG command prompt is to finish the re-rooting process, then reboot both the phone (pull the battery) and the computer. It should work fine after that.
[myTouch 4G Android Development] slhpss:
I was having issues with ADB on windows too... I hope you get it sorted out
[myTouch 4G Android Development] cdw9800:
Ok thanks
[myTouch 4G Android Development] slhpss:
and on this if you don't want to use clockwork there is a post on here about restoring the default recovery which you could do and then turn S-ON again and you would theoretically have a stock 2.2.1
[myTouch 4G Android Development] myrdhyn:
Got it sorted, after about 20mins of hair pulling and a bit of google-fu. There's a file on the root of the stock SD card (thank god I hadn't wiped mine yet) called HTCDrivers or something like that. It's a standard executable. Run that, it installs the HTC drivers for the MT4G. Then what I did was:

1) Disconnect phone

2) Run "adb kill-server" in command prompt

3) Run "adb start-server" in command prompt

4) Reconnect phone

5) Let windows do its thing

6) "adb devices" should now show your device listed and it should work fine

Steps two and three probably aren't necessary, and honestly I'd bet all you'd have to do is reboot your PC after running the executable. I was trying to avoid waiting on the reboot though, so I just killed and restarted all the relevant bits.

All-in-all I'd say if you've got access to a Linux PC, it plays much nicer with the MT4G in terms of ADB, plus it has the benefit of not having to swap back and forth on your syntax in the command line.
[myTouch 4G Android Development] slhpss:
yeah I got that installed, but for some reason if I try to do rage from adb without using term for example... it kills adb after you run it then when I restart adb server it won't see the phone... no biggie though just ran the commands from terminal like the guide says.. and now I have it running on linux... also I posted a script on the OP that you can use instead of adbbat.bat on linux it's called... wait for it... adbbat.sh =D I tested it with my phone and it transfers the files and chmods properly
[myTouch 4G Android Development] grankin01:
That is common. Rage borks adb on these phones so you have to do the steps from terminal.
[myTouch 4G Android Development] cdw9800:
one more question i do have to get up to s-off and use clockwork to flash the ota than flash to stock recovery

Edit: worked great
[myTouch 4G Android Development] johnowa636:
Add me to this list of confirmation of this guide working. I had downgraded from 2.2.1 and never got the update again. This Guide work. Thanks.
[myTouch 4G Android Development] krazy_smokezalot:
This guide works pre-ota device now 2.2.1! Thanks! Now I'm on the re-root process. Im not in a hurry to root, since there is no roms or custom kernel's available for O.C.
[myTouch 4G Android Development] myrdhyn:
You do not have to flash back to stock recovery, in fact it isn't beneficial to do so as you won't be able to flash custom roms, etc.
[myTouch 4G Android Development] PolishDude:
I actually ended up rooting the phone a different way...well it worked for me because I already had a rooted mytouch 4g that i returned but made a backup/nandroid before doing so and wanted to just get that nandroid back onto the new phone. After I got clockwork recovery on the phone I just restored my old nandroid and I ended up with a phone on 2.2.1 and root and s-off. Thanks for this.

If someone that officially got 2.2.1 and does a factory reset and then roots the phone and then makes a backup/nandroid and posts that here that would probably be super helpful to the people that arent very good with adb

because the steps would then just be

4. download Clockwork Mod

5. install the clockwork recovery, put nandroid file in clockword/backup on sd card, and then go into rom manager and "restore"
[myTouch 4G Android Development] mfouco:
Can someone post the manualota.zip download. The dropbox link doesn't seem to be working. Thank you

is this a diferent PD15IMG.zip than the one you create in travisjames post ?

http://xdaforums.com/showthread.php?t=832642
[myTouch 4G Android Development] myrdhyn:
This would be helpful, but it would be more helpful for those that need help with ADB to ask, get help, and learn it. It'll be applicable to other phones both current and future, and it's never a bad idea to be more comfortable and familiar with a command line interface if you're going to be interacting with computers at all regularly. I've already given some helpful information in this thread, and I'd be willing to share some more if anyone has any questions. It probably would be better to either PM me or split it off into another thread.

If someone doesn't post it by this afternoon, I'll try to remember to upload it somewhere when I get home.
[myTouch 4G Android Development] mfouco:
Thank you, so it's a different one from the travis post then?
[myTouch 4G Android Development] myrdhyn:
I don't think so, but I don't have any way to look at it at work. I meant I can upload the manualota.zip that I've got since some one (you?) said it wasn't downloading from the OP.
[myTouch 4G Android Development] mfouco:
@myrdhyn Yes, just wondering because it looks like i can just jump to step 3 if i just did travis steps on the back to stock thread, and just ignore steps 1-2. Unless it's a different .PD15IMG.zip file. Thanks

1. download this file save this as PD15IMG.zip

2. reboot into bootloader and flash this update

* for me Wi-Fi stopped working at this point and my 3g/4g was acting funky

3. This is going to appear as if no updates were made when you reboot, but you will now be able to follow the root instructions in this thread perma root guide to get S-OFF

4. download Clockwork Mod, and The OTA
[myTouch 4G Android Development] myrdhyn:
Whoa wait, it very well could be a different PD15IMG.zip. That's the name a file MUST be named for stock hboot to flash it, so all of the files you see that must be flashed as part of these processes will be named that. It's highly possible, even likely, that the version we need for this pre-OTA process and the version(s) we need for other processes are different.
[myTouch 4G Android Development] mfouco:
Perfectly undestood. I'll wait then for someone to post the file. thank you.
[myTouch 4G Android Development] cdw9800:
oh no not me my phones is always modded i try just about everything lol but my gf had dropped her phone and her screen didnt crack but it has damage and some ugly dings on the back she was planning on sending it back in a few i was trying to convince her that i can just unmod it later...took a while but i did..thanks for the info tho the post count might be light but im a long time visitor
[myTouch 4G Android Development] mfouco:
ok, i changed http://dl.dropbox.com/u/14877744/manualota.zip to http://www.dropbox.com/u/14877744/manualota.zip and it downloaded fine. I'll try now
[myTouch 4G Android Development] myrdhyn:
Excellent, good luck.

I wonder if we can get the OP to update the URL in his post?
[myTouch 4G Android Development] mfouco:
Well, i still can't root with step 3. Not with 2.2.1, not with this procedure of 2.2. Ive tried the root.sh script, the broot.sh script, the terminal command procedure, the adb.bat procedure and the youtube procedure. Guess i'm stuck, i don't even know what's wrong.
[myTouch 4G Android Development] myrdhyn:
What exactly is happening?

edit: If you're truly stuck on Step 3 and have S-OFF but can't gain perma root, try this:

1) Download VISIONary R11

2) uninstall current visionary

3) reboot (pull battery) to make sure you have NO root privileges,

4) install VISIONARY R11 (adb install <filename>)

5) Open VISIONary R11 tell it to root and be patient wait for it to get all the way back to the normal VISIONary screen,

6) Then reboot again (pull battery), when you boot back up you should have access to 'su' in terminal without re-opening visionary and rooting.

7) At that point you can uninstall VISIONary completely and should have root on reboot.

If you don't even have S-OFF yet, I've got something else you can try.
[myTouch 4G Android Development] mfouco:
From downgraded 2.2. Goes Great before step 3, then on permaroot,

1. Visionary With RW

2. Terminal with permaroot procedure broot.sh

{

SU

CD /sdcard/broot

sh broot.sh

}

3. Wait till procedure tells me to reboot

4.Exit Terminal

5. Visionary with RW again

6. Terminal

{

su

sync

}

7. Wait 1 minute

8. Boot into Anroid

9. Visionary with RW again

10. Boot into hboot/ S=On still
[myTouch 4G Android Development] tk192:
Can't seem to get this to work. Everytime I try to get the root.sh executed in terminal the wpx.ko file always fails to go through. Any ideas why this would be? Thnx in advance.
[myTouch 4G Android Development] myrdhyn:
First, everyone needs to make sure they've got VISIONARY R11, not R12. Second make sure you've got fast boot turned off in the OS. Third you need to make sure you've flashed the appropriate system image from the OP as part of step one. Flash it twice if you aren't sure it went through, it won't hurt anything. You should still have S-ON at this point.

On the next step, when you go into the other thread and download the files etc. when you are copying the contents of the downloaded file to your SD card, it should be in a folder called "root" on the root of your SD card. I know that's a bit confusing, but the script contained therein has absolute paths to /sdcard/root, so if the three files aren't in that folder specifically it won't work. I ran into this last night.

So your procedure would be roughly this:

1) Download the file with the wpx.ko and hboot_blahblabhalbh and root.sh

2) Copy those files to /sdcard/root/

3) Run Visionary R11, tell it to temproot/root/whatever the option is called. It should not be set to re-root on reboot if the option is there (drawing a blank if it is right now)

4) Open up a terminal on the phone OR adb shell

5) Type 'su' + enter to gain root (tell superuser to allow if you get the popup)

6) at this point your shell shoudl start with # not $

7) type "cd /sdcard/root/" press enter

8) type "ls" press enter. You should see three files in there the wpx, the hboot, and the root.sh

9) type "sh root.sh"

10) let it do it's thing, after it syncs wait a minute or two, reboot the phone (I prefer pulling batteries for this.

11) Boot into hboot and you should see S-OFF (you'll have better luck with hboot not being annoying if you remove the PD15IMG from your sd card before doing this).

12) Reboot into Android (again pull battery is preferred method here)

13) Run VISIONARY a second time

14) Tell visionary to root and wait wait wait even if the screen goes black (not locked, but black in visionary) eventually it will return to the main visionary window

15) at this point reboot a third time (again pull battery is preferred even if you shut phone down normal first)

16) Boot phone back up and check for SU in terminal (some people say this takes a few reboots). Uninstall Visionary if you get Su without having to re-root in visionary.

17) You're ready to move on to the next step in the process.

If this doesn't work, if you need more specifics like every individual command to type, or if I've mistyped something above, I'll have to get back with you when I get home from work. However, I'll warn you in advance, if I write up a step-by-step every single command writeup it will require you have ADB working and not scared to use it.
[myTouch 4G Android Development] mfouco:
Thank you. I've used adb and i'm at all afraid of it. I've used the same procedure you just mentioned. Pulling the battery and not pulling the battery. I do have visionary +, flashed the OP image, And Boot flag is off in Visionary/Debugging is on I Debugging and r/w is ON in Visionary.

thank you.
[myTouch 4G Android Development] myrdhyn:
try turning r/w off in visionary. Also, I don't have it installed at the moment, but I'm almost positive if you hvae the "r/w" option in visionary you are using the wrong version of visionary. I couldn't get R12 to work after an hour or so of trying various things, and it appears others haven't been able to get it to work either. Go with R11, I linked it directly a few replies back.
[myTouch 4G Android Development] coachmai:
@mfouco check your PM
[myTouch 4G Android Development] mfouco:
@coachmai thanks, did.
[myTouch 4G Android Development] slhpss:
It is a very different pd15img
[myTouch 4G Android Development] slhpss:
I verified all the links last night and they were fine, but I will move them to my web server tonight since drop box seems to act up for some of you guys. If you're having problems you can always send me a pm and I will work one on one with you if necessary.