Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE] Permanent Root with Visionary/gfree (No ADB Required)

OP ianmcquinn

25th January 2011, 07:11 AM   |  #1  
OP Senior Member
Thanks Meter: 154
 
469 posts
Join Date:Joined: Nov 2007
More
After seeing lots of users struggle to root their phone with the existing guides (or worse, brick their phones), often times because of an inability to install/use ADB correctly (so they hobble together steps from multiple guides), I decided to write up a guide for rooting without the need for ADB. This guide uses the Visionary program to achieve temporary root and then gfree to achieve permanent root. Visionary is used only for the temporary root and nothing else (since many on these forums are wary of the app for permanent rooting). All of the gfree steps were scripted together to make things more convenient (and allow less room for user error in typing things in). This has been tested to work with multiple G2s and theoretically should work with the Desire Z as well (if you have the 1.72 OTA though, you will need to downgrade first in order to root as per the instructions in the wiki). All credit goes to the original developers of these programs and those others who aided in achieving root originally (I didn't add anything new content-wise, just bundled it up nicely).

WARNING: A few Desire Z users have reported being stuck on the HTC logo after following this guide. Without having a Desire Z myself, it is difficult to figure out why (since this simple automates known working methods). For the time being, I recommend Desire Z users obtain permanent root using one of the other guides out there.

Instructions
1. Install Terminal Emulator and a file manager (such as Astro File Manager) from the Market.
2. Extract the contents of the zip file to the SD card (this will create a directory called root_files on the card). When done, make sure you unmount your SD card from your computer if you had mounted it as a storage device to transfer the files.
3. Enable Unknown Sources (under Settings->Applications) and USB Debugging (under Settings->Applications->Development).
4. Using your file manager, navigate to the root_files directory on your SD card and select "com.modaco.visionaryplus.r14.apk" to install the Visionary app.
5. Start the Visionary app.
6. Click on "Temproot now." Leave all other settings unchecked.
7. Start the Terminal app.
8. Type the following commands (the $ and # symbols represent the command prompt and should not be typed):

Code:
$ su
# cp /sdcard/root_files/perm_root /data/local/perm_root
# chmod 777 /data/local/*
# /data/local/perm_root
You will see multiple messages scroll by as the programs run. Once you are returned to the prompt in terminal, you will have permanent root (S-OFF), as well as subsidy unlock and SuperCID. At this point, you can also choose to flash the engineering hboot as explained in the wiki. Flashing this hboot allows you to use the flashboot program to flash images from your computer to your phone (which can be very helpful when stuck in a bootloop for example). Note, this is often times the step that bricks people's phones when following other guides. To help mitigate the danger involved, I created a script that first checks the md5 of the hboot file to ensure it didn't get corrupted and then actually performs the flash (many times the bricking occurs because of a typo in this command). If you wish to flash the engineering hboot, type the following command in terminal if you have a G2:

Code:
# /data/local/tmp/flash_hboot
Or this command if you have a Desire Z

Code:
# /data/local/tmp/flash_hboot_z
If you get a verification failed message, you should re-download the files, re-extract them to your SD card, and run the flash_hboot script again.

If you don't want the engineering hboot, just reboot your phone. You can verify you have permanent root by holding volume down while powering on (you'll see S-OFF in the first line of the bootloader). You are now free to install a new recovery and start flashing custom ROMs. If you don't want to flash a new ROM, it's safe to uninstall the Visionary app at this point.

And if you are curious, you can open the perm_root and flash_hboot files in a text editor to see what they are actually doing...
Attached Files
File Type: zip root_files.zip - [Click for QR Code] (2.67 MB, 22486 views)
Last edited by ianmcquinn; 8th February 2011 at 03:34 PM. Reason: Add new instructions for Desire Z
The Following 69 Users Say Thank You to ianmcquinn For This Useful Post: [ View ]
25th January 2011, 12:27 PM   |  #2  
leoiden's Avatar
Senior Member
Flag In a house with a yard
Thanks Meter: 49
 
1,427 posts
Join Date:Joined: Sep 2006
thnak you bro man this was way better !!!
25th January 2011, 11:53 PM   |  #3  
GHOST99K's Avatar
Senior Member
Queens
Thanks Meter: 76
 
664 posts
Join Date:Joined: Apr 2010
More
does this apply to someone who just bought the G2.currently on stock 2.2?
25th January 2011, 11:59 PM   |  #4  
Senior Member
Flag Ft. Lauderdale Florida
Thanks Meter: 19
 
406 posts
Join Date:Joined: Oct 2010
More
Quote:
Originally Posted by GHOST99K

does this apply to someone who just bought the G2.currently on stock 2.2?

YES!!!! Especially you! This is much easier than the previous ways!

NICE!
26th January 2011, 12:05 AM   |  #5  
Member
Thanks Meter: 8
 
93 posts
Join Date:Joined: Jan 2009
I wish I had seen this last night before I spent 4 hour trying to get ADB to see my wife's new phone. Oh well got it working the hard way
The Following User Says Thank You to darock159 For This Useful Post: [ View ]
26th January 2011, 12:11 AM   |  #6  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Apr 2009
Copy flash_hboot
Do you need to copy the flash_hboot like the perm_root file?
26th January 2011, 12:16 AM   |  #7  
GHOST99K's Avatar
Senior Member
Queens
Thanks Meter: 76
 
664 posts
Join Date:Joined: Apr 2010
More
Quote:
Originally Posted by Crey23

YES!!!! Especially you! This is much easier than the previous ways!

NICE!

cool i guess 2 of my friends will be pleased to hear this cuz i'll be helping them to root their phones.
26th January 2011, 12:21 AM   |  #8  
Febby's Avatar
Senior Member
Thanks Meter: 1,257
 
3,226 posts
Join Date:Joined: May 2010
More
worked like a charm! sweet man, saved me a lot of time by making this thread and guide, definitely should be added to wiki or sticky thread.
26th January 2011, 01:26 AM   |  #9  
Junior Member
Thanks Meter: 3
 
25 posts
Join Date:Joined: Sep 2009
I just bought a T-mobile G2 as well, and I love the phone as is, but I just want to root it, so I can over-clock the cpu just a little bit (maybe about 1Ghz is fine). Can I use this method and keep the phone as is? Or does this method delete everything and I need to use custom rom? I'm coming from original MyTouch 3G (without 3.5 jack) rooted with CM, but I am still a newb.
26th January 2011, 01:36 AM   |  #10  
Herrera91's Avatar
Senior Member
Flag Houston, TX
Thanks Meter: 53
 
266 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by misterykid89

I just bought a T-mobile G2 as well, and I love the phone as is, but I just want to root it, so I can over-clock the cpu just a little bit (maybe about 1Ghz is fine). Can I use this method and keep the phone as is? Or does this method delete everything and I need to use custom rom? I'm coming from original MyTouch 3G (without 3.5 jack) rooted with CM, but I am still a newb.

Once you root the phone, everything will stay as is. Here's a link to overclock to at least 1 GHz on stock ROM: http://theunlockr.com/2010/10/20/t-m...r-t-mobile-g2/
However, it's required you first set up ADB.

The Following User Says Thank You to Herrera91 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes