
Unlocking your Android HTC myTouch 4G! Via S-OFF/Permaroot!
This process will do three things for your device. I will explain them here:
2. It will subsidy unlock (SIM unlock) your device. In other words, it will SIMUNLOCK your phone allowing you to use an AT&T sim card and so on in your device without needing the unlock code from HTC/T-Mobile.
This process will not change your bootloader (unless your on 0.86.0000 and you follow the optional steps).
This guide assumes you know how to use ADB. If you do not there are guides all over XDA to show you how. There is even a really good one in this forum. Also here is a video on how to setup adb discovered by topgun303: http://www.youtube.com/watch?v=1UF5w1dKe2U
*NOTE*
For some reason this process can bork your recovery. If you notice after following the steps below that in order to reboot from recovery you have to uninstall/reinstall the battery and hit the power button, just install/reinstall clockwork recovery through Rom Manager in the android market and it will fix your problem.
Android Unlocking Time!!
Make sure you have visionary installed on your device.
Download this file:
http://www.mediafire.com/?s7afymwe2wb3x60
1. Now unzip the file into your SDK tools directory.
2. Plug your device into your computer.
3. Now open explorer and hold down shift at same time you right mouse click on your SDK tools directory (platform-tools if you have the R8 version of the SDK). Select open command window here. If you are in linux (ubuntu) right mouse click on your SDK tools folder, choose actions, and choose open command window(or whatever it's called). Otherwise, open a command prompt and cd your way to your SDK tools directory.
4. Type "adb push gfree /data/local" and hit enter.
Optionally, you could dl the file to your phone use androzip or something like it to unzip the file and then use root explorer to move the file named gfree to /data/local. Not the gfree.h file. All the other files are source code inlcuded for the gnu license. This would skip the first 4 steps. 
5. Now unplug your device from the computer.
6. Run visionary to gain temp root. (If you were already permarooted w/s=off ignore this step.)
7. Open terminal emulator on your device, type "su", and hit enter to gain root privileges.
8. Type "cd /data/local" and hit enter.
9. Now type "chmod 777 gfree" and hit enter to make the program executable.
10. Type "./gfree -f" and hit enter.
New features in gfree.
gfree usage:
gfree [-h|-?|--help] [-v|--version] [-s|--secu_flag on|off]
With the new features you can turn off one thing at a time. You can also turn security back on and set the CID back to stock if you wish. To turn simlock back on you still have to follow the revert procedures on this page as the information that is patched to turn the lock off is encrypted and we can't write back to it other than restoring the entire image.

So, if you wanted to leave simlock on but turn security off and set super CID the command would be "./gfree --secu_flag off --cid 11111111" + enter. The -f switch after ./gfree that is now in the above step (./gfree -f) just tells gfree to patch everything.
11. Wait for the program to finish and then reboot into HBoot to see if S=Off. Also, check your bootloader version. If it says s=off and has bootloader version 0.86.0000 it worked.
If you already had hboot 0.85.2007 you can check it through the hboot menu. It gives you an option for "system info" in the hboot menu. Highlight it and hit power. It should say CID = 11111111 or something like that. If it does your golden.
Congratulations!
12. If this is the first time you have rooted your device you will need to run visionary again (temproot w/set system r/w after root checked and then attempt permroot) to make root privileges permanent and then reboot again. Now "su" should work properly for you.
Gfree writes a backup of the file that it patches named Part7backup-numbers.bin on your sdcard. I suggest putting this file in a safe place as it is the only way to revert if you need to.
Don't feel like dealing with software? Worried you'll void your warranty or brick your phone?
There is a much safer way that is still FREE that you can do to unlock your Android phone.
Need your free unlock code?
We've partnered with Trialpay so you can complete just 1 easy offer & get your cell phone unlock code - FREE! Immediately delivered to your email address!
You can then use this free unlock code to unlock your phone in seconds! This way you won't have to deal with sometimes complicated cell phone unlocking software or void your warranty!
Using this limited time program you can do 1 simple offer and get your HTC's unlock code for free. Unlocking your phone in seconds!
About our easy free unlock code program
We've provided thousands of free phone unlock codes to our site visitors and subscribers. In addition to unlock codes, Trialpay has provided of millions of free purchases to users all over the world!
Getting your free unlock code is as simple as:

Hurry, get your unlock code now!
Buy your Android Unlock code
You can always purchase your unlock code to unlock Android. This is one of the fastest ways to get your unlock code for your phone.
Since most free Android unlocks don't exist we've partnered with nothing short of the World's greatest cell phone unlock provider to make sure you get both the cheapest Android unlock code available and get it delivered quickly to your email (most times instantly).
GET YOUR UNLOCK CODE NOW - We promise it'll be painless and quick!
Click below to unlock your Android Phone right now...
Unlocking Nav
+1 Us!
Top Unlocks
- Samsung Galaxy S SCH-I500 Rooting Guide
- Free Android Unlock: HTC myTouch 4G
- Free Android Unlock: HTC Inspire
- Sony Ericsson Xperia E51i X8
- Free Android Unlock: T-Mobile HTC G2
- Free Android Unlock: Samsung Galaxy S
- Free Android Unlock: Samsung Galaxy S 4G
- Free Android Unlock: HTC Desire HD2
- Android Unlock Codes & Software
- Acer Liquid Metal Android Root
- LG Optimus GT540 Android Unlock
- Sony Ericsson Xperia X10 Mini Pro Android Unlock
Unlockers Online
Rooting Guides
- Samsung Galaxy S SCH-I500 Rooting Guide
- Sony Ericsson Xperia E51i X8
- Acer Liquid Metal Android Root
- Toshiba Folio 100 Rooting Guide
- Motorola Milestone Rooting Guide
- HTC Sprint Hero Rooting Guide
- Samsung Transform M920 Rooting Guide
- Samsung Galaxy Portal/Spica I5700 Rooting Guide
- Samsung Captivate Rooting Guide
- Telus (Samsung) Fascinate Rooting Guide
- Sony Ericsson Xperia X10 Rooting Guide
- Motorola Charm Rooting Guide
