How to Control Both Moto G and Moto E LEDs

Notification LEDs offer a great way to check for notification at a glance on the Moto G (2013) and … more

LG G3 Receives Oversharpening Fix via Modified Kernel

Nothing is perfect, as they say. No matter how alluring or seemingly perfect, … more

APKTool Updated with Android Lollipop Support

One of the beauties of Android is the level of flexibility we have over our devices. Whether … more

Lollipop Leak for Sprint Galaxy S5, TWRP for Micromax Canvas Magnus – XDA TV

Android 5.0 Lollipop has been leaked for the Sprint … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Method for rooting Xperia with unlocked bootloader

OP omicorn

14th May 2014, 08:50 AM   |  #1  
omicorn's Avatar
OP Junior Member
Thanks Meter: 0
 
6 posts
Join Date:Joined: May 2014
More
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!
14th May 2014, 09:17 AM   |  #2  
Rycon33's Avatar
Senior Member
Thanks Meter: 1,618
 
2,793 posts
Join Date:Joined: Apr 2011
More
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
Last edited by Rycon33; 14th May 2014 at 09:20 AM.
The Following User Says Thank You to Rycon33 For This Useful Post: [ View ]
14th May 2014, 09:33 AM   |  #3  
omicorn's Avatar
OP Junior Member
Thanks Meter: 0
 
6 posts
Join Date:Joined: May 2014
More
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?
14th May 2014, 09:50 AM   |  #4  
Rycon33's Avatar
Senior Member
Thanks Meter: 1,618
 
2,793 posts
Join Date:Joined: Apr 2011
More
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
The Following User Says Thank You to Rycon33 For This Useful Post: [ View ]
14th May 2014, 02:52 PM   |  #5  
noahvt's Avatar
Senior Member
Flag Antwerpen
Thanks Meter: 377
 
1,186 posts
Join Date:Joined: Jan 2013
More
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
14th May 2014, 02:57 PM   |  #6  
Senior Member
Thanks Meter: 2,161
 
4,301 posts
Join Date:Joined: 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
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes