Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,834 Members 46,561 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
ianmcquinn
Old
(Last edited by ianmcquinn; 8th February 2011 at 02:34 PM.) Reason: Add new instructions for Desire Z
#1  
Senior Member - OP
Thanks Meter 154
Posts: 469
Join Date: Nov 2007
Default [GUIDE] Permanent Root with Visionary/gfree (No ADB Required)

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, 21926 views)
The Following 69 Users Say Thank You to ianmcquinn For This Useful Post: [ Click to Expand ]
 
leoiden
Old
#2  
leoiden's Avatar
Senior Member
Thanks Meter 49
Posts: 1,427
Join Date: Sep 2006
Location: In a house with a yard
thnak you bro man this was way better !!!
 
GHOST99K
Old
#3  
GHOST99K's Avatar
Senior Member
Thanks Meter 76
Posts: 655
Join Date: Apr 2010
Location: Queens
does this apply to someone who just bought the G2.currently on stock 2.2?
GOOGLE CRESPO
Rom:CM10
Bootloader:Unlocked
Root:Accessed
 
Crey23
Old
#4  
Senior Member
Thanks Meter 19
Posts: 406
Join Date: Oct 2010
Location: Ft. Lauderdale Florida
Quote:
Originally Posted by GHOST99K View Post
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!
AT&T Samsung Galaxy S3 US (i747) - Rooted & Stock

ASUS Transformer TF101 - ICS 4.0.3
__
Prev: BB8900 | BB8520 | BB9700 | BB8100 | htc G2 | Galaxy Note (AT&T) | Droid X
 
darock159
Old
#5  
Member
Thanks Meter 8
Posts: 89
Join Date: 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: [ Click to Expand ]
 
konotori
Old
#6  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Apr 2009
Default Copy flash_hboot

Do you need to copy the flash_hboot like the perm_root file?
 
GHOST99K
Old
#7  
GHOST99K's Avatar
Senior Member
Thanks Meter 76
Posts: 655
Join Date: Apr 2010
Location: Queens
Quote:
Originally Posted by Crey23 View Post
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.
GOOGLE CRESPO
Rom:CM10
Bootloader:Unlocked
Root:Accessed
 
Febby
Old
#8  
Febby's Avatar
Senior Member
Thanks Meter 1253
Posts: 3,210
Join Date: May 2010
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.
 
misterykid89
Old
#9  
Junior Member
Thanks Meter 3
Posts: 25
Join Date: Aug 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.
 
Herrera91
Old
#10  
Herrera91's Avatar
Senior Member
Thanks Meter 53
Posts: 266
Join Date: Dec 2010
Location: Houston, TX
Quote:
Originally Posted by misterykid89 View Post
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.
Current Device - Samsung Galaxy Note II (SGH-T889)
ROM: CarbonRom Nightlies
Recovery: PhilZ Touch 6.12.8
HTC Vision (G2) - Retired

The Following User Says Thank You to Herrera91 For This Useful Post: [ Click to Expand ]
Thread Tools
Display Modes