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

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
My next problem was that CWM, for some weird reason, did not have access to the internal or external storage. It kept saying "can't mount /sdcard" and there was no way around it. I eventually decided to try holding volume down when booting and using TWRP instead. From there, everything worked fine. I was able to format /system and flash the other files without problems.
Glad it worked now and sorry for your frustration. Is your sd card formatted in exFat or Fat32? What's the capacity?
 

cyrilp

Senior Member
Sep 5, 2006
772
448
0
hi thank you for your guide.

After step 20, when i try to turn the phone on it's stuck on "sony". Any idea ? everything went fine so far
 

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
hi thank you for your guide.

After step 20, when i try to turn the phone on it's stuck on "sony". Any idea ? everything went fine so far
Can you still get into the recovery menu? If not I'm afraid you did something wrong and it's probably the best you start again.
 

nemphis

Senior Member
Nov 9, 2006
107
17
0
13 Run Z1C-lockeddualrecovery

13 Run Z1C-lockeddualrecovery(...)installer.zip's install.bat and select option 3 [Installation on unrooted ROM] ( http://nut.xperia-files.com/ )

how exeactly is this be done?
cant get it working.
adb devices, z1 is regognized, what commands should be given after that????

thanx in advance! :)
 

wyt18

Senior Member
Jun 4, 2007
371
174
63
Thanks for the tip below ... could anyone help by being more specific as to which steps it replaces on the guide on page 1?

There is a better solution to restore your stock rom. Steps is:

adb push busybox /data/local/tmp/
disconnect usb cable

open terminal emulator and do:
cd /data/local/tmp
chmod 755 busybox
./busybox tar pczvf /storage/removable/sdcard1/system.tar.gz /system

now you have full system backup in your external sdcard. Ater rooting, simple do:
cd /
busybox mount -o remount,rw /system
busybox tar xzvf /storage/removable/sdcard1/system.tar.gz
reboot

done :)

Another thing. Any one confirm - current rooting status is safe??? Are you 100% sure??? Did you checked bootloader version, version of the other things...etc, are you sure something is not broken by flashing xperia z1 firmware, for example did your phone got touchscreen firmware flashed from z1, any strange thing after all that...???
 

moesus

Senior Member
Nov 4, 2009
116
23
0
As far as I know you can do it OTA (not with an unlocked bootloader though) and yes I'm pretty sure it will unroot the device.
Sorry, not a pro about this... Is there a way to choose certain options in flashtool when flashing a ftf file, so that I can keep root? Thanks :)

Sent from my D5503 using XDA Premium 4 mobile app
 

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
Hey dudes,

cant re-lock on my Z1c with a successful boot-up anyone else got the same issue? steps I've tried are in my other post

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

Any advice would be great :)

Cheers.

Antz
Did you follow the steps from the first post of this thread to lock your bootloader? Which kernel / rom are you using?

13 Run Z1C-lockeddualrecovery(...)installer.zip's install.bat and select option 3 [Installation on unrooted ROM] ( http://nut.xperia-files.com/ )

how exeactly is this be done?
cant get it working.
adb devices, z1 is regognized, what commands should be given after that????

thanx in advance! :)
You download the file from the url and unpack it. Inside is a install.bat file. Double click it to open it. Then you can select option 3.

Sorry, not a pro about this... Is there a way to choose certain options in flashtool when flashing a ftf file, so that I can keep root? Thanks :)

Sent from my D5503 using XDA Premium 4 mobile app
I don't think it's possible (because the new firmware will overwrite system and kernel) with flashtool, maybe if you flash it in CWM.
 

F308

Senior Member
Feb 25, 2013
284
39
28
In point 15 - Flash D5503_14.2.A.1.114_Generic UK.ftf - question

may I flash D5503_14.2.A.1.114_CE.ftf ?
I live in Central Europe and formerly CE packages worked very well for me.
Would like to stick with them.
 

marcolorenzo

Senior Member
May 17, 2012
315
48
0
13 Run Z1C-lockeddualrecovery(...)installer.zip's install.bat and select option 3 [Installation on unrooted ROM] ( http://nut.xperia-files.com/ )

how exeactly is this be done?
cant get it working.
adb devices, z1 is regognized, what commands should be given after that????

thanx in advance! :)
Not sure if you had the same problem as me. I was also stuck on Step 13. I pressed 3 and then it just stopped at "Waiting for device to connect" even though Windows confirmed that me device was connected with a sound. So I went into device manager and lo and behold, there was a yellow triangle next to the device "6903" (this might not be the exact number as I can't remember but it was something like that). So I right clicked on it, chose update drivers and pointed it towards where my Z1 Compact drivers were located which I downloaded from the Sony website and voila, install.bat worked! So even if you've installed the drivers from Step 1, because the firmware for your phone is now different, I guess the computer doesn't recognise it any more so you will have to install the drivers again.

Maybe zxz0O0 can put this in the original post?

EDIT: My problem now is that I don't know how to turn the phone off. I tried holding the power button but nothing happens (no vibration, nothing displayed on the screen). So basically I completed Step 14 but I can't go on because I can't switch the phone off. I tried to boot in flashmode but I guess I need to switch the phone off first because when holding the volume down key and plugging in the USB cable, Flashtool shows that the device is not in flashmode. Please help!
 
Last edited:
  • Like
Reactions: zxz0O0

euronaut

Member
Feb 22, 2014
18
2
0
Not sure if you had the same problem as me. I was also stuck on Step 13. I pressed 3 and then it just stopped at "Waiting for device to connect" even though Windows confirmed that me device was connected with a sound. So I went into device manager and lo and behold, there was a yellow triangle next to the device "6903" (this might not be the exact number as I can't remember but it was something like that). So I right clicked on it, chose update drivers and pointed it towards where my Z1 Compact drivers were located which I downloaded from the Sony website and voila, install.bat worked! So even if you've installed the drivers from Step 1, because the firmware for your phone is now different, I guess the computer doesn't recognise it any more so you will have to install the drivers again.

Maybe zxz0O0 can put this in the original post?

EDIT: My problem now is that I don't know how to turn the phone off. I tried holding the power button but nothing happens (no vibration, nothing displayed on the screen). So basically I completed Step 14 but I can't go on because I can't switch the phone off. I tried to boot in flashmode but I guess I need to switch the phone off first because when holding the volume down key and plugging in the USB cable, Flashtool shows that the device is not in flashmode. Please help!
as mentioned in
Questions•How do I power off my phone if the screen is blank or the phone is not responding?•Hold Volume Up and then hold the power button. After the phone vibrated 3 times it will shut down.
;)
 
  • Like
Reactions: marcolorenzo

FlintStoned-

Senior Member
Apr 4, 2013
210
34
28
Belgium
www.hoolite.be
I think I messed up.. bad.. I'm stuk at step 12. I'm running the install.bat file and I can't get any further then: Waiting for Device, connect USB cable now...

My device is plugged in, since the green light is on. So.. nothing is happening. I also can boot up my phone. What now? Any suggestion?
 

marcolorenzo

Senior Member
May 17, 2012
315
48
0
as mentioned in

;)
Haha I was just trying different button combinations and stumbled on it. Then I came on the forum only to find your response. Thanks a lot though! I was sure I read the FAQ. Guess I need to be a bit more thorough!

---------- Post added at 11:38 PM ---------- Previous post was at 11:27 PM ----------

I think I messed up.. bad.. I'm stuk at step 12. I'm running the install.bat file and I can't get any further then: Waiting for Device, connect USB cable now...

My device is plugged in, since the green light is on. So.. nothing is happening. I also can boot up my phone. What now? Any suggestion?
Look at my post #51.
 

FlintStoned-

Senior Member
Apr 4, 2013
210
34
28
Belgium
www.hoolite.be
Look at my post #51.

I'm not having driver issues I think. There is no yellow triangle to see, so it must work 'perfectly'. I did notice that, when I run the install.bat while flashtool is running, nothing is happening. If I close it, the install.bat runs but tells me there is no device found. So I'm back to zero. Still can't boot up phone. Any more solutions?
 

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
I'm not having driver issues I think. There is no yellow triangle to see, so it must work 'perfectly'. I did notice that, when I run the install.bat while flashtool is running, nothing is happening. If I close it, the install.bat runs but tells me there is no device found. So I'm back to zero. Still can't boot up phone. Any more solutions?
Try (force) power off your phone. Then power on normally (screen will be blank). After 10seconds plug in your usb cable to your computer (maybe try another USB port). Check in device manager if everything is ok. Then try again with install.bat

If it still doesn't work: Are you sure that you enabled usb debugging in step 10 and checked all the correct options in step 11 (select Wipe [Uncheck ALL] and Exclude [Check ALL except kernel and system]) ?
 

LaizyJumper

Senior Member
Jul 13, 2010
99
29
0
I think I messed up.. bad.. I'm stuk at step 12. I'm running the install.bat file and I can't get any further then: Waiting for Device, connect USB cable now...<br />
<br />
My device is plugged in, since the green light is on. So.. nothing is happening. I also can boot up my phone. What now? Any suggestion?
I had the same problem with Windows XP. Finally solved it by running the installer script on my Linux PC. But it actually may require z1 drivers at that step, not z1c drivers. Devices have different IDs...
 

FlintStoned-

Senior Member
Apr 4, 2013
210
34
28
Belgium
www.hoolite.be
Try (force) power off your phone. Then power on normally (screen will be blank). After 10seconds plug in your usb cable to your computer (maybe try another USB port). Check in device manager if everything is ok. Then try again with install.bat

If it still doesn't work: Are you sure that you enabled usb debugging in step 10 and checked all the correct options in step 11 (select Wipe [Uncheck ALL] and Exclude [Check ALL except kernel and system]) ?
I'm pretty sure I did. I flashed it back to normal ftf. I'll try again later today, I'll keep you posted. (Not that you're waiting for it..)
 

cyrilp

Senior Member
Sep 5, 2006
772
448
0
Can you still get into the recovery menu? If not I'm afraid you did something wrong and it's probably the best you start again.
No i can't. so i started over from step 8, but again at step 20 i get stuck with the sony logo when i try to power on and i can' t get into recovery either :(

I don't know if it's related be when i enter "recovery mode" i get a error message about "brightness" (it was yesterday so i don't remember the message exactly)
 
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