[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] timmymarsh:
Ok Guys,

Tired of your HD2 WP7 constantly relocking when you connect your device to your PC?

Tried everything else and nothing works?

I recommend you use method 2 below as this has been 100% reliable, i have not had a single lock since doing the reg change

.

METHOD 1 - Easy Method without Registry Edits - Not as reliable as below REG method - device still frequently locks

OK this should work for you. here is the original thread for those who want to know why. Please give thanks to Morpheus90, I just stumbled across it in WP7 D&H and posted it here after trying it :D

Unlock your phone with Chevron before doing anything, then disconnect it from your pc. (This step is very important, if it is not unlocked you cannot proceed)

If it's already unlocked you can go on to the next step.

Navigate to the hosts file found in Windows\System32\drivers\etc on your pc. Right click it and ensure you have write & read permissions for your user otherwise you will not be able to save it.

Now, with a text editor like Notepad or Notepad++ (DO NOT use Wordpad or Word) open the hosts file.

Add the following lines at the end of the file:

127.0.0.1 developerservices.windowsphone.com

127.0.0.1 developerservices.windowsphone-int.com

If you have similar lines but with a different ip address, delete them.

Save it and close the editor. Modify user permissions for the hosts file disabling write capability (as you did before.)

Turn Off WiFi on your HD2 before you connect it to Zune, then Sync via usb. It should not be relocked.

Just remember, if you dont want your device to lock again immediately, turn off your HD2's wifi or enter airplane mode before you connect to your computer.

Again, please give thanks to Morpheus90

METHOD 2 - Semi-Permanent Method via registry edits - Very reliable - more effort required due to REG changes

This method utilises Schaps Advanced Config for WP7 so please give thanks to Schaps. Download it via the thread and deploy (install) using Application Deployment in your SDK tools. Note you must be unlocked to install this xap

Now you have Adv Config installed and are Chevron Unlocked you are ready to move on to the next step, please give your thanks to DanielNTX in his thread which also gives a full explanation as to the reasons for the unlocking.

Unzip and email to your device a copy of the unlock.me cert; then goto your device, find the email and install the cert.

Using Advanced Config, type in the following reg entries on your device one at a time:

Key Name : HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg

Value Name : PortalUrlProd

Data (string) : "https://developerservices.unlock.me/Services/WindowsPhoneRegistration.svc/01/2010" (do not type"")

Click Apply.

Now add:

Key Name : HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg

Value Name : PortalUrlInt

Data (string) : "https://developerservices.unlock.me/Services/WindowsPhoneRegistration.svc/01/2010" (do not type"")

Click Apply

Now you have to edit your hosts file using Notepad or Notepad++ (DO NOT use Wordpad or Word)

Right click hosts file found in your \windows\system32\drivers\etc folder, click on properties/security and edit the permissions for your user name enabling all permissions.

Now in your hosts file in , you should set up an entry for developerservices.unlock.me with

your computer's own IP address

. for example 168.1.1.19 developerservices.unlock.me

Click Save.

Now you must re-edit your permissions as you did above to your hosts file leaving "read" & "read & execute" ticked. Close the screens. Important: do not right click, properties and click read only as Chevron will not unlock you giving you an error message "Chevron has experienced a problem and is closing"

Ok, you are nearly finished.

You now have the unlockme cert installed to your phone, you have made the regisrty changes to your HD2 and altered the hosts file on your PC.

Finally, restart your HD2 to apply the new reg entries.

Connect to your computer, sync with Zune and If you have followed the guide fully your device should still be unlocked. There is no need to turn off wifi or enter airplane mode. I have tested this many time today, restarting both PC & device regularly.

IMPORTANT If you use a laptop at work and home for example, which means you will have 2 different IP addresses, you must also add your home IP to your hosts file, if you do not then your device will relock instantly.

Your device MAY occasionally relock, for some reason, but you should be able to use chevron to unlock easily without any hassle

Please give thanks to DanielNTX

Enjoy your freedom :)