Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,687 Members 41,182 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] Getting Your Ultra Rooted And Ready For Flashing [UPDATED]

Tip us?
 
LordManhattan
Old
(Last edited by LordManhattan; 17th July 2014 at 12:49 AM.) Reason: added some stuff
#1  
Account currently disabled - OP
Thanks Meter 5,658
Posts: 15,002
Join Date: Oct 2007
Location: Kepler-34b
Info 2 [GUIDE] Getting Your Ultra Rooted And Ready For Flashing [UPDATED]

GETTING YOUR ULTRA ROOTED AND
READY FOR FLASHING

This guide should in theory make your Ultra ready for flashing custom ROMs, and with that said...

...here comes the warning: Your warranty is now voided. I am not responsible for bricked
devices, or whatever you might end up with.


TABLE OF CONTENT

ROOT ALL THE THINGS
ROOTING .108
ROOTING .757
ROOTING .681
ROOTING .290/.136
ROOTING .532
ROOTING GPe
DOWNGRADING
BACKUP TA PARTITION
CHANGE CDA
UNLOCKING THE BOOTLOADER
INSTALLING RECOVERY AND TWRP
FLASHING A CUSTOM ROM
BACK TO STOCK
BOOTLOOP
MISSING IMEI
CREDITS






BACKUP YOUR TA PARTITION BEFORE YOU UNLOCK THE BOOTLOADER

IF YOU'RE NEW AROUND HERE AND YOU WANT TO ROOT .757, DOWNGRADE TO .532 AND ROOT, AND THEN BACKUP YOUR TA PARTITION. PROCEED TO UNLOCK YOUR BOOTLOADER, UPGRADE TO .757 AGAIN AND ROOT BY FOLLOWING THE SHORT GUIDE HERE.


ROOT ALL THE THINGS:


Thanks to @geohot, we're now able to root (almost) all the things, meaning there is now one tool for rooting. This tool doesn't touch the bootloader, so it also works on locked bootloaders. Be sure to backup your TA partition after you've rooted (in case you want to unlock the bootloader). You can find the tool here.

Note: This tool will not work on the GPe model.


ROOTING .108:

Go to this thread and follow the steps.

ROOTING .757:


Same procedure as with .681, so just go to this thread and follow the steps. Requires an unlocked bootloader.

ROOTING .681:


Rooting .681 (first KitKat build) is pretty straight forward and requires an unlocked bootloader.
After that, just flash the kernel and then SuperSU. You can download and follow the short guide here. The kernel includes Recovery.


ROOTING .290/.136:

.290
• Unlocked bootloader: Follow this thread.
• Locked bootloader: Follow this thread.
.136
• Unlocked bootloader: Follow this thread.

ROOTING .532:


• Use this tool to root

ROOTING GPe:

GPe OWNERS: DO NOT TRY TO FLASH FTFs OR OTHER "XPERIA" ROMs AND KERNELS.
YOU WILL BRICK YOUR DEVICE.

Go to this thread and follow the steps. Thanks to @blueether.

DOWNGRADING:

• Download and install Flashtool (if you're running Windows 8, follow this installation guide) (Jump down to "Part 2" of the guide)
If you're having issues with driver installation, install this one.
If you have issues, or simply have no clue how to install ADB and Fastboot, install and run this.

• Download NUT's 532 firmware from here
• Flash it by following this short guide


BACKUP TA PARTITION:


The TA partition holds all your unique DRM keys, and X-Reality won't work without it (except if you're on .681 or later).
Once you lose it, you can't get it back, so back it up and upload it to your Dropbox or something. So how do you backup your TA partition?

Download this tiny tool on your computer and run it.

Here's a video tutorial by @hamdogg
 



CHANGE CDA (OLD):

This step is no longer necessary.

Install a file explorer from the Play Store. I recommend Solid Explorer or ES File Explorer.
• Navigate to /system and open build.prop
• Change your CDA to: C6833_1275-8026 (there are three different places this has to be changed.
Just take your time and try to find something that resembles the CDA code above.
• Next you'll want to find "ro.somc.customerid" and change it to 436
Next you'll want to find "ro.semc.version.cust_revision" and change it to R11A
• Now reboot your device
The OTA update should arrive now. If it doesn't, go to "Update Center" (app) and manually refresh.
• Update to 257
• The root app (i'm not sure what app it installs) might be gone, so just install
SuperSU from the Play Store if it's not in your app drawer anymore. Update binaries and choose "Normal".


UNLOCKING THE BOOTLOADER:

This may wipe your phone, so backup your stuff

• Go to Sony's dev site
• Request the unlock key and check your mail straight away. Email is quick these days.
• Open Flashtool on your computer (yes, the one you installed earlier)
• Click the "BLU" icon
• Follow the steps and enter your unlock key

INSTALLING RECOVERY AND TWRP:

• Just run this tool on your computer.
• Boot into Recovery (POWER + VOL UP)and take a NAND backup ASAP.
It'll "save your life" (or time) when you're soft bricking your Ultra.


FLASHING A CUSTOM ROM:

• Find a ROM
• Move the ROM (and gapps if it is required) to a folder on your Ultra and remember where you put them
• You'll see that you'll need to flash a "boot.img" before you flash anything, so download this
• Now go to this thread and download QuickIMG and follow the short guide
• Flash the boot.img
• Now unplug from the computer and enter Recovery by pressing the Power button.
Once you see the green LED, push and hold VOL UP. If you fail, just press and hold POWER + VOL UP until you
notice some rapid vibrations. Now try again.
• Once you're in Recovery it's the usual stuff. Flash the ROM and gapps and wipe data/cache/dalvik etc.
• Reboot

BACK TO STOCK:

So you have to send your Ultra to a service center and you want to get it back to 100% stock.
Be sure to be on a STOCK kernel before restoring the TA partition or re-locking the bootloader.

• Restore your TA partition using the tool from the "Backup TA Partition" part of this guide.
• If your bootloader hasn't been locked by the TA tool, use Flashtool and press the BLU button and choose "Relock".
• You may not be able to boot now if you're on a custom ROM, so fire up Flashtool again and flash a stock ROM.

BLINKING RED LED:

So, you locked it while on a custom kernel, and all you get now is a blinking red LED above your screen.
Simply unlock the bootloader in Flashtool again, and it'll work again.
You should now be back on stock, un-rooted and with TA and bootloader in place. If you're back on stock,
but the bootloader is still unlocked, get back to 532, root, lock the bootloader, and then flash a FTF in Flashtool again.


BOOTLOOP:


You've ended in a bootloop and you have no idea what to do. A bootloop is when the boot animation is looping, and you're stuck.
We'll start out easy and go harder as we go down the list.


• [SAFE] Boot into Recovery and wipe cache and go to "Advanced" and wipe Dalvik. Reboot and see if it boots now.
• [SAFE] Boot into Recovery and re-flash the ROM and see if that does the job
• [WIPE] Boot into Recovery and wipe data (this will wipe everything) and reboot
• [WIPE] Boot into Recovery and flash a different ROM (wipe data after flash) and reboot
• [LAST RESORT] Fire up Flashtool and flash a stock FTF and get a new hobby

MISSING IMEI:

You downgraded from 290 or later, didn't you? Well, you'll have to update again or flash [NUT]'s .532 build.

CREDITS:


- @herogjan - The mighty discoverer of the OTA root method
- @krabappel2548 - The Belgian Don (guides, ROMs etc.)
- @RyokoN - ROOT Wizard
- @hamdogg - Bootloader help
- @
fastest83 - Achievement unlocked [1/168]
- @sfagundes - For the GPe root guide
- @hamdogg
- For helping people and for the video(s)
- [FONT=Arial @blueether - For helping an incredible amount of people around here[/FONT]
The Following 59 Users Say Thank You to LordManhattan For This Useful Post: [ Click to Expand ]
 
abuihsan
Old
#2  
abuihsan's Avatar
Senior Member
Thanks Meter 48
Posts: 192
Join Date: Jul 2012
Location: Banten
Quote:
Originally Posted by LordManhattan View Post
............

DOWN THE ROAD:

"I want to go back! Back to stock!"

- Boot into Recovery and restore the NAND backup you made after you installed Recovery. If you didn't; "son, i am disappoint".

CREDITS:

- @herogjan - The mighty discoverer of the OTA root method
- @krabappel2548 - The Belgian Don (guides, ROMs etc.)
- @RyokoN - ROOT Wizard

- @LarryPage - Coffee
Maybe/sometime you will loose(?) the recovery after the backup restored. It happen to me at the latest back-to-stock from CM10.2.

I just need to get the recovery back with this:
http://forum.xda-developers.com/show....php?t=2426739
The Following 2 Users Say Thank You to abuihsan For This Useful Post: [ Click to Expand ]
 
LordManhattan
Old
#3  
Account currently disabled - OP
Thanks Meter 5,658
Posts: 15,002
Join Date: Oct 2007
Location: Kepler-34b
Quote:
Originally Posted by abuihsan View Post
Maybe/sometime you will loose(?) the recovery after the backup restored. It happen to me at the latest back-to-stock from CM10.2.

I just need to get the recovery back with this:
http://forum.xda-developers.com/show....php?t=2426739
Shouldn't happen if your backup already has the right kernel with Recovery, but i've seen stranger things happen, so i'll add that if it happens, then just re-install Recovery. Thanks
The Following 4 Users Say Thank You to LordManhattan For This Useful Post: [ Click to Expand ]
 
abuihsan
Old
#4  
abuihsan's Avatar
Senior Member
Thanks Meter 48
Posts: 192
Join Date: Jul 2012
Location: Banten
Quote:
Originally Posted by LordManhattan View Post
Shouldn't happen if your backup already has the right kernel with Recovery, but i've seen stranger things happen, so i'll add that if it happens, then just re-install Recovery. Thanks : )
Yes it strange as it only happen with my latest back-to-stock. my stock backup is with rooted .257 where as far as I know still don't have proper kernel+recovery like .526 or .532 has.
 
jutley
Old
#5  
jutley's Avatar
Senior Member
Thanks Meter 305
Posts: 2,069
Join Date: Mar 2006
Location: UK
Bread guide will help me when I want to get gpe rom on my ultra.
Device 1 LG G3 D855 16gb Gold stock
Device 2 Google Nexus 2013 32gb rooted Developer L preview 2 rom
Device 3 IPad air 16gb silver (jailbroken pandu)
Device 4 Nvidia shield stock 4.4.2
Device 5 Dell Alienware M17 R5 16gb ram, I7 4700mq R9 M290X 4gb.
 
pTeronaut
Old
#6  
Senior Member
Thanks Meter 101
Posts: 363
Join Date: May 2012
Location: Lafayette, IN
Nice guide, where was it last week?

Would it be possible for you to add a "So you need so send your ZU back to Sony" section covering restoring the TA partition and relocking the bootloader?
[This space for rent]
 
nathlynn22
Old
#7  
Senior Member
Thanks Meter 51
Posts: 804
Join Date: Apr 2013
Quote:
Originally Posted by LordManhattan View Post
Shouldn't happen if your backup already has the right kernel with Recovery, but i've seen stranger things happen, so i'll add that if it happens, then just re-install Recovery. Thanks






Quote:
Originally Posted by abuihsan View Post
Maybe/sometime you will loose(?) the recovery after the backup restored. It happen to me at the latest back-to-stock from CM10.2.

I just need to get the recovery back with this:
http://forum.xda-developers.com/show....php?t=2426739






Quote:
Originally Posted by abuihsan View Post
Yes it strange as it only happen with my latest back-to-stock. my stock backup is with rooted .257 where as far as I know still don't have proper kernel+recovery like .526 or .532 has.
I have noticed when I restored my nand a couple times when I then try reboot it comes up about not installing stock recovery there's about 10 no's which if you click installs stock you need to click the one yes not install stock recovery....


Sent from my HTC One using Tapatalk
 
LordManhattan
Old
#8  
Account currently disabled - OP
Thanks Meter 5,658
Posts: 15,002
Join Date: Oct 2007
Location: Kepler-34b
Quote:
Originally Posted by pTeronaut View Post
Nice guide, where was it last week?

Would it be possible for you to add a "So you need so send your ZU back to Sony" section covering restoring the TA partition and relocking the bootloader?
Sure, but I'm busy right now so that has to wait.

Sent from my C6833 using Tapatalk
The Following User Says Thank You to LordManhattan For This Useful Post: [ Click to Expand ]
 
hamdogg
Old
(Last edited by hamdogg; 14th December 2013 at 09:55 PM.)
#9  
hamdogg's Avatar
Senior Member
Thanks Meter 1,011
Posts: 1,508
Join Date: May 2012
Location: New Zealand

 
DONATE TO ME
Quote:
Originally Posted by LordManhattan View Post
Sure, but I'm busy right now so that has to wait.

Sent from my C6833 using Tapatalk
requested sticky...

here is a video I made on how to backup TA partition. also discusses what to do to restore your TA partition..

youtube ID : 8TowVR7CNQQ

I'll do a more comprehensive video in 3 days I hope... but for the moment this should be fine.
feel free to shove that in the OP

PS... can't believe that I'm the only one thats said thanks so far... tick... tick... BOOM!
The Following 2 Users Say Thank You to hamdogg For This Useful Post: [ Click to Expand ]
 
LordManhattan
Old
#10  
Account currently disabled - OP
Thanks Meter 5,658
Posts: 15,002
Join Date: Oct 2007
Location: Kepler-34b
Alright, i can add the "going back to stock" part, but i have never relocked the bootloader and restored the TA, so i'm not sure in what order we should do it. Relocking the bootloader is easy. Just use the TA backup tool and restore your backup, and it will lock the bootloader again. But, here's my question. This requires root, so we can't do it when we've flashed the stock firmware using Flashtool since we'll lose root. So i guess if a person is running CM, he'll have to restore TA and also lock the bootloader while on CM, but this will cause a soft brick, but then he can just flash the stock TFT in Flashtool?

Any ideas? I'm asking because i don't want to write something that's not 100% right.

The Following User Says Thank You to LordManhattan For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes