yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M2] Miche1asso:
Do you mean to make a short version? I mean, as it is now it's a full guide, from A to Z. I was thinking about making a section with the 4-5 steps for the skilled users. Too bad I didn't think about reserving the second post. Is there any way to have it added? Otherwise I'll put it in the bottom with a reference on the top.

EDIT: Added a generic procedure on the top.

yeah, I was thinking about making a thread there pointing to this one as well. The process is quite generic, although I think in the Xperia Z rootkitXperia does reboot the phone disabling the RIC.
[Sony Xperia M2] Vino Kulafu:
No need to make a short version, my friend; it's good enough. Here are some suggestions though:

1. I think the portion about holding the up volume key is wrong since it boots the phone into fastboot mode while we need to go to flash mode.

2. Kindly stress the importance of

unchecking the wipe checkboxes

in flashmode. If not unchecked, you could end up with a bootlooping phone wherein the root kit will not function since the adb debug setting has been reset, which leads to #3.

3. Make use of the OFF button near the sim card slot when faced with the situation described in #2. Just flash back the original kernel and repeat.

My experience was this:

I didn't wait for reboot; I cancelled the procedure when it hung in the reboot part. Then I shut the phone off using the OFF button near the sim card slot, then flashed back stock KK kernel only. Afterwards, I proceeded to the disabling RIC then reboot again. Presto, all is well.

:laugh:
[Sony Xperia M2] Miche1asso:
Ok, let me see:

1. Crap. I always get confused. It is Volume down, then, I just checked. I'll fix it.

2. Oh, I didn't think it could get so bad. I just unchecked the boxes to avoid to lose my data.. Well, yes, thinking about that it makes sense now.

3. I'll add it. Thanks.
[Sony Xperia M2] Dzepar:
As i know, with Locked bootloader even if you hold volume up (+ button) it will reject the connection with phone. Otherwise great guide and you should contact someone of moderators to move this in General section. :)

Thanks

Xperia M2 D2303 on K.K. 4.4.4
[Sony Xperia M2] i_1:
how the Xperia M2 Aqua (D2403) ?

Is there a solution root for D2403 with locked bootloader ? :D

sorry bad my language
[Sony Xperia M2] Miche1asso:
No, no. One just needs to hold Volume Down. WIth the locked bootloader we can flash all FTF we like as long as they are from Sony.

I also made a new thread in the general section just with the "General Guidelines" also pointing to this one. But thanks.

Actually it made the portal! :)

If it had a Jelly Bean ROM just download the FTF (don't ask me from where) and follow this guide.
[Sony Xperia M2] i_1:
sorry .. no I do not understand

after successful with rootkitxperia , so need to flash back stock kernel before?:confused:
[Sony Xperia M2] Vino Kulafu:
Yes, you need flash back stock KK kernel. After doing that, the phone should boot properly. Then you can proceed to disabling the RIC module steps.
[Sony Xperia M2] i_1:
Why is this?

anyone can help ?
[Sony Xperia M2] i_1:
sorry

sorry I'm not as thorough with his files ...

now xperia M2 Aqua (D2403) has been rooting with locked bootloader on KitKat 4.4.4

Thank you Miche1asso with this awesome work ...:good::good::good:

Thank you also for Kulafu Vino has helped me with explanation...:good::good::good:
[Sony Xperia M2] Postiga 41:
Help me please i have same phone like you i dont have kernel but have the firmware for 2403
[Sony Xperia M2] Miche1asso:
You're welcome!

So, let me understand: did you flash my attached JB kernel for the M2 D2303 in the M2 Aqua D2403? I'd like this to be confirmed so in the case I will add it to the guide.
[Sony Xperia M2] i_1:
Yes ... I'm using your D2303 JB kernel

---------- Post added at 01:20 AM ---------- Previous post was at 01:09 AM ----------

Just wait for the later addition of tutorials from Miche1asso
[Sony Xperia M2] Miche1asso:
The kernel I attached in the main post works for the D2403 as well. I updated the guide confirming it. Download it and follow the instruction step by step.
[Sony Xperia M2] umeshxda:
After flashing latest kernel , phone just shows sony then blank screen...but adb can detect the device...

any fix??
[Sony Xperia M2] Miche1asso:
You should be more specific. I need to know:

Which phone you're rooting (like M2 D2303)

From which FTF comes the JB kernel did you install

Which kernel you flashed back

Most important you must be sure that the final kernel you flash back i

s exactly the one you originally had

. In any case in this situation nothing should be lost (well, but the rooting). Follow the steps in the "Unrooting/Recovery" section and after that you may repeat the rooting process double checking you have the right FTF.
[Sony Xperia M2] umeshxda:
Well,

1. Xperia M2 Dual(D2302)

2. Jb 4..3 UKR FTF ( 4.3 only ftf i can find on internet)

3. 4.4.4 kernel Indian FTF

yesh, i double checked final kernel i flashed back is the kernel i had on my device
[Sony Xperia M2] Miche1asso:
But so you managed to root it and now after flashing back the original kernel it doesn't boot? Try to post a logcat as we discussed via PM. It's a bit weird, because flashing back the original kernel the ROM should be like before (rooting apart). Unless the D2302 isn't really supported by rootkitXperia. I think I've read already that there were some issues with the dual SIM phones. I dunno, I need a logcat.

Also check if the rooting is working and that the RIC is disabled. Just type these commands

adb shell
su
id
busybox mount -o rw,remount /system

And post the output.
[Sony Xperia M2] umeshxda:
Oops sorry, i had a imagination that i created a 4.4.4 ftf and replaced 4.4.2 with 4.4.4, wait for a while now creating 4.4.4 ftf .... will report back what happens....

Edit: device is not detected by rootkit after flashing kernel..... previously it was detected but not detecting now...installed all drivers properly
[Sony Xperia M2] Miche1asso:
Is the phone booting fine, now? If so most likely the adb debug in the developer settings has been disabled. Just enabled it again.

Otherwise I'd suggest to restore the kernel and system of your ROM with Flashtool (and if that still is messed up rebuild the ROM with PC Companion) and try again. Unfortunately from what I understood you didn't follow the procedure correctly.
[Sony Xperia M2] umeshxda:
yeah, after flashing latest kernel device booted fine, after flashing jb kernel rootkit failed to detect the device. yeah, i have correctly followed the procedure, basically at my first attempt rootkit successfully rooted my device and i have also tried your check command it worked fine, but i flashed the wrong kernel....now even through flashing correct kernel it is not working ...****!
[Sony Xperia M2] i_1:
;)

if there is a need:D
[Sony Xperia M2] Miche1asso:
As i told you already, in similar cases I restart from scratch. Install the latest kernel and system and follow the procedure step by step again.

Edit: Wait, what kernel was it? He has a D2302.
[Sony Xperia M2] umeshxda:
I tried 2 times..... Will try once again tmr
[Sony Xperia M2] Miche1asso:
Ok. Just try to be more detailed if you get any error. A copy&paste of the rootkitXperia execution would help. Also attach a catlog in case. And use the command to see if the phone is rooted (adb shell "su -c id"). It may.
[Sony Xperia M2] Postiga 41:
Thanks to all who make this topic and a big thanks to i_1, i have my sony xperia m2 aqua 4.4.4 with root and binaries installed with bootloader locked =D
[Sony Xperia M2] i_1:
suggestion

possible for the Xperia M2 Dual (D2302), do not use the kernel on the front page ....

Try using the OS kernel D2302 JB,Do not forget to enable USB debugging before flash,and uncheck wipe when flash the kernel :D
[Sony Xperia M2] i_1:
.

Edit: Wait, what kernel was it? He has a D2302.[/QUOTE]

The kernel KK For M2 Aqua (D2403) there may be the need

---------- Post added at 08:55 AM ---------- Previous post was at 08:51 AM ----------

you are welcome
[Sony Xperia M2] umeshxda:
I didn't used the kernel provided in OP as it is for D2303, i used my dual sim kernel!
[Sony Xperia M2] umeshxda:
After so many attempts finally rooted my m2 dual.... Rootkit provided by you didn't work instead i used easyroottool by zxz000...

It worked fine!

Thanks for the finding way to root 4.4.4... Thanks a ton!
[Sony Xperia M2] nlooooo:
Ok, just one question, I have M2 (D2303) from Telenor Srbija, bootloader unlock not allowed, got about month ago with KK (4.4.2) installed, so does this procedure can be used to obtain root on my phone?

Thanks in advance.
[Sony Xperia M2] Andrej732:
That's the reason why this thread is made. For devices with locked bootloader.
[Sony Xperia M2] nlooooo:
Ok, had few problems with rootkit and used easyrooltool, then force root with Flashtool and now it works.
[Sony Xperia M2] Andrej732:
Good job.
[Sony Xperia M2] nlooooo:
OK, had problem like this and managed to get full root with this fixes:

Couldn't use rootkitXperia (hanging on waiting for device) used easyroottool managed to get SuperSU but had system rw problem.

Used Flashtool to get system RW (force Towelroot), but after SuperSU update and binary update got system rw problem again.

Downloaded flashable SuperSU zip and extracted Superuser.apk (zip folder common) and su binary (zip folder armv7) to Flashtool resources folder (c:\Flashtool\custom\root\subin\Supersu\ on my PC).

Did force Towelroot with Flashtool again and solved system rw problem.
[Sony Xperia M2] kristver:
First of all: thank you very much Michelasso for sharing this tutorial!!!!

Already days i am spending time trying to root my xperia M2 (D2303) android 4.4.4 with kernel 18.3.1.C.0.21

I tried a lot of rooting programs, but nothing worked, towelroot, framaroot, kingo android root, etc.

I have read a lot of tutorials also, but this one is the first i find that is so complete and easy to follow, also for a beginner like me. So for this reason thx!!!!!

Before i had an xperia pro mini that i had rooted with kingo, and it worked like a dream, but now with my xperia m2, they said me to wait a little bit, because my device is not already supported by kingo, so i came over here.......

Annyway, i followed your guide and everything went well, even root checker says my device is rooted, but i still have 2 problems, every time i reboot the phone, i get the message that supersu must be updated, i already updated from google play store, but it still coming the message. 2 problem is, that i still cant delete system apps, even not when rooted and i used progs like "system app remover", "es file explorer",

So, what do you think about it, and is there someone having a solution???

thx, kristver
[Sony Xperia M2] nlooooo:
First of all you have problem with not mounting system as read/write just as read. I had the same problem and this is the way I solved it:

You already have Flashtool and you know how to use it so I move further

Download latest SuperSU zip from here http://download.chainfire.eu/695/SuperSU/UPDATE-SuperSU-v2.45.zip

Unpack Superuser.apk (zip folder common) and su binary (zip folder armv7) to Flashtool resources folder (c:\Flashtool\custom\root\subin\Supersu\ on my PC)

Start Flashtool and connect phone turned on to PC and from menu chose the second option (in my Flashtool called My D230X), then root and at the end force towelroot. When flashtool finishes rooting it will reboot your phone.

If you don't have SuperSU app in drawer use some file explorer to locate it in System\App folder and install it from there.

I hope I helped.
[Sony Xperia M2] Dzepar:
You need to make system as r/w to update SuperSu, follow the part "DISABLED THE RIC" . ;)

Good Luck.

Xperia M2 D2303 on K.K. 4.4.4
[Sony Xperia M2] nlooooo:
I couldn't do it with the given command, I was getting permission denied all the time so I used Flashtool.
[Sony Xperia M2] Dzepar:
You need to have unknown source, usb debugging On give permission to USB debugging authorization and adb drivers instaled in order to work. I installed slim adb and it's all good. If you need them I'll send you link when I'm home.

Dz

Xperia M2 D2303 on K.K. 4.4.4
[Sony Xperia M2] nlooooo:
I have it all, plus full platform tools installed via android sdk, rootxperiakit didn't work (hanged on waiting for device) so I used easyroottool (which in basics is the same cause it uses Towelroot exploit). After that I unpacked all files from rootxperiakit to data\local\temp and tried to run install.bat (copying was essential cause .bat runs install_tool.sh) but had no luck so I used Flashtool and now I have System rw. Thanks anyway.
[Sony Xperia M2] kristver:
Thx to all for the given answers and guidelines!!!

I did the steps; you told me; Nlooo, and now everything seems to work

finally.........

Does anybody know when the phone is rooted, that also the "well known sd-card problem" is automaticly solved?

Or do we still need an app like sd card fixer from google play store?

(i mean the sd- card problem that came with kitkat, about the restrictions, for example no more possible to install apps from sd, etc.)
[Sony Xperia M2] ionescu.gabbriel:
Thanks for sharing this, it is great to see there are alternatives about locked bootloader.

I have a question if you do not mind. My phone is M2 Aqua D2403 that originally came with Android 4.4.2 KK, and now it is OTA updated to 4.4.4. This means i cannot root it base on your tutorial? I did not have J.B., so please tell me if i`ll try will it brick my phone? What do you mean by "you want to keep the locked bootloader you may be doomed"

Thanks.
[Sony Xperia M2] nlooooo:
I have M2 D2303 which came with 4.4.2 preinstalled, but no luck with 4.4.4 so far :) , and I used this to get root with success. I also had a few problems, but if you read my previous posts you'll see how I solwed it.
[Sony Xperia M2] ionescu.gabbriel:
Ok, thanks a lot, i`ll try that later, and i`ll post here the results.
[Sony Xperia M2] Dzepar:
Read the tread (it only 5 pages) , i think there was one guy with m2 aqua that manage to root it. ;)

Good Luck

Dz

Xperia M2 D2303 on K.K. 4.4.4
[Sony Xperia M2] ionescu.gabbriel:
I red it all man, i was asking about the Android version, not just about the phone model and that was not mentioned anywere . Have you red my post with attention before giving such an answer? I only need help not to brick my phone, and that why i read this forum with attention and i`m asking all those questions.
[Sony Xperia M2] ionescu.gabbriel:
Can you help me a little please? I get stuck here: "From Flashtool download the FTF of your latest ROM (Menu "Devices/Check Updates" at least in OS X). Be sure to use the same ID"

When i try to download the latest firmware via Flashtool, nothing happens. I choose Devices/Check Updates, than in Device selector window i choose M2 Aqua, by double click, and in device update checker window that opens i choose tab D2403 and double click on 1288-9927 Vodafone Ro but nothing happens in here. A short message appears "Checking the latest updates", it lasts for a second and that`s it. How did you managed this part? Many Thanks.
[Sony Xperia M2] Dzepar:
Sorry if i sound rude!

But post #15, [MENTION=5399155]i_1[/MENTION] have M2 Aqua and have root it, so try contacting him.

You can download ftf with XperiFirm if Flashtool doesn't work.

Good Luck

Dz
[Sony Xperia M2] ionescu.gabbriel:
Finally I made it, i`ll explaint tomorrow, i`m to tired right now, thanks to everybody. I have a stupid question now. If i do a factory reset will i loose my root? Done it using easyroot, it was the only way that worked.
[Sony Xperia M2] Miche1asso:
You may need to reinstall the SuperSU app. The rooting itself will be in /system which isn't touched by the factory reset. Also SuperSU has an option to move the SuperSU update in /system. I suggest to do it.

I don't understand this. Where did you get stuck? If it was "waiting on device" after flashing the first kernel you must be sure that you unchecked the wipe options. Otherwise I dunno.

PS: I don't have much time to follow, but I see the community is doing a good job helping each other anyway. It isn't rocket science after all. :)
[Sony Xperia M2] m2habert:
Hi there, also had problem with your method on my 2403.

All went smooth (very thorough Tutorial, thanks Miche1asso!) but got only root, no R/W ( I guess Sony RIC wasn't disabled )

As nlooooo contributed, I followed by considering in repeating the steps using the easyroottool script.

Reading its thread in preparation, noticed the requirement :

set "Unknown sources enabled

Settings => Security"

Thought that maybe that could be a factor in the "adb install_tool.sh". So I put the easyroottool aside, enabled "Unknown sources" and repeated the whole original process again and IT WORKED.

(As an every-4-years tinkerer of this stuff who has to relearn everything again when gets a new phone, I kind of remember having to do such "enabling" in my previous rootings...)

It seems all is fine. (¿What is the basic r/w test, anyway? Mount the root dir with Root Explorer app?). Thanks again to all, and please update original post (in case I'm right, of course).
[Sony Xperia M2] Danchiman:
just rooted d2305 with this method, the only hting is that i had to connect the phone turned off ( when its on bootloop) and enter the rootkitxperia folder and click the isntall.bat manually, but everything else worked perfectly. thanks for this!
[Sony Xperia M2] Miche1asso:
Oh, all right, thanks. That must be it, then. I missed it because that's one of the first things I always enable. :D

I'll update the guide, then.
[Sony Xperia M2] nlooooo:
I had it enabled and still got stuck at 'Waiting for device' with rootkit, so I used easyroottool. However, my D2303 came with KK preinstalled, so maybe that was the problem.
[Sony Xperia M2] Vtrendzzy:
Hey all. I read all the posts and haven't found what i need. So I'm asking here. My device is D2302 4.4.4 locked bootloader. I installed latest flashtool version. Installed all the drivers given in it. Sony pc companion too. But fastboot and flashmode drivers aren't installed yet. Searched almost everywhere but most of them tell me to prefer pc compnion. I tried removing device and then adding it again but still no luck.

A bit hope i got when i switched off my phone and tried connecting via fastboot then flashtool installed S1 boot drivers. Device is connected in fastboot mode. Same with flashmode. But when i connect my phone normally with usb debugging on, flashtool says i need to install drivers. Also I'm using Windows 8.1 but driver signature verification is off so I'm good with that option.

My previous device was Xperia U. So i actually know how to use flashtool. All I'm stuck at is drivers.

Can anybody please help me. I just got this device and without root i feel like a muggle. Please!
[Sony Xperia M2] nlooooo:
Why don't you try with .inf file from unlock bootloader tutorial given by Sony?
[Sony Xperia M2] m2habert:
NOpe, that's not it. My D2403 also came pre-installed with KK and it worked, albeit a bit clumsily...
[Sony Xperia M2] Vtrendzzy:
Will that give me proper drivers? I don't want to unlock bootloader btw.

Hey when i connect in flashmode the green led blinks and flashtool says device connected in flashmode. Should i try flashing kk kernel with cwm?
[Sony Xperia M2] Dzepar:
Did you try to instal Flashtool/drivers? You know that drives signature verification is re-enabled on every boot? So, disable driver signature verification, instal flash and fastboot drivers from Flashtool, reboot and you should be good.

Good Luck.

Xperia M2 D2303 on K.K. 4.4.4
[Sony Xperia M2] Vtrendzzy:
I've done what you've said. I've been using flashtools for a year now. My Xperia u is getting detected every time btw. So it's just an issue of my phone's drivers. That's what i need. And pc companion didn't install drivers.
[Sony Xperia M2] Dzepar:
Try with This

You have enable Developer options and Unknown sorces, right??? Also go to Developer options press "Revoke USB debugging authorizations" connect your phone to PC, start Flashtool, when it prompts on your phone for authorization press OK. You can check in Flashtool if you have installed drivers properly: Go to Devices->Check Drivers you'll get list of instaled drivers.

Good Luck.
[Sony Xperia M2] Vtrendzzy:
I did what you said buddy still......

Edit: Drivers installed correctly.

One doubt before rooting. Can i use the jelly bean kernel given in the op? It's for D2303 and my device is D2302.

If not then can anyone please provide me the kernel of D2302 jelly bean? As downloading original ftf won't be pretty easy for me.
[Sony Xperia M2] Miche1asso:
That is my very same situation. D2303 with KK pre-installed. Is it me or you guys are getting stuck at the step where I say to interrupt (CTRL-C) rootkitXperia? :)

You may give it a try with the attached kernel. Either the phone refuses it (it happened with the Xperia Z3 when trying to flash the Z2 kernel) or if installed you may just get a blank screen with no boot at all, thus no adb. So you should just restore your original kernel. Still.. do it at your own risk.

Instead, since a JB ROM is available, I strongly suggest to download and use the one for your phone. Oh, it doesn't have to be a JB kernel, a KK 4.4.2 kernel (known as vulnerable to Towelroot. Check it yourself which one if any) would do the job.
[Sony Xperia M2] nlooooo:
Nope, stucked at waiting for device, I never managed to get to that point (interrupt (CTRL-C) rootkitXperia), so that's why I used easyroottool.
[Sony Xperia M2] Vtrendzzy:
Fully rooted. Everything works fine. If anyone new here has problems installing busybox or anything else regarding root then you can ask me because i did a lot of silly mistakes. ?

Although i need twrp or cwm for locked bootloader. Please help me with this. ?
[Sony Xperia M2] Dzepar:
Try this cwm http://xdaforums.com/showthread.php?t=3011821

[D2303][LockedBootloader]ClockworkMod 6.0.4.6

Xperia M2 D2303 on K.K. 4.4.4
[Sony Xperia M2] Miche1asso:
I don't get it. Stucked at "waiting for device" means that adb isn't connecting to the phone. But easyroot uses adb as well. Thus it shouldn't connect either. But I see in the scripts that easyroot has a more elaborated way to deal with adb devices. It first checks if more than one device is connected, builds a list of them to choose from and so on. Still that shouldn't change much. The only thing is that it uses its own adb binaries. Unless the ones installed in Windows (I suppose) aren't updated there shouldn't be much difference.
[Sony Xperia M2] nlooooo:
I noticed while I was doing root that screen turns on/off for a few seconds all the time so I tried 'adb devices' just to see if there is a connection, sometimes it gave me nothing and sometimes it gave me 'device xyz offline'. I also tried killing abd via Windows Task manager cause a few times I got 'adb didn't ACK' or something like that. I noticed that Flashtool was giving info 'Device connected with USB debugging off' while I was definitely sure that debugging was turned on, and even tried to flash KK kernel again and revoking authorization again.

However, whatever I did I couldn't make rootxperiakit to pass 'Waiting for device' part.

I update Android platform tools on my PC from time to time so I have the latest revision.

The main problem for me was that I couldn't run install_tool.bat cause I always got 'Permission denied', so I remembered the way to solve RIC problem from this tutorial http://xdaforums.com/showthread.php?t=2791290 with forcing Towelroot via Flashtool. Also the problem was that after updating of SuperSU and it's binaries I also got RIC problem again.