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

Search This thread

grankin01

Senior Member
Feb 9, 2008
973
658
Georgetown, KY
No problem.

As to my question, have you had any problems with
Code:
dd if=/data/local/hboot_dhd.nb0 of=/dev/block/mmcblk0p18

hanging with using adb shell?

I think my answer got garbled with the text in my previous post. No I haven't had any trouble with adb shell or terminal and tried it with both. Not during the actual process of rooting anyway.

However, now I can't get su to work. It still says permission denied.:confused:

Working on it but have to leave for work here in a little bit.:eek:
 

PolishDude

Senior Member
Jul 16, 2010
727
49
Tampa, FL
works perfect :) i took out the battery after deleting visionary and just restarted the phone, superuser is still there and still have root access to everythign :)

I got worried at first because i accidently forgot to turn off fastboot after the final step so when it rebooted i was getting nonstop forcecloses, i pulled the battery and let the phone boot up on its own and works perfectly now...thank you guys!!!

btw if i can do this, anyone can do this...used roots explorer to move the files and a terminal emulator off the market to put in the script...its easy, just follow it step by step
 
Last edited:

RealityDesign

Senior Member
Oct 14, 2010
59
3
No matter what I do I can't get this to stick. I always get to the end, but visionary just says "already rooted." I tried rebooting and running visionary, but it doesn't stick. Do I need an older version of visionary that doesn't check if the phone is already rooted or what?
 

c_licious

Senior Member
Aug 14, 2009
319
12
No matter what I do I can't get this to stick. I always get to the end, but visionary just says "already rooted." I tried rebooting and running visionary, but it doesn't stick. Do I need an older version of visionary that doesn't check if the phone is already rooted or what?

Try rebooting, run visionary, open terminal and sync again
 

grankin01

Senior Member
Feb 9, 2008
973
658
Georgetown, KY
No matter what I do I can't get this to stick. I always get to the end, but visionary just says "already rooted." I tried rebooting and running visionary, but it doesn't stick. Do I need an older version of visionary that doesn't check if the phone is already rooted or what?

Do you have run-on-boot unchecked in visionary and fastboot unchecked in application settings menu? Are you running pre-ota or post-ota?
 

RealityDesign

Senior Member
Oct 14, 2010
59
3
Post OTA, run-on-boot is unchecked, I've tried both with fastboot on and off. Obviously with fastboot on, powering down wouldn't do anything, but "restart" still functions the same.
 

PolishDude

Senior Member
Jul 16, 2010
727
49
Tampa, FL
No matter what I do I can't get this to stick. I always get to the end, but visionary just says "already rooted." I tried rebooting and running visionary, but it doesn't stick. Do I need an older version of visionary that doesn't check if the phone is already rooted or what?

mine said the same thing, did you go back into terminal after that and type in sync? It took me two tries, the first time it didnt stick so i restarted the phone, opened up visionary, rooted it, opened up terminal emulator, typed in sync, waited a couple minutes and restarted the phone (with quickboot off) and now it works
 

grankin01

Senior Member
Feb 9, 2008
973
658
Georgetown, KY
OP has been updated with the md5sums for the downloads so that you can check if they are corrupted or not. I also had trouble uploading so I think megaupload is feeling the pain from these phones being rooted. :D
 

RealityDesign

Senior Member
Oct 14, 2010
59
3
This is exactly what I'm doing / seeing.

1) I run visionary, get temproot.
2) I run these exact commands from adb:

Code:
./adb shell
$ su
# insmod /data/local/wpx.ko
insmod: init_module '/data/local/wpx.ko' failed (Function not implemented)
# dd if=/data/local/hboot_dhd.nb0 of=/dev/block/mmcblk0p18
2048+0 records in
2048+0 records out
1048576 bytes transferred in 0.529 secs (1982185 bytes/sec)

3) I go back to visionary, it says "your device is already rooted"

At this point, do I sync or do I reboot, visionary, then sync? I've tried both, but neither stick.

Also, how do you know when the sync is complete?
 
Last edited:

grankin01

Senior Member
Feb 9, 2008
973
658
Georgetown, KY
This is exactly what I'm doing / seeing.

1) I run visionary, get temproot.
2) I do run these exact commands from adb:

Code:
./adb shell
$ su
# insmod /data/local/wpx.ko
insmod: init_module '/data/local/wpx.ko' failed (Function not implemented)
# dd if=/data/local/hboot_dhd.nb0 of=/dev/block/mmcblk0p18
2048+0 records in
2048+0 records out
1048576 bytes transferred in 0.529 secs (1982185 bytes/sec)

3) I got back to visionary, it says "your device is already rooted"

At this point, do I sync or do I reboot, visionary, then sync? I've tried both, but neither stick.

Wait ... not to flame or anything but if you read a little above when I tell you to run visionary again and restart your terminal session I say to disregard if you are in adb shell.

Yes, follow the steps as you described (all that looks really good) and the type sync from where you stopped and see what it does. ;)
 

PolishDude

Senior Member
Jul 16, 2010
727
49
Tampa, FL
sync, wait a couple minutes reboot....if it doesnt stick, when the phone turns on, root, sync, reboot...it worked the second time for me...also not sure if it matters but the 2nd time i first typed in sync, then i typed su enter, and sync...becasue wasnt sure which one to use
 

c_licious

Senior Member
Aug 14, 2009
319
12
This is awesome news! I'm waiting for the tutorial to become a bit more noob-friendly and I want a CyanogenMod rom to flash.

It's actually really easy. If you're not familiar with adb just download root explorer from market, move the 2 files to your phone's sd card and copy them from there (with root explorer) into data/local. The rest is just copying what you see on the computer screen. Just make sure to spell everything correct and you will be perm-rooted within 5 minutes
 

RealityDesign

Senior Member
Oct 14, 2010
59
3
Wait ... not to flame or anything but if you read a little above when I tell you to run visionary again and restart your terminal session I say to disregard if you are in adb shell.

Yes, follow the steps as you described (all that looks really good) and the type sync from where you stopped and see what it does. ;)

I assumed the part you said to disregard was closing the terminal, not running visionary again. That wasn't the most clear, to be fair.

I will try a 5th time here, but I already did what you described (running sync without visionary again, before rebooting) and it didn't stick either.
 

grankin01

Senior Member
Feb 9, 2008
973
658
Georgetown, KY
@PolishDude,

Thanks for the mention of pulling the battery! I ran this and it ran perfect but when I uninstalled visionary and rebooted su wouldn't work. This little gem fixed it.

I'll add it to the OP. :D
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    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. :D)
    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. :D

    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! :D

    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 :D

    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.
    4
    This is so frustrating... I can't get an installable version of the visionary r11, I've tried Modaco's site and several links from members in this thread and all of them are not installable through Astro. And through Linda file manager, it gives me parsing errors. I'v checked if it has a .zip on the ending but it doesn't. All of them are .apk files but yet aren't installing. I'm dumbfounded....

    Any help would be greatly appreciated. :)

    Here is three versions of visionary. One is run-on-boot, one is not and one is the plus version. Enjoy :D.
    2
    I dont know what i'm doing wrong but it wont let me flash pd15img.zip with clockwork its saying abort bad file or something other....urrr what am I doing wrong?

    Sorry, reboot into hboot and it will check the package and ask you if you want to apply the update.
    1
    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.
    1
    Guys might be a stupid question but how do you get into the hboot on mytouch 4g. I thought it was the power button and camera but that doesn't seem to work.

    Turn off "Fast Boot" under Applications then power on holding Power + Vol Down