yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
Not sure if it really matters, but where did you get your subsidy unlock code from? Just a wild guess but perhaps some codes provide only a test network unlock while others unlock for all IMSI?

Also can you try inserting the Tmo-us sim that came with the phone in? See if that will allow it to search for networks.
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
The code was provided from www.htccode.com

Prior to unlocking T-mo card was able to search for networks. But not after :(
[G2 and Desire Z Q&A, Help & Troubleshooting] hmfic:
I have the same issue and T-Mobile SIM card shows the same symptoms, i.e. doesn't even search for networks. I got my code directly from T-Mobile and I doubt that it was corrupted in some way and only partially unlocked the phone. I'm starting to think that maybe because my sim card that I used had pin enabled that somehow screwed up the unlocking process and if used with foreign sim card that doesn't require pin it would work correctly.

Also I haven't seen a single report yet on successfully unlocked G2.
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
I see. I got my code from T-mo, so perhaps this could be something to investigate further.

I set up a thread to poll on the issue here:

http://xdaforums.com/showthread.php?t=811118

Maybe we can correlate the source of the unlock code to the issue?
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
What did you enter as the MCC and MCN in the APN that you set up?

The real ones of the operator that you are trying to use or the 001 01 that your SIM shows.

I would suggest you try both
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
@guuhl99 : yes I try bothand none of them work. There is an issue which miht relate as I can't enable/disable data roaming under *#*#4363d*#* because normally roaming data give GPRS conection on TurboSIM

Trying to find a fix for this
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
My SIM had Pin-Lock disabled so I don't think this is the case.
[G2 and Desire Z Q&A, Help & Troubleshooting] gun:
http://www.youtube.com/watch?v=BnUEI4l56GQ

I think all successful unlocks were done with att sim card.
[G2 and Desire Z Q&A, Help & Troubleshooting] Richard_Simmons:
I purchased an unopened G2 off of ebay last week and I am currently waiting to arrive here in Toronto, Canada (I am on Rogers). All these posts of basically bricked phones has scared the crap out of me. As we have seen there are some successful unlocks out there, is there any way to make a poll for anyone who HAS unlocked their phone and where they got the code from?

I am new to the cell unlocking but can a phone have multiple unlock codes for it (one that puts it into tester mode or something, as people mentioned above)? The person I purchased the phone off of got the code directly from T-Mobile (who in turn said they got it from HTC) I thought that would be a fool proof way, but now I am seeing that even people who used the code provided by T-Mobile are having issues.

Do you think it is a good idea to bite it and buy the code from Cellunlock seeing as how they have successfully done it in the youtube video above? Should I compare the 2 codes, from T-Mobile and Cellunlock?
[G2 and Desire Z Q&A, Help & Troubleshooting] CelticMobile:
I received the SIM unlock code from T-Mobile. The phone claimed that the unlock was successful but subsequently neither the original T-Mobile USA SIM nor a european SIM were accepted - phone asked for SIM unlock code and enteriing the same code again got messages saying unsuccessful.

I have since swapped the phone and raised a ticket for the old phone with HTC to see what they say.

I don't think I will be unlocking the new phone until they fix this mess....
[G2 and Desire Z Q&A, Help & Troubleshooting] gun:
There is only one unlock code and one HTC database. Problem is somewhere else.

Cellunlock is using same database that everyone else, I think, but you could send them imei and your Tmobile unlock code and ask if they would give you different unlock code.
[G2 and Desire Z Q&A, Help & Troubleshooting] billp:
Is there anyone, outside the US, which managed to unlock the phone properly;
[G2 and Desire Z Q&A, Help & Troubleshooting] cndw0004:
I have my phone UNLOCK (from T Mobile provided the code) all three of the phones I had were successfully unlock on both WIND and MOBILICITY network. My own personal G2 has had no problems since day one. I don't think you have to worry about anything. Located in GTA (west end) and everything is good to go on my G2. :)
[G2 and Desire Z Q&A, Help & Troubleshooting] Richard_Simmons:
Wow, okay good, that makes me feel a lot better knowing that someone has unlocked the phone in Canada...and with using the T-Mobile which I currently have. Still going to be nervous since I can't return the phone back to the US or T-Mobile if I have an issue but happy to see it works here. I saw a video of an unlocked G2 running on Mobilicity on Youtube...the guy was selling his phone.

So do you guys think there may be a bad batch of phones? Strange how everyone is pretty much following the same steps, with only one code exclusive to each individual device and some are working and others are bricking the radio...doesn't really look like there could be any other reason
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
YES!!! YES!! YES! it does work now (on Turbo SIM though)

After many trials and errors on every little things here is what I've done.

- download this original image of from this thread http://xdaforums.com/showthread.php?t=788489

- rename it to PC10IMG and put it on micro SD Card

- attach Turbo SIM to my SIM card and slip it in SIM slot

- hold vol down + power to enter HBOOT

- it will check the IMAGE and just hit "vol up" so the update will start

- Then the phone boot as complete factory setting

- It catch my signal as Roaming (of course as turbo sim 00101)

- Put on APN setting base on my operator setting, leave MNC MCC untouch

- No sign of DATA connection so i went down to *#*#4636#*#* once again

- Enable data roaming.. still nothing

- I change radio band one by one and finally on AUS radioband i get GPRS/EDGE enable WooHoo!

- Then I decide to change radio band back to AUTO and it still catch the GPRS/EDGE Yeah I'm happy.

Final test, take out Turbo SIM... no signal detect network can't be scan >.<
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
You know what i had been thinking...If we had a turbo sim at the beggining we had a working phone and still a chance to enter the unlock code later :)

But at least we can use our phone as a phone....Any luck with 3G/UMTS?
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
No, no Turbo SIM has it flaw. If you use turbo sim and once it lost signal it can't recover unless you reactivat your sim card on other phone to catch signal.

But this one phone can register signal on its own, no need to swap card.

Take it all back guys, it work as a norm TurboSIM, once signal lose it will lose forever. So the phone doesn't unlock at all T T

Have no 3G sim at the moment, will try and post
[G2 and Desire Z Q&A, Help & Troubleshooting] jamaica.d.a:
Hello! I recieve phone and unlock it with official tmobile unlock code + Russian sim card.

Is there any way I can help you in understanding whats going on - let me know.
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
Good news indeed!

Do you know what software is running on your TurboSim and if it is an original Bladox? I will meet an old friend of mine in the next days who is a professional in SIM programing and we will look into the behaviour of the phone and the SIM and maybe do some optimized coding for the TurboSim.
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
I think normal Turbo SIM can do the trick as it is work as turbo sim out of the box. I'm not quite sure what brand i have but the one i got is all black with chip.

So for it seem that the unlock code we enter just disble the "Network Unlock Screen" but not even unlock the radio

Shame on you HTC Shame on you T-Mobile :(
[G2 and Desire Z Q&A, Help & Troubleshooting] gun:
If I use Turbo Sim without unlocking phone will 3G work on Band I?
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
After all what I have done and seen in the meantime (including what I learned following the root attempts) I think that our problem is related to the write protect mechanism of the NAND.

I have the feeling that the unlock process does not really have control if the NAND write protect is enabled or disabled. So it writes its changes more or less blind into the cache and asks some other process to unlock the write protect and to physically do the write and then reboots.

This also might explain why the unlock process has to reboot (no other unlock process that I have seen on a HTC phone does this, but I do not know the other recent models).

And my theory is that in some cases (depending on what ever) the write is not complete and therefor the phone is not locked to T-Mobile anymore but also not unlocked.

So much for my theory - tomorrow I should receive a TurboSIM and a programing unit and follow this direction for now.
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
I had a card similar to turbo sim and managed to lose it inside the sim drawer of the phone. So i ordered a HTC screwdriver to open my headset. So for now all i can do is wait for you to find anything.
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
So that's why some phone can get through the unlock process successfully and some stuck in the middle like us >.<
[G2 and Desire Z Q&A, Help & Troubleshooting] jonragnarsson:
What if I would bring my local SIM to a T-Mobile store and ask for an unlock? And then test the phone with my SIM card? Could that help?
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
After entering the unlock code, the phone says "rebooting" and a spinner spins for a minute or two. I hope no one has been hard powering down during that time.
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
If you get your unlock code from T-mobile, it will take appx 24 hours, as T-mo relays the request to HTC. Try getting the unlock code ahead of time.
[G2 and Desire Z Q&A, Help & Troubleshooting] gun:
do you guys hold ALT key when

http://www.youtube.com/watch?v=uADalWAloDU
[G2 and Desire Z Q&A, Help & Troubleshooting] billp:
if your theory is correct, would it be preferable for the unlocking process to run on a rooted phone or not?or it doesn't matter?

I suppose that if you don't hold the ALT button, it writes letters, not numbers,ie wrong code
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
I've always operated on the assumption that simlock and other radio characteristics were saved in some location only addressable by the radio. Otherwise, it would be possible to subsidy unlock a phone without entering a code.
[G2 and Desire Z Q&A, Help & Troubleshooting] adp21:
Hi all - I have been getting quite a few PMs from folks asking me questions about successfully unlocking my G2 and using it here in Singapore, so I thought I would share my story with everyone

My GF and I picked up the G2 in the beginning of this month when we were visiting the States

Back in Singapore, I bought the unlock code online from this online retailer (am happy to share the guy's email to all who PM me)

Popped in my SingTel SIM and put in the unlock key

Then the phone re-booted after 2-3 mins and I let it re-boot WITH THE KEYBOARD OPEN

It took me 2 tries to unlock the phone

The first time around, I re-booted with the keyboard CLOSED and it did NOT unlock

The second time around, I rebooted the phone as-is - i.e. with the keyboard open and it unlocked the phone properly

I then proceeded to enter the SingTel APN and was able to receive and send data via HSDPA and 3G. The phone automatically caught onto the SingTel signal (I did not have to play around with bands etc)

I specify "rebooting with the keyboard open" cos somewhere towards the beginning of this thread or another thread (can't remember), someone mentioned that he/ she tried to unlock with the keyboard closed and it didn't work

Sure enough, re-booting the phone with the keyboard open after putting in the unlock code worked while the other attempt did not....

I am not an IT guru (I work in finance) but maybe the keyboard open/ close thing has something to do with the unlocking process etc...

I am NOT sure why some people's phones have been messed up post unlocking. Just try and remember how u rebooted the phone the first time around after unlocking....

So far, my G2 is working fine on the Singtel network here in Singapore....

Hope this helps the people who are sitting on the fence in terms of unlocking their G2 or buying one from overseas...

FYI: Here is the link to my prior posts on another forum which has pics as proof of my unlocked G2 working on HSDPA/ 3G on SingTel...

http://xdaforums.com/showpost.php?p=8545691&postcount=50
[G2 and Desire Z Q&A, Help & Troubleshooting] gun:
Did you enter code with hardware keyboard or keyboard on the screen? Did you have to enter code twice in your case after it did not work first time?
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
I unlocked with the on-screen keyboard. Only rebooted once.
[G2 and Desire Z Q&A, Help & Troubleshooting] adp21:
Entered code via physical keyboard cos virtual keyboard did not pop up/ work

Yes, had to enter the code twice
[G2 and Desire Z Q&A, Help & Troubleshooting] adp21:
Very interesting since on-screen KB did not work for me (for keying in unlock code)

Therefore was forced to use the physical KB....

Another thing was that when I originally bought the G2, I played around with it on the Wi-Fi network back in the States (downloaded some apps etc). Did not have any SIM card in the phone then...

I only started using the cell phone network when I brought it back to SGP (and unlocked it)...
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
This is not my video, but basically my unlock experience occurred just like this:

http://www.youtube.com/watch?v=BnUEI4l56GQ&t=1m20s
[G2 and Desire Z Q&A, Help & Troubleshooting] gun:
Maybe the OS of the phone needs to be set-up first before it can be unlocked.
[G2 and Desire Z Q&A, Help & Troubleshooting] NomadJoe:
I actually bought a G2 with a T-Mobile plan and set up the OS before trying to unlock using a Vodafone (AU) sim (while in America). The phone unlocked, but ended up in the exact same situation (i.e. cannot see any networks at all).

I am wondering whether the unlocks that have worked have all occurred outside America and whether this plays some role in the whole proces.
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
Nope, first thing I did was unlock.

I unlocked in the US.
[G2 and Desire Z Q&A, Help & Troubleshooting] NomadJoe:
Sorry for the repeated questions - did you have to manually enter in the APN settings for it to work when you got back home? I am working on the theory that the unlock process somehow forgets all the possible APN details, in which case upon unlocking, we would need to add one in for each country visited.
[G2 and Desire Z Q&A, Help & Troubleshooting] gun:
Location does not matter, someone from Singapore unlocked the phone outside US.
[G2 and Desire Z Q&A, Help & Troubleshooting] gun:
Can someone post first 11 digits of IMEIs and if they were able to unlock.

They should look like this:

35911603054XXXX

35911603141XXXX
[G2 and Desire Z Q&A, Help & Troubleshooting] moodecow:
35911603139XXXX

Phone said unlocked but cannot connect to network.
[G2 and Desire Z Q&A, Help & Troubleshooting] androidgeekit:
IMEI: 35911603196XXXX

Phone said unlocked but cannot connect to network...idem for me!!
[G2 and Desire Z Q&A, Help & Troubleshooting] NomadJoe:
A user on another forum had the same unlock problem but says that removing battery and replacing it fixed the issue : hxxp://forum.androidcentral.com/t-mobile-g2/40627-g2-sim-unlock.html#post397366

Anyone care to try ?
[G2 and Desire Z Q&A, Help & Troubleshooting] gun:
35911603054XXXX

mine unlocked but did not connect either

35911603222XXXX works after unlocking
[G2 and Desire Z Q&A, Help & Troubleshooting] gun:
Does not work for me.
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
3591 1603 083 XXXX

Unlocked and connecting normally
[G2 and Desire Z Q&A, Help & Troubleshooting] adp21:
my IMEI # is 3591-1603-112-xxxx

Bought in the US. Played initially on Wi-Fi

Unlocked in SGP (two attempts)

Now working perfectly normally (3g/ HSDPA) on SingTel in SGP
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
Based on my one findings and based on the following from the #G2ROOT

this is not the case.

So i still stick do my theory.

btw: I am currently working with the TurboSIM, but I am actually not working on getting the phone to function with it. What I really try currently is to make the radio crash by answering senseless and too long information to requests from the phone to the SIM.

My idea is that it might be possible to overrun something there because one would not expect an attack from the SIM.

But lets see, I just started ...
[G2 and Desire Z Q&A, Help & Troubleshooting] jonragnarsson:
It's so tempting to just take the risk... :)

Hmm.... I thought I saw a pattern, but it seems that it is more random...
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
what risk?
[G2 and Desire Z Q&A, Help & Troubleshooting] jonragnarsson:
Erm... getting stuck with an unusable phone....
[G2 and Desire Z Q&A, Help & Troubleshooting] gun:
I think it is random too. Here are more:

35911603137XXXX unlocked after 2nd attempt with keyboard out (first time with software keyboard it did not work)

35911603061XXXX unlocked first time with keyboard out
[G2 and Desire Z Q&A, Help & Troubleshooting] Mark786:
too many attempts

I used on screen keyboard to enter unlock code too many times. Now the phone would't take the code anymore. Now, I want to try to enter the code with hardware keyboard. Is there a way to reset the counter so I can try the code again? Thank you.
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
Playing with the AT-Command interpreter ...

And one never stops learning!

Today I connected my phone in hboot mode and started a serial console over USB to it.

In hboot I started the AT-command interpreter with the command "rtask b"

Then I played around with some AT commands like reading the IMEI etc

And then I entered AT+CFUN=1 (this should power on the radio as I can remember from the good old openmoko days) and the phone answered with

@SIMLOCK: C3AB

So this is something that I would like to see from other people with locked or unlocked phones.

So here comes the HowTo:

You should do this with a SIM in your phone that has PIN entry disabled (i did not check the result if the PIN entry is enabled)

Starting a serial console to your hboot:

(I can only do this for linux as I do know nothing about these things in Windows)

You need a kernel that has the module usbserial built as a module.

Make sure that it is not already loaded:

sudo lsmod

if you see a module usbserial then unload it with

sudo modprobe -r usbserial

Connect your phone to the USB cable and start fastboot by holding done <VolumeDown> button while pressing <Power>

In the fastboot mode (you should see skatboarding androids and the top line will say "FASTBOOT USB") select BOOTLOADER from the menu and press <Power>

In the top line it will say "HBOOT" in blue and the it will take same time (it looks for pc10img.zip on the root of the sdcard and flash it if there - but this is a different story)

After it is finished it the top line it will say "HBOOT USB PLUG"

Now find the USB device in the console

sudo lsusb

and look for the "High Tech Computer Corp." it should be 0bb4:0c94.

Load the usbserial.

sudo modprobe usbserial vendor=0x0BB4 product=0x0C94

Now you should have a device /dev/ttyUSB0 (if you don't now the look in /var/log/messages for the kernel messages while loading usbserial).

Now we need something like the program "screen" to connect a terminal to the serial device.

sudo screen /tty/USB0

And after this you should be ready to enter commands to hboot.

(Type h and hit Enter to see a list of commands available)

-- WARNING Be careful what you do here, you can seriously damage your phone here if you don't know what you are doing -- END OF WARNING

Start the AT-command interpreter:

rtask b

Wait for the answer "AT-Command Interpreter ready" and then start entering AT-Commands.

You will not see what you type befor the first command because ATE1 enables echo

ATE1

The cursor should jump back to the first position and show the answer 0 which means OK.

AT+CGSN

This should show your IMEI and jump to the next line and answer 0.

Check if the SIM is ready (PIN entry not required)

AT+CPIN?

The answer should be "+CPIN: READY"

And now start the radio:

AT+CFUN=1

And here I receive the answer: @SIMLOCK: C3AB

I do not know how to exit the command interpreter so I just remove the battery from the phone (up to now this did not do any harm and I already did it lik 50 times)

PLEASE do this with your unsuccessfully and successfully unlocked phones and report your results!!!
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
Some things to add to the AT commands:

I played a little bit more with the AT commands and found the following things.

Everything is easier if you switch to verbose mod by using ATV1 after you entered ATE1.

There are a lot of AT@SIMLOCK commands that can/should be used to handle all this. The following list is from the hex code of partition 18 of the emmc and i do not no exactly how the are all supposed to work but I already know some of them

AT@SIMLOCK?AA -> gives you the security flag (@secu_flag) in my case 1 which means the the security is not disabled (0 would mean that)

AT@SIMLOCK?40 -> should give 00 if the phone is unlocked, gives "@SIMLOCK= C3AB" in my case

AT@SIMLOCK=1,%x,%s -> seems to enable the SIMLOCK (x should be 1,2,4,8,16,32) and s the code - i think ? gives me "ERROR"

AT@SIMLOCK=0,%x,%s -> should disable the SIMLOCK (x should be 1,2,4,8,16,32 and s the code - i think ? gives me "ERROR"

AT@SIMLOCK=2,1,%s -> ??? The text close to says "Add Network Code error !"

AT@SIMLOCK=3,%x -> ??? The text close to it says "Clear SimLock Code error !"

AT@SIMLOCK=7,%d -> ??? The text close to it says "Set Security Flag error !"

AT@SIMLOCK=9,%x -> ??? The text close to it says "Unlock SimLock by SmartCard" Interesting isn't it? Ever heard something about a SmartCard?

I have the feeling that as long as @secu_flag = 1 I will not be able to change something, but that is pure speculation.

Well that's it for now, I will keep on exploring!

have fun
[G2 and Desire Z Q&A, Help & Troubleshooting] NomadJoe:
*** Update ***

As in the post below, I manually set the bands and the phone is now working

*************

My IMEI is 35911603150XXXX and I just tried to unlock with no success. I am not seing the pattern here. Fingers crossed one of the experts will be able to get around this asap.
[G2 and Desire Z Q&A, Help & Troubleshooting] NomadJoe:
Ok - I have had some success here, connecting the phone to a local network.

As mentioned before, I unlocked the phone using the code provided by T-Mobile. With the local (AU Vodafone) sim in the phone, I still got the error of No Networks found.

I then entered in (using the dialler), the following string *#*#4636#*#*

I then went to Phone Information and set the preferred network type to GSM/CDMA auto(PRL).

Once I did this, the phone registered onto the network and I was able to make phone calls. For some reason, I dont have data enabled, even though the sim was from a functioning Blackberry.

Hope this helps.
[G2 and Desire Z Q&A, Help & Troubleshooting] adp21:
U need to manually enter the APN into the phone

I don't remember how to do it, but it should be easily findable on Google :-)
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
You're lucky to be able to unlock sucessfully and regsiter to network.

For data connection you need to input APN setting correctly.
[G2 and Desire Z Q&A, Help & Troubleshooting] moodecow:
did you change the "band" that is used?

i just tried what you suggested (from a factory reset) without any luck