Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,783,129 Members 45,808 Now Online
XDA Developers Android and Mobile Development Forum

Guide to permaroot, s=off AND s=on!!!!!

Tip us?
 
grankin01
Old
(Last edited by grankin01; 24th November 2010 at 04:09 PM.)
#1  
grankin01's Avatar
Senior Member - OP
Thanks Meter 652
Posts: 971
Join Date: Feb 2008
Location: Georgetown, KY

 
DONATE TO ME
Default Guide to permaroot, s=off AND s=on!!!!!

First of all, unforgiven512 deserves most of the credit for coming up with the initial tutorial for perm root and s=off for the new HTC devices. Also, thanks to adwinp for the instructions on hexeditting the kernel module to make it work with the MT4G.

This was a collaborative #g2root effort, primarily involving scotty2, tmzt, IntuitiveNipple but also many others!

Ok, so the usual disclaimers go here:

I am not responsible for your bricked phone or the ignorance that may or may not have caused it based on the fact that you CHOSE to follow these steps. Read through the forums and LEARN before you attempt to flash any device. You have been warned.

This method only works for those devices who have already received their OTA update!!!

Now that that is out of the way here we go:

First make sure you have visionary installed!

Root.rar (all files plus a script to make things a little easier. )
http://www.mediafire.com/?flit79p2y069bb3
md5sum: 46361b0cc8652d88688c0ab66d44950b

1. Download the root.rar file and unzip it to /sdcard on your device.

2. Run VISIONary to gain temp root.

Now I am going to run two different sets of instructions (you'll understand why in a minute):


Terminal Emulator Method
3a. Start terminal emulator up on your device.(I prefer this method b/c you can see the output.)

a. type "su" + enter to gain root privileges.

b. Type "cd /sdcard/root" + enter.

c. Type "sh root.sh" + enter.

d. Follow the on screen prompts.


File Explorer Method
3b. Start up root explorer, sufbs, or some other type of file browser with root privileges.

a. Navigate to /sdcard/root on your device.

b. Click on root.sh and allow it to run. Some file browsers ask you if you want to or not.

c. Now wait about 18 to 20 seconds and restart your device into the bootloader to check if S=off is displayed.

4. Start the device back up.

5. Run visionary again and reboot again. This will make root stick.

You can now uninstall visionary and enjoy permaroot.

Alternative Root Process

First, uninstall visionary and superuser and restart your device to wipe out temp root.

Second, download MT4G Modperm.zip and unzip its contents to your sdk tools directory.

MT4G Modperm.zip: http://www.mediafire.com/?eaw0q0zjc7rrrwh
MD5Sum: 3ea4a7a6ddee711d12f7350ce60fae33

Then:

Windows Users:
1a. Using Explorer navigate to the root of your sdk. Hold shift and right mouse click on the tools folder. Select "Open command window here".

2a. Type "adbbat" + enter. Wait till the batch file finishes.

Linux Users:
1b. Using file browser of your choice (or terminal) navigate to the tools folder of your sdk and double click on adbbat.sh (type sh adbbat.sh if you are using terminal). Credit for adbbat.sh goes to slhpss.

2. Disconnect your phone from the PC.

3. Open terminal emulator on the phone and type "/data/local/rage" + enter. Wait for "Forked XXXXXXXX children" to appear and then close the terminal.

4. Start terminal back up. It should force close.

5. Start terminal back up, again. This time it should stay open and you should have a "#" prompt instead of a "$" prompt. Then type "/data/local/temp.sh.

6. When the script finishes run /data/local/rage again and sit tight. The phone should start acting weird and do a soft reboot. Then right after everything loads it should do a hard reboot. After the hard reboot reboot and check S.(If it doesn't do the two reboots just reboot into hboot yourself after rage finishes with the "forked xxxxxxxx children" message.

7. Enjoy root!

If you still have problems getting su to work after this uninstall visionary, shutdown, pull battery, and restart. Should work after that. Props to PolishDude for figuring that one out.

If you have tried EVERYTHING and still cannot get it to work for through the process and wait 30 minutes to an hour. The driver might have a cache delay write and you may need to give it some time to allow the sync command to work. This has worked for one other person (mfouco). BTW, this was figured out by coachmai. Props man!

If su doesn't stick, flash again! You can't overroot it!

Process for turning S back on

Download this file and unzip it to /sdcard on your device.

unroot.rar
http://www.mediafire.com/?12oi5elu7v2y8og
md5sum: aad4e64126cf8d92d7e8b5abb48fdadd

Terminal Emulator Method
1. Open up terminal editor on your device.(I prefer this method b/c you can see the output.)

a. Type "su" + enter to gain root privileges.

b. Type "cd /sdcard/unroot" + enter.

c. Type "sh unroot.sh" + enter.

d. Follow the onscreen prompts.



File Explorer Method
2. Open root explorer, sufbs, or some other file browser with root access.

a. Navigate to /sdcard/unroot.

b. Click on unroot.sh and allow it to run. Some file browsers ask permission before they execute scripts.

c. Wait 18 to 20 seconds and reboot your phone into the bootloader to check if S=on.

You now have S=ON again.

Since we opened up the nand to writes you should still retain persistent root privileges.

Hope this makes it all easier for you.
Cheers --grankin01

For everyone that is have trouble writing to the protected areas of the system after following the rooting procedures.

Reboot into Clockwork recovery and choose the mounts and storage option. From there choose mount system (or whichever protected directory you want access to) and click the trackpad. When unmount system shows you have rw access to the /system directory and all of its subs.
Attached Thumbnails
Click image for larger version

Name:	2010-11-09 15.14.07.jpg
Views:	10245
Size:	87.4 KB
ID:	437516  
MyTouch 4G (rooted, superCID, etc)

HTC One X Rooted (No S = Off ... yet )
The Following 19 Users Say Thank You to grankin01 For This Useful Post: [ Click to Expand ]
 
bobsbbq
Old
#2  
bobsbbq's Avatar
Senior Member
Thanks Meter 353
Posts: 5,153
Join Date: Jun 2008
Location: Covington, LA

 
DONATE TO ME
Great I just saw this on PaulObrians twitter so this is great news.

Mackster248 Macky Evangelista
@PaulOBrien will your visionary app tomorrow be able to root the mytouch 4g as well? Since it roots the desire hd.

Pual's answer:

PaulOBrien Paul O'Brien
@
@Mackster248 Possibly...

Question, Did you recompile the kernel for the MT4G yourself? A big thanks to everyone. We all need to dig in out pockets to these developers and not forget them.
HTC One T-Mobile version
Current ROM: Stock
Carrier: Solavei

Own your Cell service. Say no to contracts and take charge of your service.


**If you like my work click: Donations Here**

IF I HAVE HELPED YOU PLEASE USE THE THANKS BUTTON BELOW THE POST:
The Following User Says Thank You to bobsbbq For This Useful Post: [ Click to Expand ]
 
grankin01
Old
#3  
grankin01's Avatar
Senior Member - OP
Thanks Meter 652
Posts: 971
Join Date: Feb 2008
Location: Georgetown, KY

 
DONATE TO ME
No, I really didn't do much of anything but legwork on this, lol.

I had to hexedit the wpx.ko module to add our kernel version (instructions and hboot file in the desire hd permaroot thread thanks to adwinp). I then uploaded both and pasted the links here.
MyTouch 4G (rooted, superCID, etc)

HTC One X Rooted (No S = Off ... yet )
 
bubonik
Old
#4  
Senior Member
Thanks Meter 6
Posts: 344
Join Date: Apr 2006
Location: Portland
Good job man, can you post an image of the bootloader with s-off?
 
unremarked
Old
(Last edited by unremarked; 9th November 2010 at 10:08 PM.)
#5  
unremarked's Avatar
Senior Member
Thanks Meter 184
Posts: 871
Join Date: Jun 2009
Location: Out There
Testing now. I don't have my USB cable with me at the moment so I couldn't execute the ADB commands, however I moved the files to their relevant positions via Root Explorer app.

EDIT: I has a ROOT. Glacier PVT ENG S-OFF ftw!

EDIT2:
Sorry for the bad quality, but there ya go!

EDIT3: For those who were wondering, I did everything I could through Terminal Emulator with Fast Boot off and not through ADB. Once the hboot_dhd.nb0 file had completed, I believe I sync'd, then I attempted to run VISIONary which said the phone was already rooted. Went ahead and hit "Restart," then ran VISIONary one more time when it was done and restarted again to get it to stick.
Devices: G1 > Droid > Nexus One > G2 > myTouch 4G > Nexus S > Fascinate > Thunderbolt > iPhone 4 > iPhone 4S > Galaxy Nexus > iPhone 5 > Galaxy S3 > Droid DNA > Galaxy S4 > One > iPhone 5S > Nexus 5 / Nexus 7
 
Mmarzex
Old
#6  
Member
Thanks Meter 0
Posts: 41
Join Date: Apr 2009
Quote:
Originally Posted by unremarked View Post
Testing now. I don't have my USB cable with me at the moment so I couldn't execute the ADB commands, however I moved the files to their relevant positions via Root Explorer app.
Please Let us know how it goes. And also does this require the OTA update to 2.2.1?
 
gaww
Old
#7  
Senior Member
Thanks Meter 482
Posts: 3,671
Join Date: Oct 2010
Location: Western NC
Quote:
Originally Posted by grankin01 View Post
No, I really didn't do much of anything but legwork on this, lol.

I had to hexedit the wpx.ko module to add our kernel version (instructions and hboot file in the desire hd permaroot thread thanks to adwinp). I then uploaded both and pasted the links here.

There were actually three files on the G2 thread. Two were slightly different versions - pre-OTA and post OTA update. Which is the one here - pre or post OTA?

I have the OTA update, and am hoping I don't have to roll back to do this.

In any case - great job for getting it up for the MT4G. Just want to be sure what i am working with.
 
persiansown
Old
#8  
Recognized Developer
Thanks Meter 718
Posts: 853
Join Date: Jan 2007
Getting my MyTouch in a couple of hours. Can't wait for the new challenge.

-kmobs
I do CyanogenMod stuff.

Circle me on Google+
 
unremarked
Old
#9  
unremarked's Avatar
Senior Member
Thanks Meter 184
Posts: 871
Join Date: Jun 2009
Location: Out There
Bump for great success! I'll try to post a picture of my S-OFF.
Devices: G1 > Droid > Nexus One > G2 > myTouch 4G > Nexus S > Fascinate > Thunderbolt > iPhone 4 > iPhone 4S > Galaxy Nexus > iPhone 5 > Galaxy S3 > Droid DNA > Galaxy S4 > One > iPhone 5S > Nexus 5 / Nexus 7
 
unremarked
Old
#10  
unremarked's Avatar
Senior Member
Thanks Meter 184
Posts: 871
Join Date: Jun 2009
Location: Out There
Quote:
Originally Posted by Mmarzex View Post
Please Let us know how it goes. And also does this require the OTA update to 2.2.1?
I'm going to assume so since I was on 2.2.1 and it worked.

Double post, all the way! What does this meeeeaaan?
Devices: G1 > Droid > Nexus One > G2 > myTouch 4G > Nexus S > Fascinate > Thunderbolt > iPhone 4 > iPhone 4S > Galaxy Nexus > iPhone 5 > Galaxy S3 > Droid DNA > Galaxy S4 > One > iPhone 5S > Nexus 5 / Nexus 7

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes