Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,209 Members 36,833 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Method for rooting Xperia with unlocked bootloader

Tip us?
 
omicorn
Old
#1  
omicorn's Avatar
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: May 2014
Default [Q] Method for rooting Xperia with unlocked bootloader

Hi!

So finally my old phone gave up and I decided to go for Xperia SP thinking I would flash Cyanogenmod on it. Now that I have used it for a while I decided I'd keep the stock but still unlock and root the phone to be able to restore data folders (WhatsApp!).

Now most of the rooting methods here are workarounds for locked boot loader models and involve finding the right firmware from Sony and a lot of hassle with the file patching. Even with unlocked models the rooting works by flashing the exploited kernel and using the exploit to gain root.

My question is why is it not possible to just boot (NOT FLASH) modified kernel with security off via fastboot and then upload SuperSU or Superuser files into device and then after installation continue using the kernel provided by the firmware? This is also called the general method.

I will go this route if there are no reasons not to.

PS. Thanks for this wonderful community. As a long time lurker I finally decided to join you!
 
Rycon33
Old
(Last edited by Rycon33; 14th May 2014 at 08:20 AM.)
#2  
Rycon33's Avatar
Senior Member
Thanks Meter 1,259
Posts: 2,555
Join Date: Apr 2011
Hot booting doesn't work anymore in new Xperias. It used to work when I had the xoeria arc. Now for your rooting wherein you want to retain the stock kernel, just use the advance stock kernel of Doomlord, it's pure stock kernel (only with recovery added). Then flash the SuperSU zip in the recovery.

Here's the link for Doom's kernel. http://forum.xda-developers.com/show....php?t=2646193

Tapatalked from my Xperia SP
My Nexus 5 mods for PA
My Xperia SP on Paranoid Android
My Family's Android devices - xperia P, xperia SP, xperia TX, moto G, and nexus 5

The Following User Says Thank You to Rycon33 For This Useful Post: [ Click to Expand ]
 
omicorn
Old
#3  
omicorn's Avatar
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: May 2014
Okay, thanks for the info. Sucks that hot booting is not available but the method you posted seems fair enough.

I still have one question slightly related to this. In my previous phones the recovery has been installed separately (separate ramdisk and maybe even kernel?). Have I understood correctly that in Xperias the recovery is included in the boot.img instead of recovery.img and it depends on bootloader sent parameters whether the phone boots recovery or the normal mode? In other words if I install sometimes in the future a custom ROM and the recovery included is somehow broken I have to fix it via fastboot?
 
Rycon33
Old
#4  
Rycon33's Avatar
Senior Member
Thanks Meter 1,259
Posts: 2,555
Join Date: Apr 2011
That's what weird thing about Sony, they don't have a separate recovery image partition.

Most Xperia custom ROMs include their own boot.img(with recovery in it) so that's covered.

Tapatalked from my Xperia P
My Nexus 5 mods for PA
My Xperia SP on Paranoid Android
My Family's Android devices - xperia P, xperia SP, xperia TX, moto G, and nexus 5

The Following User Says Thank You to Rycon33 For This Useful Post: [ Click to Expand ]
 
noahvt
Old
#5  
noahvt's Avatar
Senior Member
Thanks Meter 315
Posts: 1,132
Join Date: Jan 2013
Some Recovery's are built in into the system and that's nasty because if you wipe your system to install a custom ROM you're recovery will let you down and hang

Sent from my C5303 using XDA Free mobile app
MY DEVICES:

XPERIA SP (C5303)
-CPU: 1.7ghz(DUAL) QUALCOMM SNAPDRAGON S4 PRO
-RAM: 1GB
-BOARD: MSM8960T
-GPU: Adreno 320
-ROM: [KK 4.4.3] OFFICIAL CM11 Nightly
-KERNEL: [CM11]Williams kernel V2


Asus Transformer tf300t (CARDHU)
-CPU: 1.7GHz( QUAD, OC ) TEGRA3 T30L
-RAM: 1GB
-BOARD: Cardhu
-GPU: TEGRA3
-ROM: MULTIBOOT: Xubuntu, ubuntu touch, cm11, Cromi-X, omni, Dirty Unicorns


SONY SW2
-CPU: 200MHZ(SINGLE) QUALCOMM M3
 
mrjraider
Old
#6  
Senior Member
Thanks Meter 2,139
Posts: 4,294
Join Date: Jul 2012
We need to find some way to temp install a recovery into /data.. This will prevent issues when installing ROM's and wont even need root since it is "data" dunno if its possible and how to pull of. :P
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes