FORUMS
Remove All Ads from XDA

[Testers needed] Prevent WP7 from Relocking on HTC, LG, Dell & Samsung!

264 posts
Thanks Meter: 203
 
By Morpheus90, Retired Recognized Developer on 20th January 2011, 11:28 PM
Post Reply Email Thread
Hi Guys,

I tought a simple and universal method to avoid WP7 relocking problem: edit the Windows\System32\drivers\etc\hosts file on your pc after unlocking your device with CrevronWP7. Let me explain.

Technical explaination, you can skip to the next paragraph if you're not interested in

I used open source Network analyzer Wireshark on my pc to discover which domains Zune connect once a WP7 is connected via usb (while WiFi is off on the device).
They where:
developerservices.windowsphone-int.com
developerservices.windowsphone.com

catalog.zune.net (-> media info, covers, apps info etc...?)
socialapi.zune.net (-> Zune social access)
commerce.zune.net (-> Zune market access)
download.windowsupdate.com (-> updates check)
download.microsoft.com (-> updates check)
update.microsoft.com (-> updates check)
login.live.com (-> Live.com access)

Of course the first 2 domains are the ones responsible of the relock, they are also listed in each phone registry. Editing the Windows\System32\drivers\etc\hosts file on your pc make your pc unable to connect to the real M$ servers, pointing it to your ip on the local loopback net (127.0.0.1) instead.

How to edit the file mentioned
  1. Unlock your phone with Chevron before doing anything, then disconnect it from your pc. If it's already unlocked you can go on to the next step.
  2. With text editors like Notepad or Notepad++ (absolutely NOT Wordpad or Word) open the
    C:\Windows\System32\drivers\etc
    file on your pc. Eventually, modify "C" letter with the matching one of the partition where Windows system is. Check modify and write permissions for your user from file properties before, of course, otherwise you will not be able to save.
  3. 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
    then save it and close the editor. Modify user permissions for the hosts file disabling write and modify capability, then reboot your pc.
  4. Turn Off WiFi on your WP7 device before connect it to Zune, then Sync via usb. It should not relock anymore.

It's working fine on my LG Optimus 7 and HTC HD7 since I bought them, about a month ago (It's true that I am a registered student developer since January 7, but I never registered any phone of mine to AppHub). A friend of mine also tried this method and worked. A blog author I know is instead having troubles with his Omnia 7, his phone is still relocking.

I need some feedback from you, xda members. Try this method and report your impressions in this topic!
Link to the Italian version: http://www.sevenphone.it/2011/01/18/...lock-wp7-zune/
The Following 7 Users Say Thank You to Morpheus90 For This Useful Post: [ View ] Gift Morpheus90 Ad-Free
 
 
21st January 2011, 12:15 AM |#2  
Senior Member
Thanks Meter: 18
 
More
Does not work for my Samsung Focus. I did everything listed but it still relocks every time I connect to the Zune software.
21st January 2011, 12:35 AM |#3  
Morpheus90's Avatar
OP Retired Recognized Developer
Flag Lecce
Thanks Meter: 203
 
Donate to Me
More
Quote:
Originally Posted by clfosk

Does not work for my Samsung Focus. I did everything listed but it still relocks every time I connect to the Zune software.

Mmm I suppose it's a samsung devices problem...

Could you please download and install Wireshark? I need some network dumps!

If you or someone else is interested in testing, I'll post detailed instructions...
21st January 2011, 12:50 AM |#4  
Senior Member
Thanks Meter: 18
 
More
Quote:
Originally Posted by Morpheus90

Mmm I suppose it's a samsung devices problem...

Could you please download and install Wireshark? I need some network dumps!

If you or someone else is interested in testing, I'll post detailed instructions...

Just installed Wireshark. What do I do now?
21st January 2011, 01:35 AM |#5  
xmckinzie's Avatar
Senior Member
Flag Atlanta, GA
Thanks Meter: 41
 
More
Quote:
Originally Posted by Morpheus90

Hi Guys,

I tought a simple and universal method to avoid WP7 relocking problem: edit the Windows\System32\drivers\etc\hosts file on your pc after unlocking your device with CrevronWP7. Let me explain.

Technical explaination, you can skip it to the next paragraph if you're not interested in

This didn't work on my Samsung Focus. The best way to prevent it was to put it in Airplane mode before connecting to computer, then disabling airplane mode when I disconnect from computer.
21st January 2011, 01:58 AM |#6  
Morpheus90's Avatar
OP Retired Recognized Developer
Flag Lecce
Thanks Meter: 203
 
Donate to Me
More
Quote:
Originally Posted by clfosk

Just installed Wireshark. What do I do now?

Well, once Wireshark opens you have to select the Network card you use to connect to the internet with your pc.
Under the "Capture" and "Interface list" titles (on the left) you can find a list, be sure to click on the right one.
(Remember to close the browser or other apps accessing the internet while you are dumping packages on the network.)

Open Zune, the connect the phone. Wait until the phone relocks, then stop live capture in WireShark.


To save the dump, click on
File -> Save
and choose a name and a position on your Hard Disk (saving as .pcap is fine).

Upload it somewhere (on this forum is fine, too) and post the link in this thread

Any volunteer could do the same!

For security reasons, please don't use your browser or any other program to log in with your Username and password anywhere on the net while dumping!
21st January 2011, 06:03 AM |#7  
Junior Member
Thanks Meter: 0
 
More
Thumbs up
AWESOME!! this problem was driving me nuts!! thanks to u it worked!!
21st January 2011, 08:16 AM |#8  
lucasryan's Avatar
Senior Member
Flag Tennessee
Thanks Meter: 75
 
Donate to Me
More
I also have a samsung focus and this did not work for me either...what would it matter what device we are using if they all connect to that domain using zune? After editing the host file and then going back and unlocking device then going back in to the host file wpd shows back up:
127.0.0.1 developerservices.windowsphone.com
127.0.0.1 developerservices.windowsphone-int.com

192.168.1.64 developerservices.windowsphone.com

and in the firewall it says that zune is not enabled but says to allow?
21st January 2011, 08:41 AM |#9  
Member
Flag Lecce
Thanks Meter: 1
 
More
Quote:
Originally Posted by mido_zidane808

AWESOME!! this problem was driving me nuts!! thanks to u it worked!!

may you please tell us what WP7 device do you have? I own an LG Optimus 7 and it worked for me too.
21st January 2011, 11:45 AM |#10  
Morpheus90's Avatar
OP Retired Recognized Developer
Flag Lecce
Thanks Meter: 203
 
Donate to Me
More
Quote:
Originally Posted by jasontac

I also have a samsung focus and this did not work for me either...what would it matter what device we are using if they all connect to that domain using zune? After editing the host file and then going back and unlocking device then going back in to the host file wpd shows back up:
127.0.0.1 developerservices.windowsphone.com
127.0.0.1 developerservices.windowsphone-int.com

192.168.1.64 developerservices.windowsphone.com

and in the firewall it says that zune is not enabled but says to allow?

Well, I tought this method would be device-indipendent, too, but Samsung users are still having issues while on LG, HTC and (probably) Dell is working fine. Maybe they use another subdomain on Microsoft's servers? I dunno.

BTW, you have to unlock the device BEFORE following this tutorial, otherwise ChevronWP7 changes that file adding an unwanted line at the end.
21st January 2011, 09:30 PM |#11  
Junior Member
Thanks Meter: 1
 
More
Here on HTC HD2 your fix is not working. Just tested and my apps are locked again.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes