Can't unlock network despite having code!

Mumfi

Member
Aug 16, 2016
6
1
0
I bought a second hand HTC ONE M8 recently. It was previously locked to a Swedish Carrier (called "3").

When I insert a SIM card from another carrier, a window pops up right after I enter the PIN code, asking me to type in a code to unlock the network.

The code I have, but whenever I type it in and hit "unlock", the phone gets stuck at "requesting network code. Very much like in this post:

http://forum.xda-developers.com/showthread.php?t=2791553

The phone has a Play Edition ROM, which is not the original. Some say that a solution is to revert back to stock ROM, but I'm not sure how.

Anyone has any other ideas? Google searches yield surprisingly few good results.
 

Mumfi

Member
Aug 16, 2016
6
1
0
Yeah .. usually you need to revert back to non-rooted stock then only you can use the unlock code.

Post fastboot getvar all result (without serial & imei no.) then we'll see the next step to take.

Read this : http://forum.xda-developers.com/showpost.php?p=64926362&postcount=4
Thank you for answering.

I tried the link but I never managed to get HTC Sync Manager to recognize the phone.

fastboot getvar all only yields "waiting for device". What could be wrong? I've tried multiple ways of installing drivers manually, but to no avail.
 

ckpv5

Recognized Contributor
Feb 11, 2008
14,359
18,290
0
Kuala Lumpur
You need to put the device on bootloader/fastboot mode to run fastboot command.

Read again the link given, you're supposed to uninstall htc sync manager and also you need to install adb/fastboot
 

Mumfi

Member
Aug 16, 2016
6
1
0
You need to put the device on bootloader/fastboot mode to run fastboot command.

Read again the link given, you're supposed to uninstall htc sync manager and also you need to install adb/fastboot
Alright, here we go! Thank you so much!

C:\Users\Johan>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.19.0.0000
(bootloader) version-baseband: 1.23.213311491.A13G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 5.07.1700.14
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8_ul
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B10000
(bootloader) cidnum: 11111111
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 11459804
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.110s
 

ckpv5

Recognized Contributor
Feb 11, 2008
14,359
18,290
0
Kuala Lumpur
This will involve many steps as I don't see any RUU for this carrier ...

1. You need to install 6.13.771.4 firmware.zip
Download the fw_6.13.771.4.zip from post #5 in my backup thread and read how to install the firmware. You can skip the relock bootloader part as you have a S-Off device.
Leave it unlocked .. can you confirm current status .. the booloader is unlocked or locked or relocked ?

2. Install TWRP the latest version 3.0.2-0 ... link to download on post #1 in same thread

3. Restore 6.13.771.4 backup that you can download on post #3 - read how-to on post #1

4. run the unlock code
 

Mumfi

Member
Aug 16, 2016
6
1
0
This will involve many steps as I don't see any RUU for this carrier ...

1. You need to install 6.13.771.4 firmware.zip
Download the fw_6.13.771.4.zip from post #5 in my backup thread and read how to install the firmware. You can skip the relock bootloader part as you have a S-Off device.
Leave it unlocked .. can you confirm current status .. the booloader is unlocked or locked or relocked ?

2. Install TWRP the latest version 3.0.2-0 ... link to download on post #1 in same thread

3. Restore 6.13.771.4 backup that you can download on post #3 - read how-to on post #1

4. run the unlock code
I can confirm it is unlocked. I started following the steps in post #1, but can't seem to complete step 5. I try to make a backup of the boot, but when I do, several red errors in the log appears. All of them starts with

Failed to/Unable to mount '/cache, /data, /carrier (invalid argument).

What might cause these errors?
 

ckpv5

Recognized Contributor
Feb 11, 2008
14,359
18,290
0
Kuala Lumpur
Forgot to write more on item 2.

Install TWRP the latest version 3.0.2-0 ... link to download on post #1 in same thread

Because you're converting back to Sense from GPE ... you need to do these before you can proceed to item 3.

In TWRP - select wipe - Format data - type yes
Once it is done doing its stuff, use back button select reboot - recovery

Now you can proceed item 3.
 

Mumfi

Member
Aug 16, 2016
6
1
0
Forgot to write more on item 2.

Install TWRP the latest version 3.0.2-0 ... link to download on post #1 in same thread

Because you're converting back to Sense from GPE ... you need to do these before you can proceed to item 3.

In TWRP - select wipe - Format data - type yes
Once it is done doing its stuff, use back button select reboot - recovery

Now you can proceed item 3.
That worked fine.

Now I'm stuck at number 9 instead. When I press "Restore" in the TWRP menu, I don't have anything to select.

Also, what looks more right?

Computer\HTC One_M8\Internal Storage\0\TWRP\BACKUPS\SH45FWM04430\2016-08-18--10-23-37_MRA58K.H14_release-keys\6.13.771.4

or

Computer\HTC One_M8\Internal Storage\0\TWRP\BACKUPS\SH45FWM04430\6.13.771.4

Doesn't seem to make a difference anyway though.
 

ckpv5

Recognized Contributor
Feb 11, 2008
14,359
18,290
0
Kuala Lumpur
The second one but without \0\

Should read Computer\HTC One_M8\Internal Storage\TWRP\BACKUPS\SH45FWM04430\6.13.771.4

Try redo the backup of boot ... then it will write correct location Computer\HTC One_M8\Internal Storage\TWRP\BACKUPS\SH45FWM04430\xxxxxxxxx

After redo the backup ... select Restore and check whether TWRP can see the folder that you backup. If yes, now you have correct location

Instead of transferring the 6.13.771.4 folder, you also can copy the contents of the 6.13.771.4 folder (there should be 8 items) to Internal Storage\TWRP\BACKUPS\SH45FWM04430\xxxxxxxxx and replace the contents when asked by windows
 
Last edited:
  • Like
Reactions: Mumfi

Mumfi

Member
Aug 16, 2016
6
1
0
The second one but without \0\

Should read Computer\HTC One_M8\Internal Storage\TWRP\BACKUPS\SH45FWM04430\6.13.771.4

Try redo the backup of boot ... then it will write correct location Computer\HTC One_M8\Internal Storage\TWRP\BACKUPS\SH45FWM04430\xxxxxxxxx

After redo the backup ... select Restore and check whether TWRP can see the folder that you backup. If yes, now you have correct location

Instead of transferring the 6.13.771.4 folder, you also can copy the contents of the 6.13.771.4 folder (there should be 8 items) to Internal Storage\TWRP\BACKUPS\SH45FWM04430\xxxxxxxxx and replace the contents when asked by windows
It worked! Thank you so much, you're a HTC wizard.
 
  • Like
Reactions: ckpv5
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone