FORUMS

Is the LG G4’s Camera Really DSLR-worthy?

After months of anticipation, the LG G4 was finally unveiled today, showing off an … more

SuperSU Beta Updates With Minor Fix For Galaxy S6

ChainFire’s root permissions app SuperSU has updated to v.2.49 to fix audits on … more

LG G4 Day Event Coverage: Specs, Features, Design & More!

LG has been teasing us with a countdown for a while now, and today it reached … more

Xposed Modules to Modify Email – XDA Xposed Tuesday

Even though we have Dropbox and other ways to share files, people still want … more
Post Reply Subscribe to Thread Email Thread

[Q] Method for rooting Xperia with unlocked bootloader

14th May 2014, 07:50 AM |#1  
omicorn's Avatar
OP Junior Member
Thanks Meter: 0
 
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, 08:17 AM |#2  
Rycon33's Avatar
Senior Member
Thanks Meter: 2,109
 
Donate to Me
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 08:20 AM.
The Following User Says Thank You to Rycon33 For This Useful Post: [ View ]
14th May 2014, 08:33 AM |#3  
omicorn's Avatar
OP Junior Member
Thanks Meter: 0
 
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, 08:50 AM |#4  
Rycon33's Avatar
Senior Member
Thanks Meter: 2,109
 
Donate to Me
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, 01:52 PM |#5  
noahvt's Avatar
Senior Member
Flag Antwerpen
Thanks Meter: 443
 
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, 01:57 PM |#6  
Senior Member
Thanks Meter: 2,196
 
More
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