yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Q&A, Help & Troubleshooting] cumi2k4:
Hello everyone...will be following the thread closely as i also have the very expensive G2 "ipod".

The story: input the unlock code in the morning, got tired of waiting the reboot so i left for work, leaving the g2 rebooting in my desk. 12 hours later, i came home expecting the battery has died, but was surprised to see that the phone was able to be turned on, presenting the lockscreen and the battery only down about 15%-20% (i have full battery when unlocking). No networks, though. Tried to swap it with the original t-mobile sim card, still no network. Also, did not do OTA before the unlock process. Tried OTA, still no network. Tried manual scan: "error while searching for networks".

Since i live in indonesia, no chance of returning the phone.

Hope the information was helpful in the quest of freeing the G2. Cheers (or weeps)
[G2 and Desire Z Q&A, Help & Troubleshooting] MLonon:
How can I avoid this?

So, I just got a sealed G2 for 350 (yes I know a steal.:D) and stumbled upon this thread. Is there a verified method or service for unlocking that will avoid this issue? I definitely do not want a ipod either.:confused::confused::confused:
[G2 and Desire Z Q&A, Help & Troubleshooting] dhkr123:
It doesn't matter if you screw it up like this any more. Scotty2 (the same who was responsible for permaroot) has solved it. As of about an hour ago, guhl99's phone is now fixed. In fact, it can be unlocked without the unlock code :eek:

You can either try to make sense of the discussion on IRC (the logs for #g2root have it all), or be patient until the information is organized in a manner that makes more sense.
[G2 and Desire Z Q&A, Help & Troubleshooting] MLonon:
Holy unicorn tears:eek: Thanks for the info!!!
[G2 and Desire Z Q&A, Help & Troubleshooting] samu87:
Hello,

will be disclosed when the news? :)

Regards.
[G2 and Desire Z Q&A, Help & Troubleshooting] he3r0:
Good job.

Can't w8 to see human ready solution for the problem...

In your face HTC&T-Mo... Lol
[G2 and Desire Z Q&A, Help & Troubleshooting] emperorchan:
It Works! SUPERCID, Radio S-OFF & Subsidy Unlocked.

YES! YES!

It works! SUPERCID, Radio S-Off, Subsidy Unlock is a reality!

REMEMBER: DO SO AT YOUR OWN RISK!

Here is the link as provided by guhl (guhl99):

http://xdaforums.com/wiki/index.php?title=HTC_Vision#Subsidy_Unlock.2C_SuperCID.2C_and_Radio_S-OFF

HUGE THANKS to scotty2 & guhl (guhl99)! (Donations to the cause to follow)

#G2ROOT IRC Log: http://irclog.netripper.com/?chan=G2ROOT&day=29

I am a TMO(USA) customer. Bought the G2 in the USA and I am currently on assignment in Thailand.

I Got unlock code from TMO. Entered the code. Unlocked successfully. Waiting for reboot, seemed like the system froze so I pulled the battery like many on this forum. Rebooted the phone and it wouldn't connect to any network even when using the TMO(USA) sim.

Checked SIMLOCK during HBOOT and got the same messages many got on this forum.

FAT32 init OK.

Open MCCMNC file fail

Open CID file fail

Process done, reboot device?

I prayed daily for a solution to come. And it did in more ways than one. I am so grateful for all those involved besides the names I have mentioned. Thank you all.

1st - S-OFF, perm-root solution by scotty2 & unforgiven512 plus Paul O'Brien's temp-root, VISIONary.

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

2nd - CyanogenMod 6.1 courtesy of Cyanogen and co.

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

And finally Radio S-OFF, SUPERCID, Unlock Phone Subsidy by scotty2 & guhl (guhl99)

http://xdaforums.com/wiki/index.php?title=HTC_Vision#Subsidy_Unlock.2C_SuperCID.2C_and_Radio_S-OFF

As per their instructions, I got the following command responses as part of the optional steps to make sure I did everything right.

@CID: 11111111 (You have SUPERCID)

@SIMLOCK= 00 (SIMLOCK OFF)

@secu_flag: 0 (RADIO S-OFF)

So now I have a Thailand SIM (AIS) pre-paid, working on my TMobile G2 (HTC Vision) with SUPERCID, Subsidy Unlocked, Radio S-OFF running CyanogenMod 6.1, RC3.

I made a call locally to confirm that it works, plus it automatically picked up the APN settings for the mobile carrier (AIS Thailand).

It has been one heck of a ride!

Thank you to all those involved again in making it all a reality, including scotty2, guhl (guhl99), unforgiven512, paul o'brien, cyanogen.

Apologies if I left anyone out. My thanks to you too. :)
[G2 and Desire Z Q&A, Help & Troubleshooting] capitan74:
I had that same problem and then find someone who will repair it to me here in Puerto Rico, finally got someone to 2 hours away from my neighborhood, repair in 20 minutes, I have the Google G2.
[G2 and Desire Z Q&A, Help & Troubleshooting] capitan74:
I after almost giving up, bring it to a site in 20 minutes I put it to work.
[G2 and Desire Z Q&A, Help & Troubleshooting] Android1126:
Strange, mine worked flawlessly, just as it did with my G1.
[G2 and Desire Z Q&A, Help & Troubleshooting] jdee_:
I have the same issue with "no service" on my unlocked

trying the "G2Radio S-OFF, SUPERCID, Unlock Phone" way.

on "su" command in adb shell it says "permission denied"

also when I'm trying to do

what's the problem? please help " gfree -f " it ends up with an error:

attempting to power cycle MMC: failed

module failed to load: operation not permitted
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
What is your phone? (G2, DZ if DZ which on)

What are your software versions (see Settings -> About phone)

- baseband

- kernel

- main version

Try to follow the guide at the wiki http://xdaforums.com/wiki/index.php?title=HTC_Vision#Rooting_the_G2 or if this is a DZ then better http://wiki.cyanogenmod.com/index.php?title=HTC_Desire_Z:_Rooting

have fun - Guhl
[G2 and Desire Z Q&A, Help & Troubleshooting] Nahtna:
Is this still an issue with the latest OTA?

Sorry to resurrect this old thread. I'm traveling to Japan soon and wanted to unlock the G2 to use a rented SIM card. After doing some reading I noticed this issue with losing the network after attempting an unlock. Now, I'm really paranoid about trying the SIM unlock code. Does anyone know if this is still an issue with the latest OTA update 2.16.531.5 I'm not rooted or anything just using the vanilla rom from Tmobile. I would prefer to just unlock the normal way if this won't be a problem. It doesn't seem like anyone has had the problem recently based on post dates but I can't seem to find any confirmation.

Thanks
[G2 and Desire Z Q&A, Help & Troubleshooting] Nahtna:
To answer my own question. I talked to T-mobile about getting a SIM unlock code and asked them about this issue. According to T-mobile this was fixed with OTA update 1.22.531.8. I have not had a chance to test it yet though.
[G2 and Desire Z Q&A, Help & Troubleshooting] Fidyyuan:
Has anyone tested whether OTA 1.22.531.8 has fixed this SIM unlock issue?
[G2 and Desire Z Q&A, Help & Troubleshooting] vacanopaez:
I want to test it but i can't sim unlock it with gfree, going to have to try and call t-mobile to see if they give me an unlock code, i don't know if it's still possible?
[G2 and Desire Z Q&A, Help & Troubleshooting] vacanopaez:
after a few days of trying different roms and kernels, i was able to get it UNLOCKED :), i had S-OFF and rooted but had to go all the way back to stock 2.2 with S-ON and not rooted. my steps hopefully this will help someone

1- flash stock 2.2 (not rooted and S-ON) with fastboot (rename rom to PC10IMG.zip)

2-followed this guide -http://xdaforums.com/wiki/index.php?title=HTC_Vision#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD

3- Profit ;)

the key for my g2 was step 1. and yes it works with the OTA 1.22 but i flashed another rom g2slim 1.6, after that i just created a new APN cause data was not working but the phone was, and now everything is working the way it should. Thanks again Devs..
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
logcat of radio from boot on

Attached you can find the logcats of radio from boot on.

The lc_radio.txt has been created with the PIN-input enabled, the other one with the PIN-input disabled.

Could somebody please do the same thing with a phone that still registers on a network? (of course it would be best with an unlocked phone, but also a normal T-Mobile registration would be interesting)

Thanks
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
Mine too, now all the way from eBay to me and the unlock block network signal >.<

Already try flash original IMG but nothing change..
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
Here's a log of an unlocked G2 connecting to T-Mo US from init to a stable state. I edited out my personal data with tildes. An eleven tilde redaction indicates a phone number. Fifteen tilde redactions are IMEI. "310260~~~~~~~~~" are IMSI. Hope it helps.
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
Does anybody know where the file holding info about cid and mcc mnc is located in android filesystem. Maybe this file corrupted after unlocking.
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
I don't think is is about the corrupt file. Since after I unlock and lose cell connection I have find a complete ROM and flash it on top and nothing change. The phone still not function.

Right now I just hope that the solution is in some area we can touch or flash. Not deep down in some un-flashable or sign with some special key.
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
The CID information is probably held in the baseband's storage. MCC/MNC info is held in a variety of places, but the one you are missing is also likely in the baseband.

I'm wondering if it isn't a problem with your sim cards. Could you guys try using a T-mo US sim and checking logcat?
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
The logcat provided is with a T-mo sim.

Also after talking with the htc suport through their ticketing system they didnt help me at all. all they could do is offer me advices of how to hard reset my device.

Anyway the baseband files is in the filesystem??

Can we see or modify them through ADB?
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
Apparently the problem is a corrupted baseband file. I believe that tha firmware we have just hasn't that files
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
It is not in the Linux filesystem at all. All the stuff pertaining to the radio (including the storage of settings like CID and subsidy lock) are controlled and stored by the baseband processor and baseband software (collectively known as the "radio").
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
So unless we get a new radio update its difficult to do something :confused:
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
The SIM is an Austrian mobilkom SIM that I normally use with the mobilkom A1 network.

It works in my G1.
[G2 and Desire Z Q&A, Help & Troubleshooting] ekwon:
Hi

I see an another difference between failed file and success one

When it try to get IMEISV (

Retrieves the International Mobile Equipment Identity and Software Version (IMEISV) of the device)

On failed file: +CMS ERROR: 500\r (unknown error ) and +CME ERROR: 14\r (sim busy status)

On Success file : +CPMS: 11,30,11,30,11,30\r\n0\r (+CPMS use to define sms storage on simcard with "SM" parameters and numbers is used space for sms on simcard )

So i think that it failed because radio baseband doesn't read correctly simcard

I hope that a radio update or a custom radio baseband solve this issue ?

All AT commands has been found with google ;-)

This website is very interesting

http://www.developershome.com/sms/
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
Just by the way:

Using a none identified Italian prepaid SIM I tried to call an emergency number (911).

This actually works !
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
Other things that I found out:

In the failing logcats there as these commands that fail:

D/HTC_RIL ( 1354): (t=1287095267)>> AT+CRSM=192,28421,0,0,15\r
D/HTC_RIL ( 1354): (t=1287095267)<< +CME ERROR: 13\r
D/HTC_RIL ( 1354): ril_func_chk_preferred_language():called
...
D/HTC_RIL ( 1354): (t=1287095267)>> AT+CRSM=192,12037,0,0,15\r
D/HTC_RIL ( 1354): (t=1287095267)<< +CME ERROR: 13\r

The CRSM is a restricted SIM access where 192 means "Get response" and the next number is the file ID.

28421 = 0x6F05 = TAPI_SIM_EFILE_USIM_LI Language Indication
12037 = 0x2F05 = TAPI_SIM_EFILE_LP the Language Preference file

This does not look to critical to me but maybe it is?!

I never thought that I once will be learning GSM specifications :-)
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
Maybe by the end of all this you can qualify for a job in the mobile telecommunications industry. :D
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
Well ...

I used to be member of the board of a telecommunications company, but this was the main reason for the "burn-out" that I had 10 years ago so I really do not want to go back to this industry!
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
Ah, so you would be the one to give me a job in the industry then. ;)

By the way welcome to xda
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
You seam to be right this the problem.

D/HTC_RIL ( 1359): (t=1287010701)>> AT+CPMS="SM","SM","SM"\r
D/HTC_RIL ( 1359): (t=1287010701)<< +CMS ERROR: 500\r
D/HTC_RIL ( 1359): req_rsp_pair_retry_default():(0, 0x00000000) 3-th retries
D/HTC_RIL ( 1359): (t=1287010701)>> AT+CIMI\r
D/HTC_RIL ( 1359): (t=1287010701)<< +CME ERROR: 14\r
D/HTC_RIL ( 1359): req_rsp_pair_retry_default():(0, 0x00000000) 3-th retries
D/HTC_RIL ( 1359): (t=1287010701)>> AT+CPBS="SM"\r
D/HTC_RIL ( 1359): (t=1287010701)<< 0\r
D/HTC_RIL ( 1359): (t=1287010701)>> AT+CPBS?\r
D/HTC_RIL ( 1359): (t=1287010701)<< 0\r
D/HTC_RIL ( 1359): req_rsp_pair_retry_default():(0, 0x00000000) 3-th retries
D/HTC_RIL ( 1359): (t=1287010702)>> AT+CPMS="SM","SM","SM"\r
D/HTC_RIL ( 1359): (t=1287010702)<< +CMS ERROR: 500\r
D/HTC_RIL ( 1359): req_rsp_pair_retry_default():(0, 0x00000000) 4-th retries
D/HTC_RIL ( 1359): (t=1287010702)>> AT+CIMI\r
D/HTC_RIL ( 1359): (t=1287010702)<< +CME ERROR: 14\r
D/HTC_RIL ( 1359): req_rsp_pair_retry_default():(0, 0x00000000) 4-th retries
...

This sequence is our problem

The AT+CIMI should get the IMSI (where the first 3 characters are the MCC and the next 2 or 3 are the MNC) but it gets and CME ERROR: 14 which means "SIM busy" and the SIM is busy because the previous command AT+CPMS="SM","SM","SM" gets an CMS ERROR: 500 which is an unknown error. And this loops and creates a dead lock.

And no MCC/MNC -> no registration!

At least in my documentation the syntax for the AT+CPMS is

+CPMS=<mem1>,[<mem2>]

where

<mem1> is the memory to read, list and delete messages (SMS) and

<mem2> is the memory to write and send messages

So maybe the TMO SIM has 3 memory areas and ours don't because it also responds with 3 pairs of numbers.

(the numbers are strange though because each pair should be the <messages stored>,<total messages possible> in the memory area so 11,30 for all 3 areas looks strange to me ???)

If this is true we will not be able to do anything about this but report this as a bug to HTC.

I will do the following things next:

1. When I am back home tomorrow there is a registered US T-Mobile SIM that I normally use when I am in the USA -> I will try this one.

2. I will try to contact an old friend of mine who worked (or works) as a SIM application developer - he should know

3. Contact HTC and tell them our findings
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
I doubt it, but anyway didn't you test the phone with the included t-mo usa sim?
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
Then it is the firmware error is it? With the current firmware we can't do anything about it until they release the patch, am I correct?
[G2 and Desire Z Q&A, Help & Troubleshooting] rhcp011235:
if you need a code for your G2. Just PM me. I can provide.
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
All of the above seems correct but prior to unlocking the T-mobile sim card was working. And now it isn't. So i dont think the issue has to do with T-mobiles SIM's architecture
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
Did work in the US or in Europe (or wherever you are)
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
It didn't actually connected to network as T-mo sim was incative. Bit i was able to search for networks and see them in list. After unlocking search failed
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
I do have another isue and I would like to clarify if this is related to the unlocking.

I can not start revovery!

Wenn I start hhboot (by holding the touchpad key while powering on) and the select recovery from the menu with the volume key and the start it with the power button it only shows a black screen with a red triangle/exclamation mark.

Are you (the ones with unlocked phones) able to start recovery? Or am I doing something wrong?
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
Wrong thread my friend. But on the red triangle try pressing volume up and power
[G2 and Desire Z Q&A, Help & Troubleshooting] androidgeekit:
Hi guys!! I have the same problem. After entering the unlock code does not detect any network. No italian network using an italian sim (Vodafone).
[G2 and Desire Z Q&A, Help & Troubleshooting] Master Loon:
With any cut there is a band selector. I think it is the 3rd from the last setting short cut. Is it possible after the unlock that is doesn't know what to pick. When I switch. The band I get the x in the signal. Haven't got an unlock code to try it
[G2 and Desire Z Q&A, Help & Troubleshooting] k0mpresd:
i put a tmobile sim in my g2 for the first time yesterday. it was the first time the phone had been activated on a cellular network. i made a phone call and then took it out. today i got the unlock code for my phone and entered it. phone is now unlocked and works with my att sim. if anyone wants a log from my phone let me know, ill be happy to try to help.
[G2 and Desire Z Q&A, Help & Troubleshooting] billp:
Are you in US or in EU(or anywhere else)?
[G2 and Desire Z Q&A, Help & Troubleshooting] k0mpresd:
sorry, im in the us.
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
Yes please!

Do a

adb logcat -b radio > lc_att_unlocked.txt

starting at boot and end it when the phone shows a cell and data connection.

And then please attach it to a new post.

(Edit the file first and replace the later part of the IMSI number with xxx)

Thanks a lot
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
I really do have a very bad felling after reading this on the G2ROOT IRC log

01:29 jeagoss my freaking radio work is halted dead
01:29 GrkEngineer why?
01:29 jeagoss the g2 just all of a sudden decided it isn't going to find towers anymore
01:29 jeagoss period
01:30 jeagoss factory reset, all stuff looks fine. radio is reporting, but it isn't finding towers
01:30 GrkEngineer do we have a copy of a working radio to restore?
01:30 => ananse joins
01:30 jeagoss t-mobile rep said it is happening to alot of g2s
01:30 IntuitiveNipple Sounds like what happens when a phone's EMIE has been blocked
01:30 jeagoss i was the 50th or so call he had got today about it
01:30 GrkEngineer ahh ok, so not 'cause of mods to the radio by you
01:30 IntuitiveNipple ouch!
01:31 jeagoss nope, i haven't loaded any radio mods yet
01:31 jeagoss still trying to poke it and get a hole to flash through
01:31 d0nkey jeagoss: happens to me too. but I live in a ****ty area so I don't bother complaining
01:32 jeagoss so, known problem is the g2 just stops communicating with towers
01:32 IntuitiveNipple it doesn't surprise me, my feeling from anecdotal stories and the source code is it was put out unfinished with several bugs left to solve
01:33 jeagoss they are cross shipping me a new one
01:34 GrkEngineer don't know if it helps you any, but I posted a snippet from "drivers/mmc/card/block.c:437" which mentions writing to radio
01:34 GrkEngineer is the no tower issue permanent for that phone?
01:34 jeagoss GrkEngineer: oh? I'll take a look at it
01:34 jeagoss and yeah, the tower thing is permenant
01:34 jeagoss well, so they say

I still will continue my work but I would suggest to the once who can to try to get a replacement phone from TMO
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
What!!! The tower thing is permanent? What!!!

did i just lose 500USD for a piece of crap T T
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
well so they say, lets see ...
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
Hello, I found something which might interesting for you guys. I still have old Stealth SIM which i previously use for Samsung Captivate. So what the heck I snap it on my Thailand SIM CARD and voila!!!!!

It can search for network and registered!!!!

What does this mean? What is the issue of the phone? or the unlock system?
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
This is good news finally. Lets see wthat we can find out of this
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
Also bad news, it can only register for voice call and signal show R as roaming network. I try putting APN and eveything also enable data roaming but it won't establish data connection.

after i *#*#4636#*#* i found out that

PingIPAddr : Fail: IP addr not reachable

.

.

Roaming : Roaming

GSM Service : Inservice

GPRS Network : Disconnected

Network Type : EDGE
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
For me this is still good news cause it means that the radio did not shut itself down completely.

Could you post a logcat of the radio.

I am very curious to see whats going on there.
[G2 and Desire Z Q&A, Help & Troubleshooting] ekwon:
Yes is very interesting

if stealth sim works a turbo sim

it spoof sim card IMSI details (That contains mcc + mnc + phone number ) to be allow by the network

So the question is why it works with unlock sim

maybe it' bypass phone simcard software (turbosim had a sim apps ) and microship on it

maybe a g2 is not fully unlocked

@ bluemoko

could logcat of the radio and recap your localisation ?

thanks
[G2 and Desire Z Q&A, Help & Troubleshooting] bluemoko:
here you go, log from turbosim only voice working no data
[G2 and Desire Z Q&A, Help & Troubleshooting] guhl99:
Well after reading the logcat i have the following impressions:

1. Our phones are not unlocked but rather locked now so that they only accept the testing MCC/MCN 00101

2. The phone asks for the IMSI twice and the SIM always answers with the 00101xxxxxxxxxx IMSI so this is also used to register with the network

This is not good because first of all not all network carriers accept connects from test IMSIs. There are rumors that some carriers even will lock the IMEI of your phone if you do this.

Second the phone will always think that it is roaming and it is not sure if data connections will work at all (at least 3G)

This leaves us with the questions:

Would a more advanced TurboSIM that answers with the correct IMSI on the second request work better?

And the more important one: how can we unlock our phones or bring them back to the original state. And I fear that we will not be able to do this at least until the phone is rooted and someone starts to disassemble the radio firmware.
[G2 and Desire Z Q&A, Help & Troubleshooting] jashsu:
At least one user has been able to connect to a network other than T-mobile US successfully without a spoofing sim. See here:

http://xdaforums.com/showpost.php?p=8545691&postcount=50

Unfortunately his picture doesn't show his MCC/MNC, but based on the fact that he is not roaming, i'm assuming he is not using a 001010 test network spoofing sim.

I wish I could test one of my own non-tmous sims, but alas all the sims that I had int'l roaming on are currently service suspended.
[G2 and Desire Z Q&A, Help & Troubleshooting] gpou:
so to conclude the unlocking failed but partialy, so the phone accepts only some tests MCCMNC???

I think that the file responsible for allowed MCC/MNC stored in Radio is partially corrupted...