[GUIDE] Back up DRM Keys & unlock/relock Bootloader (Noob proof)

RobHands

Senior Member
Aug 12, 2013
103
14
0
Winterthur
Guys i'm stuck at step 13, still says waiting for device. I tried the 3rd time now. Also when I adb devices there is no device id shown, however it shows before I flash step 13. Tried all the troubleshooting advice posted here...
 
Last edited:

wind0zer

Senior Member
Feb 15, 2010
375
59
0
Guys i'm stuck at step 13, still says waiting for device. I tried the 3rd time now. Also when I adb devices there is no device id shown, however it shows before I flash step 13. Tried all the troubleshooting advice posted here...
In step 13, after the .bat file did it's job and said it's waiting, I waited for about a couple of minutes. Then I proceeded to the step 14, which is disconnecting & switching it off.
Step 14 is better explained as.....
Turn phone off using the power + vol up combination.
Root and Dual Recovery for Locked Bootloader 4.3 - xda-developers
I messed up step 19, and I redid the whole thing from step 9!
 
Last edited:

Riyal

Senior Member
Dec 16, 2011
3,008
1,762
243
Iloilo City
Guys i'm stuck at step 13, still says waiting for device. I tried the 3rd time now. Also when I adb devices there is no device id shown, however it shows before I flash step 13. Tried all the troubleshooting advice posted here...
The cause why this happens is only either

1. You didn't enable USB debugging as advised on step # 10.
or
2. You wiped the userdata partition in flashtool as opposed to step # 11. Wipe [Uncheck ALL]
 
  • Like
Reactions: RobHands and zxz0O0

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
How can I backup the whole phone before proceeding through the steps?
What exactly do you want to backup? I wrote here how to backup /system partition: http://forum.xda-developers.com/showpost.php?p=50559502&postcount=9
You can get busybox from the dualrecovery zip.
Or check this out: http://forum.xda-developers.com/showthread.php?t=2662945

Best thing what you can do is get your factory firmware (either it's already available here on the forum or you can download/create it with this guide http://forum.xda-developers.com/xperia-z/general/guide-download-firmware-customization-t2311211 (don't forget to share it here))
Guys i'm stuck at step 13, still says waiting for device. I tried the 3rd time now. Also when I adb devices there is no device id shown, however it shows before I flash step 13. Tried all the troubleshooting advice posted here...
Have you read the 'Questions' part on the first post? If you did, then check what Riyal said.

@Riyal: thanks for your tipps I added it to the first post!
 
Last edited:
  • Like
Reactions: RobHands

RobHands

Senior Member
Aug 12, 2013
103
14
0
Winterthur
Have you read the 'Questions' part on the first post? If you did, then check what Riyal said.

@Riyal: thanks for your tipps I added it to the first post!
The cause why this happens is only either

2. You wiped the userdata partition in flashtool as opposed to step # 11. Wipe [Uncheck ALL]
I'll have to try again tonight, bet this was the problem :D, I guess I got confused by all the check and uncheck stuff
 
Last edited:

CAL7

Senior Member
Jun 1, 2010
564
74
0
Well, I'm stuck. Got to Step 19 but could not find my flashable zips (thought I had covered every possibility by copying them to both internal SD and external SD). But, evidently, there were mount problems and recovery could not locate any of the files. At that point, I'm not sure what happened, but now I can't get past the "SONY" logo on the first screen. No obvious way back into recovery, no sign that the device is recognized by the PC.

I can force power off and then boot into blank screen flashtool mode and flashtool recognizes it, but after a minute the device disconnects. Then "SONY" is on the screen and it's going nowhere except by force power off. Here's the log:
Code:
01/054/2014 13:54:06 - INFO  - Device connected in flash mode
01/054/2014 13:54:45 - INFO  - Selected Bundle for SO-02F. FW release : 14.1.H.1.281. Customization : docomo
01/054/2014 13:54:45 - INFO  - Preparing files for flashing
01/055/2014 13:55:08 - INFO  - Device disconnected
Although I'd like to get back to recovery and work on flashing the zips, I am more than happy to start over at Step #9 if I could just get flashtool to see it long enough to flash. I'll take any route to see it come to life. Help (Please)!
 
Last edited:

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
Well, I'm stuck. Got to Step 19 but could not find my flashable zips (thought I had covered every possibility by copying them to both internal SD and external SD). But, evidently, there were mount problems and recovery could not locate any of the files. At that point, I'm not sure what happened, but now I can't get past the "SONY" logo on the first screen. No obvious way back into recovery, no sign that the device is recognized by the PC.

I can force power off and then boot into blank screen flashtool mode and flashtool recognizes it, but after a minute the device disconnects. Then "SONY" is on the screen and it's going nowhere except by force power off. Here's the log:
Code:
01/054/2014 13:54:06 - INFO  - Device connected in flash mode
01/054/2014 13:54:45 - INFO  - Selected Bundle for SO-02F. FW release : 14.1.H.1.281. Customization : docomo
01/054/2014 13:54:45 - INFO  - Preparing files for flashing
01/055/2014 13:55:08 - INFO  - Device disconnected
Although I'd like to get back to recovery and work on flashing the zips, I am more than happy to start over at Step #9 if I could just get flashtool to see it long enough to flash. I'll take any route to see it come to life. Help (Please)!
Please force power off your phone and wait at least 10 seconds to make sure the phone is really powered off and does not reboot (did you notice the 3 vibrates when force powering off?).
After that open flashtool (don't connect phone yet) and prepare everything as described in step 9 and click flash. Wait 10 seconds and then connect your phone in flashmode. After flashing you should be able to start your phone normally again. Copy the needed files to internal and external sdcard and proceed with the remaining steps.

By the way: Before formatting /system, make sure you can locate the flashable zip files in recovery!
 
Last edited:

CAL7

Senior Member
Jun 1, 2010
564
74
0
Please force power off your phone and wait at least 10 seconds to make sure the phone is really powered off and does not reboot (did you notice the 3 vibrates when force powering off?).
After that open flashtool (don't connect phone yet) and prepare everything as described in step 9 and click flash. Wait 10 seconds and then connect your phone in flashmode. After flashing you should be able to start your phone normally again. Copy the needed files to internal and external sdcard and proceed with the remaining steps.

By the way: Before formatting /system, make sure you can locate the flashable zip files in recovery!
Great! Thank you! That got me back to a functioning Docomo system. I verified two copies of the flashable zips in each SDCARD.

I'm having problems at Step 13, running the dual recovery bat file - even though the drivers work to show the storage subsystems, adb is waiting for the device. It worked for me before, so I think I'll be able to get past that on my own (but if you have any obvious tips, I'd be even more grateful).
 

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
Great! Thank you! That got me back to a functioning Docomo system. I verified two copies of the flashable zips in each SDCARD.

I'm having problems at Step 13, running the dual recovery bat file - even though the drivers work to show the storage subsystems, adb is waiting for the device. It worked for me before, so I think I'll be able to get past that on my own (but if you have any obvious tips, I'd be even more grateful).
Check out the first post, it's answered there under 'Questions' ;)
 

RobHands

Senior Member
Aug 12, 2013
103
14
0
Winterthur
Ok so now I get the error in recovery, that it's unable to mount system etc? I thought in the last flash I have to exclude system(check)?

Edit: I can't mount anything, wtf? I unchecked under wipe all and excluded system under step 15. Maybe I am doing something wrong at step 16?
 
Last edited:

CAL7

Senior Member
Jun 1, 2010
564
74
0
I'm really sure :cyclops: I turned on debugging and I'm pretty sure :( I checked the right boxes..... but I'm headed back to Step 9 to do it right. Thank you.
It took two more tries beginning at #9 to get there, but finally done. Thanks again.
 

Riyal

Senior Member
Dec 16, 2011
3,008
1,762
243
Iloilo City
Ok so now I get the error in recovery, that it's unable to mount system etc? I thought in the last flash I have to exclude system(check)?

Edit: I can't mount anything, wtf? I unchecked under wipe all and excluded system under step 15. Maybe I am doing something wrong at step 16?
Just ignore the message and proceed since you'll be wiping system partition and replace it anyways. What's important on that step is you manage to install the recovery partition
 
Last edited:

RobHands

Senior Member
Aug 12, 2013
103
14
0
Winterthur
On step 13. Did you manage to successfully root your device with Run Z1C-lockeddualrecovery(...)installer.zip? If so then your system partition should be intact.

Regardless just ignore the message and proceed since you'll be wiping system partition and replace it anyways.
Problem is it won't mount anything even int. sdcard

It says root successful and it goes on about something like it booted into cwm and it should restart to clean itself up. After that I resume with the next step. It's the 5th time I now tried.

Offtopic: why are the xperia system sounds gone with EU 4.3 firmwares? On NTT DoCo firmware it's not the case :eek:

---------- Post added at 04:39 AM ---------- Previous post was at 03:52 AM ----------

Holy smokes! I finally figured it out.

While in Recovery I had to flash lockeddualrecovery before anything else so partitions would be restored properly, then reboot and repeat step 19
 
Last edited:

Riyal

Senior Member
Dec 16, 2011
3,008
1,762
243
Iloilo City
lol! :D Gratz then haha! After alot of attempts.

Problem is it won't mount anything even int. sdcard

It says root successful and it goes on about something like it booted into cwm and it should restart to clean itself up. After that I resume with the next step. It's the 5th time I now tried.

Offtopic: why are the xperia system sounds gone with EU 4.3 firmwares? On NTT DoCo firmware it's not the case :eek:

---------- Post added at 04:39 AM ---------- Previous post was at 03:52 AM ----------

Holy smokes! I finally figured it out.

While in Recovery I had to flash lockeddualrecovery before anything else so partitions would be restored properly, then reboot and repeat step 19
 
  • Like
Reactions: RobHands

zat0x

Senior Member
Jun 29, 2010
436
56
0
Im selling my z1c and just restored my TA backup . How can i tell everything went ok ? Is it possible to see if bootloader is locked again and DRM keys are restored ? Sorry , im Sony noob :p
 

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
Im selling my z1c and just restored my TA backup . How can i tell everything went ok ? Is it possible to see if bootloader is locked again and DRM keys are restored ? Sorry , im Sony noob :p
Type in phone *#*#7378423#*#* and go to Service Info => Configuration. If bootloader is unlocked it will say: "Bootloader unlocked: Yes".
 
  • Like
Reactions: zat0x

zat0x

Senior Member
Jun 29, 2010
436
56
0
Type in phone *#*#7378423#*#* and go to Service Info => Configuration. If bootloader is unlocked it will say: "Bootloader unlocked: Yes".
The only thing i could find at Service Info => Configuration is this :

Rooting status :

Bootloader unlock allowed :Yes


It is allowed but it says nothing about the current status right ? Because i read somewhere (cant find it back) that before rooting / unlocking bootloader always check the service menu to see the phone is allowed to do.
 
Last edited:
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