FORUMS
Remove All Ads from XDA

[Guide] Subsidy Unlock, SuperCID, and Radio S-OFF

2,279 posts
Thanks Meter: 6,476
 
Post Reply Email Thread
Update 12-29-10: Due to problems reported with v03, we now link to v02.

Update 12-23-10:
A new version of gfree, v02, has just been released by Guhl. Links have been updated to the new version, which allows you to set Sim Unlock, CID, and Radio S-ON/OFF independently. If you have previously run gfree, you will receive no additional benefit from running gfree v2, unless you want to change one of the settings.

Notice: gfree is known not to work for radio firmwares with higher versions then 26.03.02.xx -- the reason for this is that HTC patched the hole that allowed scotty2 to power cycle the emmc chip to drop its write protection. So if you installed a radio version with a higher version number, downgrade the radio firmware before using gfree.

Guhl also released gfree_verify, which allows you to verify your phone's settings (regardless of which gfree you used). See the wiki for more on that.

The wiki is usually up to date on the latest of everything, so be sure to check it frequently.

---------------

scotty2 delivers again!

His "gfree" program should do the following for your g2, dz, or dhd:

* Radio S-OFF -- the real deal. This means the g2 will permit permanent root.
* Subsidy Unlock -- AKA "Sim Unlock" AKA "Network Unlock" AKA "Use a foreign SIM Card"
* SuperCID - enables the flashing of any carrier's firmware for the phone.

If you don't know what this means or why you might want it, check the wiki.

INSTRUCTIONS:

NOTE: If you have NOT permarooted your phone previously with the HBOOT/wpthis method, doing so using the new "gfree" method should have the added effect of sim-unlocking the phone, setting superCID and turning Radio S-OFF. In fact, it's the new method for permarooting for G2/DZ and DHD. So if you haven't yet permarooted, look at those instructions.

Again, the instructions below are for people only who have already previously "permarooted" through the earlier hacked-HBOOT method. See the wiki if you are starting from scratch with a new G2/DZ/DHD and have not yet done anything "root-ish".

WARNING: Be aware that by following these instructions you are messing with your phone with potential for screwing things up. Do so at your own risk. The many authors of this guide assume no responsibility for any damage to your phone, health, general well-being, or anything else untoward with respect to these instructions or you following them.

gfree uses a dynamic in-memory patch of the kernel to remove the kernel's write protection of the radio partition.

So, for those of you who have permarooted the old HBOOT way and put on new kernels --The following kernel versions that are known NOT to work yet with gfree. If you have one of the following kernel versions on your phone install a different (stock, OTA or cyanogen) kernel before starting this procedure:

| pershoots 11/30 build
| pershoot's 2.6.32.26 – OC-UV-NEON_FP (1.516GHZ) – G2 - 12/3
| Cyanogen Kernel / release 6.1.1
| 2.6.32.26-cm-virtuous-v1.0 [email protected]#1

Other newer kernels may also not work with gfree. So if you experience problems with this procedure (either the phone reboots during the process or the procedure completes correctly but the verify still shows that the phone is locked) then you may think about downgrading the kernel to an original stock kernel or even better to this kernel.

Okay. So we're assuming you've permarooted already and usb debugging is on (Applications > Development, then enable USB debugging). You'll also need about 5MB free on your sdcard.

You might want to back up your phone with nandroid on the Clockwork recovery image first, just in case.

Note: If you hanker to do it the longer, manual, harder, and more dangerous way, or are just curious what gfree does, see the wiki history for the old instructions.

No? Then let's begin.

==== 1. Download gfree and verify sdcard is not mounted by your computer ====

You will need to download a program called gfree (v02) that will first copy partition 7 of the phone, then patch it, then reflash back to your phone. (verified to work with the g2 and desire z as well as the desire hd). (You will also need adb, which you can download as part of the Android SDK.)

Unzip gfree_02.zip to your computer.

Make sure your computer is not mounting your phone's sdcard.

==== 2. Run gfree on the phone ====

On your computer's terminal/command line, navigate to where the gfree file is, and then...

Code:
 adb push gfree /data/local
 adb shell
This copies gfree to your phone, then puts you in your phone's terminal. Then do this:

Code:
 su
 cd /data/local
 chmod 777 gfree
 ./gfree -f
 sync
Wait a few moments for the sync to "take". Then reboot your phone. That's it!

gfree created a backup of your original partition 7 at /sdcard/part7backup-<time>.bin you might consider copying this to a safe location on your computer.

Now you can try using a new SIM card to verifiy that it worked. Also, if you had to flash a different kernel before running gfree, you may now reflash the kernel you originally had.


Thanks to the gang at #g2root, including IntuitiveNipple, scotty2, tmzt, rhcp, ciwrl, and guhl... among many others.

Wiki: How to enable Radio S-OFF, SuperCID, and SIM-unlock (with some informational background)

File: gfree_02.zip

File: gfree_verify_v01.zip

Feel free to use the "Thanks" button below. Also, Scotty2's paypal email is walker.scott AT gmail.com if you want to make a contribution.



Finally, Americans might consider making a donation to the Electronic Frontier Foundation who fight to defend your legal right to root or unlock your own phone when the carriers and phone manufacturers may lobby or otherwise try to stop you. The EFF can always use your tax-deductible support.
The Following 38 Users Say Thank You to fattire For This Useful Post: [ View ] Gift fattire Ad-Free
 
 
30th November 2010, 01:41 AM |#2  
Member
Thanks Meter: 1
 
More
Hey thanks for posting this!

So I guess this is like perm-perm-root.

Giving it a shot now.

Sent from my HTC Vision using XDA App
The Following User Says Thank You to thenefield For This Useful Post: [ View ] Gift thenefield Ad-Free
30th November 2010, 01:50 AM |#3  
Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by thenefield

Hey thanks for posting this!

So I guess this is like perm-perm-root.

Giving it a shot now.

Sent from my HTC Vision using XDA App

Yeah it's sim-unlock too. Which is nice.
30th November 2010, 02:15 AM |#4  
xl DIGITAL lx's Avatar
Senior Member
Flag Los Angeles
Thanks Meter: 316
 
Donate to Me
More
Nice thanks going to try it to.

Sent from my HTC Vision using Tapatalk
30th November 2010, 02:24 AM |#5  
thatruth132's Avatar
Senior Member
Flag los angeles
Thanks Meter: 97
 
Donate to Me
More
shouldnt one image work for every phone
30th November 2010, 02:54 AM |#6  
Account currently disabled
Flag North Carolina
Thanks Meter: 118
 
Donate to Me
More
Word up scotty2. You the man.

EDIT: And you too fattire for writing up what no one else wants to
30th November 2010, 03:08 AM |#7  
fattire's Avatar
OP Inactive Recognized Developer
Thanks Meter: 6,476
 
Donate to Me
More
Quote:
Originally Posted by thatruth132

shouldnt one image work for every phone

No. If it did, then this would be a lot easier, huh?
30th November 2010, 03:17 AM |#8  
~~Tito~~'s Avatar
Retired Forum Moderator
Thanks Meter: 180
 
More
Cool
I cant wait until some juicy stuff comes out of this.
30th November 2010, 03:21 AM |#9  
Senior Member
Thanks Meter: 0
 
More
Now, what does this mean

"make everything better."
30th November 2010, 03:28 AM |#10  
Senior Member
Baltimore
Thanks Meter: 0
 
More


This is freaking awesome.
30th November 2010, 03:31 AM |#11  
fattire's Avatar
OP Inactive Recognized Developer
Thanks Meter: 6,476
 
Donate to Me
More
Quote:
Originally Posted by andrewklau

Now, what does this mean

"make everything better."

You know.... everything.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes