[TUTORIAL][ROOT]Upgrade stock .434 to .253 - DRM & Bootloader LOCKED

Incanity

Senior Member
Apr 17, 2008
216
67
28
IJmuiden
*EDIT* - BUGS: Mounting the system r/w with a root explorer, makes the phone reboot.

run in superuser:
/system/bin/stop ric
in a terminal app, this stops the reboots when messing around the system folder.
you need to run it at every boot though.
Hi,

After looking EVERYWHERE on this forum to see if there is a tutorial to upgrade my rooted stock .434 rom to .253 without losing root, I've come across many threads explaining bits and pieces on how to get to .253, and how to get your bootloader and TA partition back in place.

After summoning up some courage, I've decided to try and upgrade my XZ to .253 and rooting it with a bootloader unlock. But it didn't end there. I then tried to relock the bootloader and restore the TA partition using information from many other threads.

The good news is, this worked. I now have:

- Stock ROM
- Root
- DRM Keys intact
- Bootloader LOCKED
- Bootloader unlock allowed = yes

Before explaining step by step how I accomplished this, I'd like to thank the following awesome members of the XDA community:

DooMLoRD , shadowboy23 , krabappel2548 , rickwyatt , DevShaft

And now, the tutorial:

DISCLAIMER: I am not responsible for bricked phones, failed root attempts, heart attacks, or anything else caused by this tutorial. This method worked for me, and I sincerely hope that it will work for everyone else.

Requirements:
- Flashtool
- Stock Firmware .253 - The list of unbranded, stock firmwares is in this thread
- PC Companion
- Doomlord’s Advanced stock kernel
- SuperSU zip - also in DooMLoRD's thread
- Backup-TA 8.0 by DevShaft
- A strong heart (this process nearly gave me a heart attack)


I assume you already have a rooted stock rom, so I won’t be taking the trouble to explain how to root the .434 firmware.


Step 1:
Backup your TA partition using the Backup-TA 8.0 By DevShaft


Step 2:
Backup EVERYTHING you need. Especially your internal storage and your SD-card, these will both be wiped.

Step 3:
Upgrade your phone using sony’s PC companion to the .253 firmware. Let it boot completely after upgrade, so the NFC Firmware is upgraded.

Step 4:
Use flashtool to unlock your bootloader. <- Reminder: This will wipe EVERYTHING. So make sure you have made your backups!

Step 5:
With the bootloader unlocked, root the firmware by using Doomlord’s method as described HERE.


Step 6:
With flashtool, flash the stock Kernel over the advanced stock kernel.


Make sure you flash ONLY the kernel, not the system partition, this will probably make you lose root.

Step 7:
Now that we’ve got a stock, rooted rom, it is time to restore the TA-backup.
From here on, please double check every step you take, as flashing a wrong TA backup will hard brick your device. Also, this is where the increased heart rate starts ;)
Use TA-Backup 8.0 by DevShaft to restore your TA partition, thus locking the bootloader and restoring your DRM keys.

Step 8:
Suffer from a minor heart attack while waiting for your phone to boot. This took my XZ a while..
Now that it has booted, check if your DRM keys are intact and your bootloader is locked:

First, dial *#*#7378423#*#*
- Service Info
- Configuration
- Check if bootloader unlock allowed = yes

Second, Go back to the service menu.
- Service Tests
- Verify Certificates
- Check if your certs are all there and intact.

If the bootloader status and the DRM keys are all ok, congratulations! you now have stock, rooted, bootloader closed, drm-rich, .253 rom!

If you have any questions, I will try my best to answer them.
 
Last edited:

silencer51

Senior Member
Jul 17, 2010
129
19
0
I just used your method to clean install .235 with root and locked BL.

Everything worked fine.

However, even with this method, I get a reboot when mounting /system as r/w. Sigh.
 
  • Like
Reactions: Incanity

silencer51

Senior Member
Jul 17, 2010
129
19
0
I've tried this also, after some seconds, my phone reboots also. Sorry!
No problem, with your method, while riskier, I have a cleanly flashed .235 with root. :)

run in superuser:

/system/bin/stop ric

in a terminal app, this stops the reboots when messing around the system folder.

you need to run it at every boot though.
 
  • Like
Reactions: Incanity

Incanity

Senior Member
Apr 17, 2008
216
67
28
IJmuiden
No problem, with your method, while riskier, I have a cleanly flashed .235 with root. :)

run in superuser:

/system/bin/stop ric

in a terminal app, this stops the reboots when messing around the system folder.

you need to run it at every boot though.
I'll make a note in the OP about this. Thank you very much!
 

mjs87

Senior Member
Jan 25, 2009
76
6
0
33
Almelo
heyy

I have the stock ROM installed 253 from sony updater,
I can now start directly from step 1 to rooten?,
* and if I want to make the TA backup than he indicates that the file sdcard / backup TA. ** does not exist
 

silencer51

Senior Member
Jul 17, 2010
129
19
0
You need to downgrade to a rootable ROM first (like .434).

Flash .434, root it, then make a TA backup, then flash .235 and proceed.

If you 're already on .235 and haven't taken a TA backup there is no way to do it without downgrading first...
 

mjs87

Senior Member
Jan 25, 2009
76
6
0
33
Almelo
You need to downgrade to a rootable ROM first (like .434).

Flash .434, root it, then make a TA backup, then flash .235 and proceed.

If you 're already on .235 and haven't taken a TA backup there is no way to do it without downgrading first...
so I downgrade to 434 and then I go root

Bootlock unlock or not?

and then the stock kernel over flash

and restore the TA

as I understand it?

sorry for my english
 

silencer51

Senior Member
Jul 17, 2010
129
19
0
1) Downgrade to .434 by flashing an appropriate FTF file through Flashtool

2) Root it via one of the rooting toolkits available here on xda

3) Backup TA (make sure you have a proper backup!)

4) Update to .235 via PC Companion or SUS

5) Unlock bootloader

6) Flash Advanced Stock Kernel by DoomLord

7) Root through CWM Recovery

8) flash stock .235 through Flashtool and appropriate .ftf

9) relock bootloader through a TA restore

these are the steps, pretty much
 

jjocer

Senior Member
Jun 11, 2011
63
5
0
28
Warsaw
I updated my phone to 235 via PC Companion, but I didn't check if this version is rooted, so I flashed back 434, root and backup TA, but now PC Companion and SUS don't update my phone (no update available...). Can I flash 235 via flashtool or I have to wait?
 

[NUT]

Senior Member
I updated my phone to 235 via PC Companion, but I didn't check if this version is rooted, so I flashed back 434, root and backup TA, but now PC Companion and SUS don't update my phone (no update available...). Can I flash 235 via flashtool or I have to wait?
Click the 'Update to 10.1.1.A.1.253' link in my signature, it will update your device and root it.

With an unlocked bootloader the SUS and PC Companion update services will ignore your phone. You need to re-lock to make them update your phone again.
 
  • Like
Reactions: jjocer

jjocer

Senior Member
Jun 11, 2011
63
5
0
28
Warsaw
Click the 'Update to 10.1.1.A.1.253' link in my signature, it will update your device and root it.

With an unlocked bootloader the SUS and PC Companion update services will ignore your phone. You need to re-lock to make them update your phone again.
But my phone has locked bootloader.
 

jjocer

Senior Member
Jun 11, 2011
63
5
0
28
Warsaw
Last edited:

Incanity

Senior Member
Apr 17, 2008
216
67
28
IJmuiden
I believe that there are some threads on this. There is a way to go around the allowed=no on an unbranded phone. I had the same, I used PC companion to update my XZ to. 253 and the bootloader unlock allowed changed to yes.

From there I unlocked the bootloader, rooted, and restored the TA. Now it still says bootloader unlock allowed = yes

Sent from my glorious Xperia Z C6603
 
Last edited: