The title says how to
root Sony Xperia P
with Jelly Bean, but in reality the method is used for several more models, you can see the full list in the author's official post on the
xda-developers website.
I am going to focus on the Sony Xperia P model, since it is the one I have and with which I have been able to do the tests.
What is rooting the mobile device?
It consists of taking
root
permissions (administrator) in our Android operating system. This operation will give us some advantages but it must also be said that it is recommended only for advanced users.
Information about the xploit to get the root permissions
This section is not important for those who only want to root your Sony Xperia P (you can skip it)
, since here we will talk a little about the technical aspects of the xploit.
The exploit used to escalate privileges and become root is the so-called
"PERF_EVENTS root exploit"
. The problem lies in a flaw in the
perf_swevent_init
function that when checking a 64-bit variable with incorrect data type allows local users to escalate privileges.
This bug is part of the Android Jelly Bean kernel and can be exploited to get us root permissions on our mobile device.
At the time of writing this article the bug has only been patched on the Sony Xperia Z, but the same author of xda-developers has shared the
solution for those who have updated their Xperia Z.
Pre-Root Information
First I must know what version of Android and what firmware my Sony Xperia P has. To do this I go to
Ajustes > Acerca del teléfono
and I am shown on the screen information about my device of which I am interested:
Model Number:
LT22i
Android Version:
4.1.2
Build number:
6.2.A.1.100
If I look at the xda-developers post, it clearly states that the root was successfully tested on
Xperia P (LT22i) {FW: 6.2.A.1.100}
so go ahead and without fear!
If you do not have that version of Android and compilation, you have two alternatives: one is to find a root method for your version of Android and another is to update using PC Companion to have Android 4.1.2.
It is also
highly recommended to have the phone with at least 60% battery
so there are no interruptions.
What do we need to root Sony Xperia P?
-
We will need the USB key to connect the phone to the PC.
-
We must also have PC Companion installed on our PC because of drivers, but make sure you don't have it open when you run the root tool. Verify that the PC Companion has it closed (it can be minimized in the taskbar and remain open, so be careful).
-
The tool provided by
DooMLoRD
called
Easy Rooting Toolkit
and in its version 17 at the time of writing the article. The official link to download it is as follows:
http://dh.st/Kmm
-
We activate USB Debugging. This is done in the
Ajustes > Opciones del desarrollador > Depuración USB
menu
Ajustes > Opciones del desarrollador > Depuración USB
.
-
We activate the installation of applications of unknown origin in
Ajustes > Seguridad > OrÃgenes desconocidos
sources.
Time to root with DooMLoRD Easy Rooting Toolkit
The zip file that we downloaded before, unzip it and run
runme_win.bat
.
It is necessary to decompress ALL the files of the zip in a folder (it is
runme_win.bat
execute the file
runme_win.bat
directly from the zip).
Now we connect the phone via USB to the PC and press a key to continue and the rooting will begin.
When the process is over we will be restarted and we will have our phone rooted.
To end
When we have our rooted Sony Xperia P we can make the settings as we had before, in other words, we disable USB Debugging and the installation of unknown sources.
It must also be said that some users according to sda-developers seem to have suffered constant reboots after the rooting, that has not been my case but I leave the next
one with the solution
if necessary.
And finally we can only enjoy our device with root permissions.