Need Help Gaining S-OFF - G2 and Desire Z Q&A, Help & Troubleshooting

Hey guys, I need help understanding how to achieve S-OFF using Gfree(i heard this was the safest/easiest way) also is this different than using adb? sorry for being n00b but i need help does anyone have guide to gain S-OFF, i bought my phone on the 28th of December so i assume it is 1.72 so do i have to downgrade or something before rooting
again i would appreciate a guide off rooting and gaining s-off on 1.72 using gfree and adb
thanks guys

zbrah said:
Hey guys, I need help understanding how to achieve S-OFF using Gfree(i heard this was the safest/easiest way) also is this different than using adb? sorry for being n00b but i need help does anyone have guide to gain S-OFF, i bought my phone on the 28th of December so i assume it is 1.72 so do i have to downgrade or something before rooting
again i would appreciate a guide off rooting and gaining s-off on 1.72 using gfree and adb
thanks guys
Click to expand...
Click to collapse
First thing you need to do is reading the WIKI
http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision
To use gfree you will need to set up ADB on your computer first. guide:
http://forum.xda-developers.com/showthread.php?t=865685
and regarding 1.72 update you probably need to downgrade first but i would read this 2 posts
http://forum.xda-developers.com/showthread.php?t=886023
http://forum.xda-developers.com/showthread.php?t=905261

bahmanxda said:
First thing you need to do is reading the WIKI
http://forum.xda-developers.com/wik...sion#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
To use gfree you will need to set up ADB on your computer first. guide:
http://forum.xda-developers.com/showthread.php?t=865685
and regarding 1.72 update you probably need to downgrade first but i would read this 2 posts
http://forum.xda-developers.com/showthread.php?t=886023
http://forum.xda-developers.com/showthread.php?t=905261
Click to expand...
Click to collapse
ok i understand how to get adb but the last two are for the desire z can anyone confirm that the this will work for the htc g2(american version) thanks for everyones help on this forum

zbrah said:
ok i understand how to get adb but the last two are for the desire z can anyone confirm that the this will work for the htc g2(american version) thanks for everyones help on this forum
Click to expand...
Click to collapse
I would just a) verfiy you have adb setup and working, and then follow that wiki here: http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision
Just to verify, you are holding the T-mobile G2? If so you're fine even if you updated to 1.22 (for the tmob g2) ...just do an about phone in settings and scroll down to see what update you're on.
You'll read about possibly needing to do some hex editing to revert to 1.19 (if indeed you updated to 1.22), but steviewevie might correct me but I don't think that is the case any longer with the gfree method.

yes i have the 1.22 thanks for correcting me, so after i have adb up and working what are my next steps to root and s-off?

zbrah said:
yes i have the 1.22 thanks for correcting me, so after i have adb up and working what are my next steps to root and s-off?
Click to expand...
Click to collapse
Follow that wiki guide Really that's the best advice I can give, first you'll adb push some files to the phone to do a quick temp root. Then, you'll adb push some more files over and do the deed.
edit: right about here once adb is g2g http://forum.xda-developers.com/wik...sion#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
Follow the Requirements part, do not pass go until you have it all including the terminal emulator app installed off the market (free is fine)

zbrah said:
ok i understand how to get adb but the last two are for the desire z can anyone confirm that the this will work for the htc g2(american version) thanks for everyones help on this forum
Click to expand...
Click to collapse
I assumed you have desire z because you said you got the 1.72 update!!!

sorry for the confusion guys im really sorry, i feel like a n00b but yea i have g2 not desire z so i have 1.22 so i can just root, im looking at the guide on the wiki and it says Make sure your phone's sdcard is mounted by your phone and not your computer when following these instructions so basically is saying make sure your sd card is in your phone not in the computer, right?

zbrah said:
sorry for the confusion guys im really sorry, i feel like a n00b but yea i have g2 not desire z so i have 1.22 so i can just root, im looking at the guide on the wiki and it says Make sure your phone's sdcard is mounted by your phone and not your computer when following these instructions so basically is saying make sure your sd card is in your phone not in the computer, right?
Click to expand...
Click to collapse
Right, just make sure you're not turned on to usb disk mode (not enabled) so the phone has use of it and not your pc.

zkid2010 said:
Right, just make sure you're not turned on to usb disk mode (not enabled) so the phone has use of it and not your pc.
Click to expand...
Click to collapse
how do i do that?

zbrah said:
how do i do that?
Click to expand...
Click to collapse
You should be ok. On the G2 you have to select "USB sharing" to mount the SD card on your PC, so by default your phone should be mounting it.
Sent from my HTC Desire Z

gfree usage:
gfree [-h|-?|--help] [-v|--version] [-s|--secu_flag on|off]
-h | -? | --help: display this message
-v | --version: display program version
-s | --secu_flag on|off: turn secu_flag on or off
-c | --cid <CID>: set the CID to the 8-char long CID
-S | --sim_unlock: remove the SIMLOCK
-f | --free_all: same as --secu_flag off --sim_unlock --cid 11111111
i dont get this part of the wiki do i type this into the command prompt?

zbrah said:
gfree usage:
gfree [-h|-?|--help] [-v|--version] [-s|--secu_flag on|off]
-h | -? | --help: display this message
-v | --version: display program version
-s | --secu_flag on|off: turn secu_flag on or off
-c | --cid <CID>: set the CID to the 8-char long CID
-S | --sim_unlock: remove the SIMLOCK
-f | --free_all: same as --secu_flag off --sim_unlock --cid 11111111
i dont get this part of the wiki do i type this into the command prompt?
Click to expand...
Click to collapse
NO.... these are the options you can run as part of the Gfree command, for example:
Code:
su
cd /data/local
chmod 777 gfree
./gfree[COLOR="Red"] -f[/COLOR]
sync
If you ran the -f option it would free everything, meaning it would "Radio S-Off, Sim Unlock and it would SuperCID(CarrierID) your phone.
OR
Code:
su
cd /data/local
chmod 777 gfree
./gfree [COLOR="red"]-S[/COLOR]
sync
If you ran the -S option it would only unlock your SIM to use other carrier SIM cards.
And so on.....

Its all clearly there in the wiki...
Sent from my T-Mobile G2 running Cyanogenmod.

i now have S-Off but i am still have no network. I am using Airtel in India. Any ideas, I booted holding the volume down and it said i had S-off I becoming sort of frustrated now with the phone

zbrah said:
i now have S-Off but i am still have no network. I am using Airtel in India. Any ideas, I booted holding the volume down and it said i had S-off I becoming sort of frustrated now with the phone
Click to expand...
Click to collapse
Did you run a full unlock so that you could use Airtels SIM?
Sent from my T-Mobile G2 using XDA App

yea i did the unlock using the tmobile code that didnt work still no network. then i used visionary (unlockr method) to gain S-off. i achieved s-off but still have no network connection.

zbrah said:
yea i did the unlock using the tmobile code that didnt work still no network. then i used visionary (unlockr method) to gain S-off. i achieved s-off but still have no network connection.
Click to expand...
Click to collapse
There were lots of reports of unlock codes causing the phone to not find networks. You need to follow the gfree method explained in the wiki. This will fix the no network issue (if it is the same as everyone else's anyway).

Related

Restore gfree backup

Hello all,
I've had a DZ for nearly 2 weeks now, and have been holding off on installing roms, overclocking etc until there were clear, reversible guidlines available.
A few days ago I was being curious and ended up doing this the UBERROOT guide.
Essentially I temprooted using Visionary then executed the gfree script on my PC:
adb push gfree /data/local
adb shell
su
cd /data/local
chmod 777 gfree
./gfree
sync
This went well, and when I got to the bootloader I could see indeed that my S was OFF.
However, before I go any further I want to know how to reverse what I've done. This is mentioned at the bottom of the UBERROOT guide:
'run gfree, which will create a new backup of partition 7 in its unlocked state.
this will disable wp on the emmc, as well as remove the brq filter from the kernel.
at this point, you can dd if=/wherever/your/partition7-relock.img of=/dev/block/mmcblk0p7
sync; reboot'
I found the backup, although it was a .bin file not .img
I entered in the command above, but my phone rebooted before I could enter the 'sync' command. My S is still off, it would seem.
So my question to you fine people, having typed all this is:
How can I use the gfree backup to return my phone back to stock?
nofixio said:
How can I use the gfree backup to return my phone back to stock?
Click to expand...
Click to collapse
You can use the "dd" command to copy back the image of that original partition, as you mention.
However, the latest version of gfree now includes some new options to un-do that stuff, e.g. you can switch S-ON back on and change your SID via options. See the Wiki on this - http://forum.xda-developers.com/wik...Phone.2C_Set_SuperCID.2C_and_Turn_Radio_S-OFF
nofixio said:
Hello all,
I've had a DZ for nearly 2 weeks now, and have been holding off on installing roms, overclocking etc until there were clear, reversible guidlines available.
A few days ago I was being curious and ended up doing this the UBERROOT guide.
Essentially I temprooted using Visionary then executed the gfree script on my PC:
adb push gfree /data/local
adb shell
su
cd /data/local
chmod 777 gfree
./gfree
sync
This went well, and when I got to the bootloader I could see indeed that my S was OFF.
However, before I go any further I want to know how to reverse what I've done. This is mentioned at the bottom of the UBERROOT guide:
'run gfree, which will create a new backup of partition 7 in its unlocked state.
this will disable wp on the emmc, as well as remove the brq filter from the kernel.
at this point, you can dd if=/wherever/your/partition7-relock.img of=/dev/block/mmcblk0p7
sync; reboot'
I found the backup, although it was a .bin file not .img
I entered in the command above, but my phone rebooted before I could enter the 'sync' command. My S is still off, it would seem.
So my question to you fine people, having typed all this is:
How can I use the gfree backup to return my phone back to stock?
Click to expand...
Click to collapse
When you run gfree, it creates a bin file in your sd card. That bin file you shall rename it to "whatever".img, to be more specific rename it to partiiton7-relock.img.
Now once you did this, just run gfree again:
adb push gfree /data/local
adb shell
su
cd /data/local
chmod 777 gfree
./gfree
sync
Once done the above, just download terminal emulator and from there run:
su
dd if=/sdcard/partition7-relock.img of=/dev/block/mmcblk0p7
sync
exit
And reebot the phone, Now you can go and see you are S-ON.
This method above works without a problem as myself have tried several times, however as steviewevie mentioned, the new version of gfree does this easier.
buzmay said:
When you run gfree, it creates a bin file in your sd card. That bin file you shall rename it to "whatever".img, to be more specific rename it to partiiton7-relock.img.
Now once you did this, just run gfree again:
adb push gfree /data/local
adb shell
su
cd /data/local
chmod 777 gfree
./gfree
sync
Once done the above, just download terminal emulator and from there run:
su
dd if=/sdcard/partition7-relock.img of=/dev/block/mmcblk0p7
sync
exit
And reebot the phone, Now you can go and see you are S-ON.
This method above works without a problem as myself have tried several times, however as steviewevie mentioned, the new version of gfree does this easier.
Click to expand...
Click to collapse
How to get that file (partition7-relock.img)? Because I formated the card after g-free method and I runned the official Ruu, so now I have that stupid S-Off, I need it S-On...
Niiceg said:
How to get that file (partition7-relock.img)? Because I formated the card after g-free method and I runned the official Ruu, so now I have that stupid S-Off, I need it S-On...
Click to expand...
Click to collapse
You don't need the backup for that. Just check the Wiki to find the options for gfree that will set it back to S-ON
Sent from my HTC Desire Z
steviewevie said:
You don't need the backup for that. Just check the Wiki to find the options for gfree that will set it back to S-ON
Sent from my HTC Desire Z
Click to expand...
Click to collapse
I don't find anything more than this guide:
Turning S-On
If you are returning your Vision to stock, you will want to flash your stock ROM and Recovery image before starting this, as root permissions and S-Off are required for both of those processes.
Remove Gfree (turn back S-On):
When you first ran Gfree, it automatically backed up your stock partition 7 (with S-On) and placed it on your microSD card as a file named part7-(something).bin and you will need to rename this file to: partition7-relock.img
Open up your ADB command prompt on your computer (with your phone plugged in) and type the following exactly as shown:
Code:
adb shell
su
cd /data/local
chmod 777 gfree
./gfree
dd if=/sdcard/partition7-relock.img of=/dev/block/mmcblk0p7
sync
reboot bootloader
Your phone will reboot into bootloader. Look at the first line. The end should now say "S-On".
steviewevie said:
You don't need the backup for that. Just check the Wiki to find the options for gfree that will set it back to S-ON
Sent from my HTC Desire Z
Click to expand...
Click to collapse
I think they removed the automatic option for some reason, I beleive it was in version v.3 and now v.2 is back up. I was looking for that option for someone else early yesterday and noticed its not on the Wiki anymore, unless I missed it, but Im prettty sure I didn't. So I think were back to using the "dd if=/sdcard/partition7-relock.img of=/dev/block/mmcblk0p7" command.
Update: On fattire's thread they said they took down v3 because people were having problems with it and are now advising using v2 and the old restore method.
joemm said:
I think they removed the automatic option for some reason, I beleive it was in version v.3 and now v.2 is back up. I was looking for that option for someone else early yesterday and noticed its not on the Wiki anymore, unless I missed it, but Im prettty sure I didn't. So I think were back to using the "dd if=/sdcard/partition7-relock.img of=/dev/block/mmcblk0p7" command.
Click to expand...
Click to collapse
Where to get that file if i already formated the card?!
Niiceg said:
Where to get that file if i already formated the card?!
Click to expand...
Click to collapse
There is no where to get the file if you erased/formatted your sdcard without saving it somewhere else, the instructons on gfree tell you to do this:
"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."
So if you didnt do this I really dont know what you can do. I have my part7backup but I dont know if its specific to my device or if anyone can use it.
joemm said:
There is no where to get the file if you erased/formatted your sdcard without saving it somewhere else, the instructons on gfree tell you to do this:
"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."
So if you didnt do this I really dont know what you can do. I have my part7backup but I dont know if its specific to my device or if anyone can use it.
Click to expand...
Click to collapse
Well, What device you have? Z or G2? I think that it's not specific, because all phones are the same ;D
Niiceg said:
I don't find anything more than this guide:
Turning S-On
Click to expand...
Click to collapse
Look at http://forum.xda-developers.com/wik...Phone.2C_Set_SuperCID.2C_and_Turn_Radio_S-OFF
Scroll down to the bit that shows you the usage message for gfree and check out the "-s" option
joemm said:
I think they removed the automatic option for some reason, I beleive it was in version v.3 and now v.2 is back up. I was looking for that option for someone else early yesterday and noticed its not on the Wiki anymore, unless I missed it, but Im prettty sure I didn't. So I think were back to using the "dd if=/sdcard/partition7-relock.img of=/dev/block/mmcblk0p7" command.
Update: On fattire's thread they said they took down v3 because people were having problems with it and are now advising using v2 and the old restore method.
Click to expand...
Click to collapse
The latest gfree 0.03 had problems, yes, so they went back to 0.02 in the Wiki. But as my previous post shows, you can still un-do things with gfree 0.02.
The only reason to use the backup of partition 7 that I can think of is if you don't know what your original CID was to reset to, or if you want to SIM Lock your phone again (there doesn't seem to be an undo option for the SIM Unlock).
steviewevie said:
The latest gfree 0.03 had problems, yes, so they went back to 0.02 in the Wiki. But as my previous post shows, you can still un-do things with gfree 0.02.
The only reason to use the backup of partition 7 that I can think of is if you don't know what your original CID was to reset to, or if you want to SIM Lock your phone again (there doesn't seem to be an undo option for the SIM Unlock).
Click to expand...
Click to collapse
Ok, I see the option for sec-flag on/off but does that also restore the sim lock?
Sent from my T-Mobile G2 using XDA App
joemm said:
Ok, I see the option for sec-flag on/off but does that also restore the sim lock?
Click to expand...
Click to collapse
No it doesn't as far as I know, but that's why I said restoring SIM lock was the only real use for that part7 backup that I could think of.
steviewevie said:
No it doesn't as far as I know, but that's why I said restoring SIM lock was the only real use for that part7 backup that I could think of.
Click to expand...
Click to collapse
I wasn't sure myself, thanks.
Sent from my T-Mobile G2 using XDA App
steviewevie said:
No it doesn't as far as I know, but that's why I said restoring SIM lock was the only real use for that part7 backup that I could think of.
Click to expand...
Click to collapse
Okey, can you tell how to do everything? Because I don't know anything with that gfree... And there is no instruction... Please, help me get the S-On
I have PM'd the author of gfree about an option for SIM re-lock, because that would be useful. I guess you will still need some sort of carrier string which it needs re-locking to though ? Would be handy if perhaps gfree told you what that was before you unlocked it.
Im in the same boat as niiceg, I cannot find my backup and have had no luck in my searchs. Any Idea's what I can do from here?
Thanks in advance..
ps I'm guess my next step is to re root and do
su
cd /data/local
chmod 777 gfree
./gfree -s on
sync
???
bildo said:
Im in the same boat as niiceg, I cannot find my backup and have had no luck in my searchs. Any Idea's what I can do from here?
Thanks in advance..
ps I'm guess my next step is to re root and do
su
cd /data/local
chmod 777 gfree
./gfree -s on
sync
Click to expand...
Click to collapse
Yes, you just need to run "gfree -s on" as root to go from radio S-OFF to S-ON, no need to find/restore that backup.

gfree

Hi
Is it possible to use gfree on a non-rooted phone just to do the SIM unlock?
I guess I could do temp root + SIM unlock, right?
Bell Desire Z
I'm wondering the same thing. I just wanted a sim unlock for the time being so can I just temp root the phone?
The phone needs to be temp rooted (use rage) and then you can do the subsidy unlock method. Once that is complete it will stick with the phone after reboot if I'm not mistaken. You will just lose your temp root. But why wouldn't you want full root? Its really not that much more work. Especially if you already have adb on your computer.
Sent from my HTC Vision using XDA App
If you don't disable the NAND write protection via a permanent root method, then any changes you make via a temp root will not be written to permanent storage. So you'll lose those changes after a reboot.
So you need perm root to use gfree and make it stick. In fact gfree makes the root permanent for you. See the Wiki for details.
so I need to do s-off + sim unlock?
gfree_verify returns simlock=00, even without S-OFF
So I think it means it worked, no? Anyways why would there be an option to do only SIM unlock in gfree if you can't do it without S-OFF?
zorxd said:
gfree_verify returns simlock=00, even without S-OFF
So I think it means it worked, no? Anyways why would there be an option to do only SIM unlock in gfree if you can't do it without S-OFF?
Click to expand...
Click to collapse
You're right. Sorry, I misunderstood the question, at least partially. gfree turns off the NAND write-protection so that it can make its changes, so you can run it with temp root if you really want. But then you've very nearly achieved permanent root, all you need are the su and Superuser.apk files, plus running the "root" script.
I know, thanks
But I am a minimalist. I only enable features that I use.
There should be a simpler "how to". It's as easy as:
on computer:
get gfree and rage executables
adb push gfree /data/local/tmp
adb push rage /data/local/tmp
adb shell chmod 777 /data/local/tmp/*
on phone:
download and open terminal emulator
/data/local/tmp/rage
menu->reset terminal
open terminal emulator (force close)
open terminal emulator again
/data/local/tmp/gfree -S
reboot
zorxd said:
I know, thanks
But I am a minimalist. I only enable features that I use.
There should be a simpler "how to". It's as easy as:
on computer:
get gfree and rage executables
adb push gfree /data/local/tmp
adb push rage /data/local/tmp
adb shell chmod 777 /data/local/tmp/*
on phone:
download and open terminal emulator
/data/local/tmp/rage
menu->reset terminal
open terminal emulator (force close)
open terminal emulator again
/data/local/tmp/gfree -S
reboot
Click to expand...
Click to collapse
Your right, you are a minimalist
And this is exactly what you need to do to get sim-unlocked
I still would recommend you to -s off -c 11111111 too to get radio s-off and super-cid. In case you install the newer firmware versions by OTA you will not be able to:
- temp-root anymore because htc patched the exploit that rage used.
- not be able to change s-on/s-off perm-root because wpthis and gfree do not work on higher radio firmware versions
- not be able to downgrade to a lower firmware version (because this needs either radio s-off/super-cid or temp-root to be able to edit the version info in the misc partition 17
Just my suggestion - have fun - Guhl
Ok so basically if I do S-OFF and remove carrier id now you are saying that it would be permanent, even if I upgrade to a newer firmware?
zorxd said:
Ok so basically if I do S-OFF and remove carrier id now you are saying that it would be permanent, even if I upgrade to a newer firmware?
Click to expand...
Click to collapse
Yes for now this is permanent, the new updates to not change this.
But the new updates prevent you from rooting and changing any of these.
But if you are S-OFF you can downgrade and then you can change everything you want again.
Or let me summarize it like this:
- If you are radio s-off/super-cid you are safe because you will keep it and you still can downgrade
Thanks for the info. I ended up doing all three options with gfree.
Quick question: if I ever have to send my phone in for warranty, is there a way to reverse these things?
Goozy said:
Thanks for the info. I ended up doing all three options with gfree.
Quick question: if I ever have to send my phone in for warranty, is there a way to reverse these things?
Click to expand...
Click to collapse
Yes. gfree has options to un-do those actions, see the Wiki for details.

[Q] HTC G2 In India

hi i've unlocked my tmobile htc g2 and now gone to india and am trying to use it with the airtel service unfortunately i am unable to make calls or send texts any tips or help thanks.
are you sure the radio bands are compatible to your network over there?
Switch to 2G network.
Did you use a network unlock code? There have been a few issues reported that after using a code the handset struggles to get network reception.
Use the root, s-off, super cid thread or refer to the wiki.
wileykat said:
Did you use a network unlock code? There have been a few issues reported that after using a code the handset struggles to get network reception.
Use the root, s-off, super cid thread or refer to the wiki.
Click to expand...
Click to collapse
yea i got the code from tmobile, so after i were to root the phone, s-off it would work? also could you a put link to the thread about rooting too please thanks
dhkr123 said:
Switch to 2G network.
Click to expand...
Click to collapse
sorry but im not that great with phones, how would i do that and would it work? thanks for the tips guys
dhkr123 said:
Switch to 2G network.
Click to expand...
Click to collapse
Settings -- wireless networks -- mobile networks -- use 2g.
wileykat said:
Settings -- wireless networks -- mobile networks -- use 2g.
Click to expand...
Click to collapse
thanks i'll try that
Similar thing happen to me. Tried using a sim card while traveling but the only thing seemed to work is the unlock and super CID using gfree and adb. It seems complicated at first, at least did for me, but once you read through it and try it a few times, it works perfectly. Good luck!
zbrah said:
yea i got the code from tmobile, so after i were to root the phone, s-off it would work? also could you a put link to the thread about rooting too please thanks
Click to expand...
Click to collapse
Idk if the issues are fixed bout unlocked codes not working giving no network even if the codes came from TMO.. if u know how to root just root it nad use gfree
Sent from my HTC Vision using XDA App
to be clear: my phone is unlocked using the unlock code and i am using an airtel sim card but unable to make calls/texts
so the solution is root the phone, correct? what would that do to make it able to make work on the network?
thanks for the responses been very helpful
also if i were to root the phone could it possible bricked in the process
zbrah said:
also if i were to root the phone could it possible bricked in the process
Click to expand...
Click to collapse
No. Not possible to brick in the process. gfree is totally safe.
could someone direct me to a guide to root and to use gfree, super cid?
is there a guide that shows how to root a HTC G2 not desire z and to gain s-off thanks i've searching through this forum and havent found it
also to root first i would have to set up adb right? then root and then s-off? sorry im new to this
I was also using sim unlocked T-Mobile G2 phone on airtel SIM and everything worked fine... could you check if you have a 32K or 64K SIM...
i had issues with my old O2 orbit phone then upgraded my SIM to 32K.
Also i am now rooted and S-OFF using gfree...
http://forum.xda-developers.com/wik...sion#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
I am running G2 on Idea in Mumbai circle..If you need help in rooting/unlocking, I can help. However, since it was officially unlocked, your phone should have worked without any issues. Are you able to connect to any network at all?
Sent from my HTC Vision using Tapatalk
gfree usage:
gfree [-h|-?|--help] [-v|--version] [-s|--secu_flag on|off]
-h | -? | --help: display this message
-v | --version: display program version
-s | --secu_flag on|off: turn secu_flag on or off
-c | --cid <CID>: set the CID to the 8-char long CID
-S | --sim_unlock: remove the SIMLOCK
-f | --free_all: same as --secu_flag off --sim_unlock --cid 11111111
i dont get this part of the wiki do i type this into the command prompt?
rajatthakran said:
I was also using sim unlocked T-Mobile G2 phone on airtel SIM and everything worked fine... could you check if you have a 32K or 64K SIM...
i had issues with my old O2 orbit phone then upgraded my SIM to 32K.
Also i am now rooted and S-OFF using gfree...
http://forum.xda-developers.com/wik...sion#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
Click to expand...
Click to collapse
i have 64k and still have no network service, so after i get a 32k i will service? i rooted and have s-off now thanks
zbrah said:
gfree usage:
gfree [-h|-?|--help] [-v|--version] [-s|--secu_flag on|off]
-h | -? | --help: display this message
-v | --version: display program version
-s | --secu_flag on|off: turn secu_flag on or off
-c | --cid <CID>: set the CID to the 8-char long CID
-S | --sim_unlock: remove the SIMLOCK
-f | --free_all: same as --secu_flag off --sim_unlock --cid 11111111
i dont get this part of the wiki do i type this into the command prompt?
Click to expand...
Click to collapse
Yes, you run gfree from your phone. It also needs to be able to find gfree, and needs to be run as root. So at the root # command prompt on your phone, if you "cd" to where gfree is stored, then run "./gfree -f" you will get S-OFF, SIM unlock and SuperCID.
Sent from my HTC Desire Z

[Q] Trouble Rooting

Okay, so i received my G2 today, and trying to root it. I have two rooted phones with CM6 on them (Nexus One, and MyTouch3g), I rooted the nexus back in the day before the one click root applications, so i am not new to rooting.
Before we flame, i DID Google, and search the XDA threads here. But I'm still getting some problems, ill try to explain.
I'm using the CyanogenMod Wiki tutorial.
Code:
If the HTC Desire Z is already running 1.34.707.3 or lower you can skip to the Gaining Temporary Root Access section.
My firmware is a 1.22.###.# wich leads me to believe that i am below the required firmware.
I attempted root per the rest of the tutorial, got to the gfree script and got an error stating it could not power cycle the something.
Ive been reading and to my understanding, this is caused by not having the proper firmware.
Okay, so i started over. and started at the top with Downgrade to 1.34.707.3
I got to step 8
This is step 6-8 for reference
Code:
# Copy the 1.34.707.3 firmware to the root of the SD card (NOT in any folders).
# On the computer, open terminal and run the following command:
adb reboot bootloader
# Follow the on screen directions, on the HTC Desire Z, on flashing the 1.34.707.3 firmware.
# Once finished you can can continue to the next section.
so i adb reboot bootloader, [email protected] reboots to HBOOT
however i have a standard HBOOT screen. I can go to Fastboot, and back to HBOOT.... when i try to go to recover i get the phone/exclamation triangle icon (as expected, as i don't have a custom recovery yet).
So where it says "Follow the on screen directions, on the HTC Desire Z, on flashing the 1.34.707.3 firmware. ", i am not getting any such directions, just the basic HBOOT screen.
ANY help would be appreciated.
stshannon said:
Okay, so i received my G2 today, and trying to root it. I have two rooted phones with CM6 on them (Nexus One, and MyTouch3g), I rooted the nexus back in the day before the one click root applications, so i am not new to rooting.
Before we flame, i DID Google, and search the XDA threads here. But I'm still getting some problems, ill try to explain.
I'm using the CyanogenMod Wiki tutorial.
Code:
If the HTC Desire Z is already running 1.34.707.3 or lower you can skip to the Gaining Temporary Root Access section.
My firmware is a 1.22.###.# wich leads me to believe that i am below the required firmware.
I attempted root per the rest of the tutorial, got to the gfree script and got an error stating it could not power cycle the something.
Ive been reading and to my understanding, this is caused by not having the proper firmware.
Okay, so i started over. and started at the top with Downgrade to 1.34.707.3
I got to step 8
This is step 6-8 for reference
Code:
# Copy the 1.34.707.3 firmware to the root of the SD card (NOT in any folders).
# On the computer, open terminal and run the following command:
adb reboot bootloader
# Follow the on screen directions, on the HTC Desire Z, on flashing the 1.34.707.3 firmware.
# Once finished you can can continue to the next section.
so i adb reboot bootloader, [email protected] reboots to HBOOT
however i have a standard HBOOT screen. I can go to Fastboot, and back to HBOOT.... when i try to go to recover i get the phone/exclamation triangle icon (as expected, as i don't have a custom recovery yet).
So where it says "Follow the on screen directions, on the HTC Desire Z, on flashing the 1.34.707.3 firmware. ", i am not getting any such directions, just the basic HBOOT screen.
ANY help would be appreciated.
Click to expand...
Click to collapse
Which phone do you have? You stated that you have a G2 (which is an HTC Vision) but you're referencing a guide for a Desire Z
Sent from my T-Mobile G2 using XDA App
OriginalGabriel said:
Which phone do you have? You stated that you have a G2 (which is an HTC Vision) but you're referencing a guide for a Desire Z
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
Hmmmmmm.... if its as simple as im using the wrong guide, im going to feel really dumb.
Im clicking through the CyanogenMod wiki again, and yes i see after i click HTC Vision form the main page, theres two options, and apparently, i am using the Desire Z (which i thought was the codename for my us version of the HTC device).... i will make another attempt using the proper (hopefully) tutorial.
God i feel like such a newb.
Thanks for getting me pointed in the right direction tho.
stshannon said:
Hmmmmmm.... if its as simple as im using the wrong guide, im going to feel really dumb.
Im clicking through the CyanogenMod wiki again, and yes i see after i click HTC Vision form the main page, theres two options, and apparently, i am using the Desire Z (which i thought was the codename for my us version of the HTC device).... i will make another attempt using the proper (hopefully) tutorial.
God i feel like such a newb.
Thanks for getting me pointed in the right direction tho.
Click to expand...
Click to collapse
Damn kids these days!
Here you go: http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#Rooting_the_G2
Sent from my T-Mobile G2 using XDA App
I'll be up for a bit, post back if you run into any problems; I'll try to take a peek back here often.
Sent from my T-Mobile G2 using XDA App
okay, still fail, same power cycle emmc (or whatever) failure.
Got MSN we can keep the thread fairly clean?
I sent you a PM with my contact info, if you are up for helping via MSN or phone.
Well, OriginalGabriel must have gone AFK, or to sleep or something.
Anyone else with advice would be appreciated.
Im using the correct Wiki Guide for Tmobile G2
I get to the enter "/data/local/gfree -f" in the terminal emulator, and it fails. It fails power cycling the eMMC (or something similar), and the next 3 commands do not work either (assumably because the eMMC did not power cycle properly.)
Baseband Version 12.28b.60.14eU_26.03.02.26_M
Kernel Version 2.6.32.17-g9ab3677 [email protected]#1
Build number 1.22.531.8 CL277427 release-keys
im running into the same problem as well. as soon as i get to step where i enter in
/data/local/gfree -f
in the terminal emulator, i get the same eMMC failure message and the remaining 3 commands don't work
stshannon said:
Well, OriginalGabriel must have gone AFK, or to sleep or something.
Anyone else with advice would be appreciated.
Im using the correct Wiki Guide for Tmobile G2
I get to the enter "/data/local/gfree -f" in the terminal emulator, and it fails. It fails power cycling the eMMC (or something similar), and the next 3 commands do not work either (assumably because the eMMC did not power cycle properly.)
Baseband Version 12.28b.60.14eU_26.03.02.26_M
Kernel Version 2.6.32.17-g9ab3677 [email protected]#1
Build number 1.22.531.8 CL277427 release-keys
Click to expand...
Click to collapse
Shut down adb.exe by using ctrl alt del and then try again. It should start up again all by itself for the perm root process.
EdKeys said:
Shut down adb.exe by using ctrl alt del and then try again. It should start up again all by itself for the perm root process.
Click to expand...
Click to collapse
Tried that, end processed the adb.exe after i (in cmd window on computer)
Code:
adb push gfree /data/local
adb shell chmod 777 /data/local/gfree
but before i (in terminal emulator on G2)
Code:
/data/local/gfree -f
Still get same power cycle fail on the eMMC.... should i unplug it from the computer when i run gfree? think power from USB is keeping the eMMC powered and wont let it cycle? <shrug>
stshannon said:
Well, OriginalGabriel must have gone AFK, or to sleep or something.
Anyone else with advice would be appreciated.
Im using the correct Wiki Guide for Tmobile G2
I get to the enter "/data/local/gfree -f" in the terminal emulator, and it fails. It fails power cycling the eMMC (or something similar), and the next 3 commands do not work either (assumably because the eMMC did not power cycle properly.)
Baseband Version 12.28b.60.14eU_26.03.02.26_M
Kernel Version 2.6.32.17-g9ab3677 [email protected]#1
Build number 1.22.531.8 CL277427 release-keys
Click to expand...
Click to collapse
stshannon said:
Tried that, end processed the adb.exe after i (in cmd window on computer)
Code:
adb push gfree /data/local
adb shell chmod 777 /data/local/gfree
but before i (in terminal emulator on G2)
Code:
/data/local/gfree -f
Still get same power cycle fail on the eMMC.... should i unplug it from the computer when i run gfree? think power from USB is keeping the eMMC powered and wont let it cycle? <shrug>
Click to expand...
Click to collapse
are you sure all the files were pushed to the g2? pm me with your phone number and i'll call you to help, if I can.....
kimchi29 said:
im running into the same problem as well. as soon as i get to step where i enter in
/data/local/gfree -f
in the terminal emulator, i get the same eMMC failure message and the remaining 3 commands don't work
Click to expand...
Click to collapse
What step is that ^^^^^ command in????
Heres the commands:
Keep in mind these are the commands after you temp root with Rage in the WIKI.
This command on the computer:
Code:
adb push gfree /data/local
Then on phone terminal emulator:
Code:
# cd /data/local
# chmod 777 gfree
# ./gfree -f
# sync
Then lock in root;
Code:
# /data/local/tmp/root
# sync
Are you guys following the Wiki HERE.
By the way as soon as a MOD see this thread its either gonna get locked or moved for being posted in the wrong section.
EdKeys said:
are you sure all the files were pushed to the g2? pm me with your phone number and i'll call you to help, if I can.....
Click to expand...
Click to collapse
PM Sent
joemm said:
What step is that ^^^^^ command in????
Heres the commands:
Keep in mind these are the commands after you temp root with Rage in the WIKI.
This command on the computer:
Code:
adb push gfree /data/local
Then on phone terminal emulator:
Code:
# cd /data/local
# chmod 777 gfree
# ./gfree -f
# sync
Then lock in root;
Code:
# /data/local/tmp/root
# sync
Are you guys following the Wiki HERE.
By the way as soon as a MOD see this thread its either gonna get locked or moved for being posted in the wrong section.
Click to expand...
Click to collapse
No, im using the one on the CyanogenMod Wiki page.
stshannon said:
No, im using the one on the CyanogenMod Wiki page.
Click to expand...
Click to collapse
Why not use the XDA Wiki? Known to work time and time again.

[Q] How to unlock Desire HD 4G?

Well, as the title says, how do I unlock the Desire HD 4G, now that the aahk tool is not being used? I've searched and searched but I don't find anything.
Thanks in advance.
ghosts3v3n said:
Well, as the title says, how do I unlock the Desire HD 4G, now that the aahk tool is not being used? I've searched and searched but I don't find anything.
Thanks in advance.
Click to expand...
Click to collapse
Did you search the Development forums? Easy Ace Root Tool.
bananagranola said:
Did you search the Development forums? Easy Ace Root Tool.
Click to expand...
Click to collapse
I've read about it, but I see it only works for root. I've already rooted my phone and booted up a custom rom, I just don't find a way to unlock it and make it work with Simple Mobile.
ghosts3v3n said:
I've read about it, but I see it only works for root. I've already rooted my phone and booted up a custom rom, I just don't find a way to unlock it and make it work with Simple Mobile.
Click to expand...
Click to collapse
So you're asking about SIM unlock, not bootloader unlock? AAHK's old website has a high-level manual guide for how to do everything AAHK used to do.
bananagranola said:
So you're asking about SIM unlock, not bootloader unlock? AAHK's old website has a high-level manual guide for how to do everything AAHK used to do.
Click to expand...
Click to collapse
Well, I can't say i'm a pro at Android, but I ain't bad either. I took a read at that. I believe that manual is to SIM Unlock? Again, I read it but tbh, not everything is explained easily. It would help if someone would explain what is going on. (not what do I have to do.)
ghosts3v3n said:
Well, I can't say i'm a pro at Android, but I ain't bad either. I took a read at that. I believe that manual is to SIM Unlock? Again, I read it but tbh, not everything is explained easily. It would help if someone would explain what is going on. (not what do I have to do.)
Click to expand...
Click to collapse
The manual is, top to bottom, what AAHK used to do. That includes SIM unlock. That also includes S-Off, recovery, and root. He gives a high-level explanation of each step. What kind of explanation are you looking for?
bananagranola said:
The manual is, top to bottom, what AAHK used to do. That includes SIM unlock. That also includes S-Off, recovery, and root. He gives a high-level explanation of each step. What kind of explanation are you looking for?
Click to expand...
Click to collapse
Well, first of all, I assume these are the steps to Sim Unlock my phone?
High Level Steps (some detail deliberately NOT included)
htc dev unlock, install cwm recovery and root ONLY
dd the stock boot image to /data/local/tmp and pull it to your pc HD (/dev/block/mmcblk0p22 is boot)
adb shell dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img
adb pull /data/local/tmp/boot.img
make a goldcard (for all CIDS not in android-info.txt in the firmware.zip to be flashed)
adb push goldcard /data/local/tmp
adb shell chmod 775 /data/local/tmp/goldcard
adb shell cat /sys/class/mmc_host/mmc2/mmc2:*/cid (returns sdcard cid)
adb shell /data/local/tmp/goldcard -c <sd card cid above> -o /data/local /tmp/goldcard.img
adb shell dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk1 (this writes the goldcard.img to the sdcard. Mileage on used sdcards may vary)
push misc_version to the phone and use to lower the mainversion (need to lower the mainversion in order to flash the firmware downgrade)
adb push misc_version /data/local/tmp
adb shell chmod 775 /data/local/tmp/misc_version
adb shell /data/local/tmp/misc_version -s 1.11.111.1
relock the bootloader
flash firmware.zip with from the zip below (this firmware contains the original radio exploit used by gfree)
fastboot oem rebootRUU
fastboot flash zip firmware.zip
fastboot reboot-bootloader
unlock the bootloader again (use the same unlocktoken bin)
flash your stock boot.img to boot (this will get the current rom working again)
fastboot flash boot boot.img
flash recovery.img to recovery (from the zip below – this recovery has a kernel that works with the radio exploit)
fastboot flash recovery recovery.img
boot to recovery (yes, the screen may well be blank, but adb should work fine)
adb push gfree /tmp/
adb shell chmod 775 /tmp/gfree
adb shell /tmp/gfree -f >> yeilds – s-off, supercid, sim-unlock
reboot to bootloader and check success.
Click to expand...
Click to collapse
No, like I said, those are all the steps to do what AAHK used to do. That includes SIM unlock, as well as all those other things I mentioned previously.
bananagranola said:
No, like I said, those are all the steps to do what AAHK used to do. That includes SIM unlock, as well as all those other things I mentioned previously.
Click to expand...
Click to collapse
Well okay, so, which of those are the steps to SIM Unlock the phone?
ghosts3v3n said:
Well okay, so, which of those are the steps to SIM Unlock the phone?
Click to expand...
Click to collapse
Wait okay, I think I'm not being clear. I'm pretty sure that those instructions get your phone in a state where it can run the gfree exploit. It does this by unlocking, making a goldcard, and flashing an exploitable firmware. The gfree exploit does S-Off, SIM unlock, and superCID. I don't know what state your phone is in now, so you need to look at that to figure put what your next steps are.
hmm, gfree exploit? I haven't read about that. Care to send a link?
Sent from my HTC Desire HD using Tapatalk 4 Beta
ghosts3v3n said:
hmm, gfree exploit? I haven't read about that. Care to send a link?
Click to expand...
Click to collapse
It's included in the instructions you quoted above.
oh, I think I get it. Ignoring the first steps (I already have CWM, and root), I should follow everything else and I should end up with S-OFF, Supercid (what's this?), and sim unlock?
Sent from my HTC Desire HD using Tapatalk 4 Beta
ghosts3v3n said:
oh, I think I get it. Ignoring the first steps (I already have CWM, and root), I should follow everything else and I should end up with S-OFF, Supercid (what's this?), and sim unlock?
Sent from my HTC Desire HD using Tapatalk 4 Beta
Click to expand...
Click to collapse
SuperCID: All RUUs will be compatible with your phone, every region. This is because the cid is what determines what country and carrier you phone is from, it also helps unbranding.
Sent from my Desire HD using Tapatalk 4

Categories

Resources