yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] mbc07:
Some apps may use loop devices too and if this is the case, the image can't be mounted. Since I didn't add some sanity checks (yet) the result is flashing the unmodified system.ext4 which won't have the su binaries. If everything goes well, the upcoming version 1.2 should address that...
[Sony Xperia M] ebram96:
look I made a backup file using pc companion ... downdraded .. upgraded ... can I install the backup ??? will that affect the root ??
[Sony Xperia M] Kir3:
OK, I flashed Camera mod and screw things up. So I need to restore the /system partition using beginning from root.bat step in this tutorial (to be rooted). But does it replace the whole partition or just overwrite the files?

Edit: It's not overwriting, it's restoring to stock (removes everything extra)
[Sony Xperia M] ebram96:
thanks bro ..... eventually it worked in the second time :) .... testing games and etc .. thanks
[Sony Xperia M] Saqib Nazm:
Thread moved to General Section,as it belongs there. Thanks
[Sony Xperia M] andre marc93:
Hard to root

I AM VERY DIFFICULTY FOR ROOT BECAUSE I DO NOT EVER BEFORE, HELP ME TO ROOT SONY XPERIA ANDROID 4.3 M MC2005 SYSTEM, STEP BY STEP TUTORIAL OR VIDEO RECORDING FORM HOW,THKS:good:
[Sony Xperia M] ArtBcn:
C'mon please, waste a little of your time and google it yourself, don't ask to others to waste their time to explain to you.

Be proactive. :p
[Sony Xperia M] paper13579:
Don't worry bout it, im working on it as we speak :)
[Sony Xperia M] pedroj666:
I have a M c1905 and did exactly what is indicated by "mbc07" and it really worked. Finally got root on 4.3 and now I can finally use Link2SD.

Thank you.

But I want to ask you something, after doing this method to root my M, it started getting hot in the level of rear camera and front too! this is normal? he starts to get hot at the top of the monitor?

Power by google translator!
[Sony Xperia M] gamer649:
I have noticed this a few times too, once I stop using the phone for 10-15 mins it cools back down. I do not know the cause of the problem, nor do I know how to fix it.
[Sony Xperia M] pedroj666:
It's a small price to pay for having the root on 4.3 XD!

It does not matter because I already have the M with the root of "mbc07" for over 2 weeks and it still works 100%.

The "problem" heating my M with the passage of time it has happened less every day!
[Sony Xperia M] mohamad khubayb:
thank you man

I am grateful to you very much
[Sony Xperia M] paper13579:
No problem, it took me like an hour to write up. Sad life:p
[Sony Xperia M] Kir3:
Ok, we got root on 4.3, Yay! :good: :D

But anyway to get recovery for locked bootloader? I think it's possible with hacking the charger animation or something, at least I had recovery like that on my old phone (LwW)
[Sony Xperia M] paper13579:
No there is no way of getting a recovery on lb. And there is no one working on it as far as i know
[Sony Xperia M] Kir3:
I think is possible, but it will not be actual recovery. It will be in /system but will have many options like clean up dalvik-cache, flash zips, nandroid backup, etc...

If you format /system the recovery will be gone but still running (until you reboot).

We worked for long time like that on this forum

I request to devs to try and make CWM for Locked Bootloader! :)
[Sony Xperia M] gamer649:
Once I finish college and I have the time I MIGHT* look into trying to develop it.

* Might means there is a possibility I will and a possibility I won't. Do NOT say I am working on it unless I explicitly say I am.

Sent From My C1905
[Sony Xperia M] pedroj666:
This is not a traditional recovery but it works and allows us to install the files. Zip as it is in recovery. I already used and it works well.

http://xdaforums.com/showthread.php?t=2250555
[Sony Xperia M] paper13579:
Ya, flash gordon is pretty useful, yet it is quite limited. You can only flash some files that dont make major changes and do not replace important system apks. And it also cannot flash roms
[Sony Xperia M] alibabon567:
thank bro! successful xperia m c1905
[Sony Xperia M] Kir3:
I use Flash Gordon, but I as [MENTION=5482320]paper13579[/MENTION] said, it's limited, you can't make a nandroid backup.
[Sony Xperia M] rizla2:
Apparently, you can flash kernels with it? Has anyone tried that? I really wouldn't like to do such things without backups.
[Sony Xperia M] paper13579:
If we can, that would be amazing. But considering the amount of **** the xperia m is filled with, we probably won't be able to do it.
[Sony Xperia M] rizla2:
Eh, it will take me a while to get used to life with locked bootloader :D
[Sony Xperia M] mbc07:
Flashing different kernel may be possible but as far as I know, with locked bootloader the phone refuses to boot any kernel different from stock ones that come with Sony updates (some kind of signature check, maybe?). Before developing this script I unlocked my bootloader to flash CWM and install SuperSU, then I relocked my bootloader with the TA backup I took earlier. After relocking, my phone didn't turn on until I flashed the stock kernel again =/
[Sony Xperia M] slender 1:
After rooting my phone (sucsesfuly) I found system.ext4 on my sdcard, can I delete it, or it must be on sd please someone respond,(I am low on space and that's why am I asking,
[Sony Xperia M] gamer649:
Feel free to delete it. The file is only needed during the root procedure, once it is finished it is not needed again (unless you need to re-root but the script will copy it for you again).
[Sony Xperia M] itsnie:
Me!

I flash cwm (xperia m has not have kernel partition, so flash cwm same as flashing kernel :D ) via flashable zip with flash gordon!

Sory, my engelish is really's bad! :3
[Sony Xperia M] paper13579:
Did it work?
[Sony Xperia M] DeYo27:
Which is much better Unlocking the Boot loader or the Locked Boot loader that is complicated process of rooting. I'm new user of android. Hope you help me!﻿
[Sony Xperia M] Shazam_strikes:
Locked bootloader rooting is better and you won't even void your warranty
[Sony Xperia M] DeYo27:
Okay but the problem is i already update my phone to 4.3, and im going to downgrade it, If i already downgrade my phone to 4.1, I will root it again using by Framaroot and Busybox right?? Then the nxt method should i try is on the following listed in here.
[Sony Xperia M] Shazam_strikes:
Yes bro you have to downgrade first and then root it and than follow the procedure given by mbc07 in this thread to flash 4.3 JB with root.
[Sony Xperia M] gamer649:
It all depends on whether you can unlock the bootloader or not and if you can unlock the bootloader whether you care about warranty or not. For a newcomer to android however I would say this method, you run next to no risk of bricking your phone and you can easily restore your phone if needed and have the warranty fully intact.

Personally, I have always found that unlocking the bootloader is a much simpler way to root but I have a perma-locked bootloader on the M so I have to use this method.
[Sony Xperia M] DeYo27:
Thanks man, A little confuse here. What is the difference of NickiRoot_1.0.1 to NickiRoot_1.1? Should i use them both for rebooting and rooting my phone?
[Sony Xperia M] gamer649:
Use version 1.1. Version 1 sometimes didn't install busybox after pushing it to the phone, 1.1 fixes that. Nicki is the codename to our device by the way.
[Sony Xperia M] paper13579:
Bro, if you're stuck on anything. Go to page 9 of this thread. I posted a kickass tutorial for newcomers or noobs to the android system. It shows you a step by step tutorial on how to root on a locked bootloader for 4.3. Hope it helps.
[Sony Xperia M] DeYo27:
Is that tutorial is same as Xperia (C1905) M Single?
[Sony Xperia M] gamer649:
It is almost the same. Instead of downloading the 4.2.2 .ftf you will need to download the 4.1 .ftf for the single SIM. That can be found in the android development section. When you have the 4.1 .ftf just follow the tutorial by paper13579 and at any time they are talking about using the 4.2.2 .ftf file, use the 4.1 .ftf file instead.
[Sony Xperia M] Yeezus9:
Hello,

My Xperia M do not freeze after the script root.bat, what does it mean please ? Should I still flash the 4.3 ?
[Sony Xperia M] Shazam_strikes:
Did you connected in mtp mode? If yes than keep going and remove USB cable after root.bat and pull/reinsert battery but don't switch on the mobile and carry on with the procedure
[Sony Xperia M] gamer649:
Please can you upload a picture of your command prompt window? We are able to check for errors then.

Off the top of my head though this is what I can think of;

1) You didn't allow ADB and ADB shell access on your phone and/or your computer is not an authorised device(that is only on android 4.3, my bad). This has to be done to allow the script to work.

2) An error happened during the copying of the system.ext4 file, therefore halting the script. When the system.ext4 has fully copied over without errors ADB will send a sleep command to your phone to freeze it. Again, if you haven't allowed ADB root access then it cannot do this.

Please upload a screenshot of your command prompt, I can assist in fixing the error then.
[Sony Xperia M] Yeezus9:
Indeed, the problem came from ADB which did not had the access to my phone. (And my phone was rooted with Framaroot and not Cydia Impactor!)

So I started again the whole process properly and everything works normally now.

Thanks for this great method and thanks for the help gamer649 ! :D
[Sony Xperia M] itsnie:
Yes, work ..

Just need ubl and root :D
[Sony Xperia M] mbc07:
Just to make clear, version 1.0.1 has a bug in the script, so busybox is never installed, and in some cases this will give you partial root until you manually install busybox. In version 1.1 there's a sanity check to be 100% sure that busybox was installed. In fact, anyone that didn't root yet should avoid 1.0.1 at any cost... I left it in the post only for archive purposes and for people that are still stuck in the unsupported Windows XP...
[Sony Xperia M] DeYo27:
Im almost done rooting my phone but this step dunno what to do. Help!

Step 67. From the list where it says exclude at the top, tick the box of system.sin
[Sony Xperia M] Shazam_strikes:
Bro it means exclude the system.sin file coz if u didn't exclude it you will lose root, the exclude option is on the right side of flashtool just below the wipe data option... In the exclude option tick on the system.sin file and flash it
[Sony Xperia M] DeYo27:
Thanks to all for helping me!! My phone is already root now :cool:
[Sony Xperia M] paper13579:
Yay that's my list
[Sony Xperia M] Rassik:
Xperia M 4.3 Rooting

alternate of nicki root please provide
[Sony Xperia M] mbc07:
At the moment there's no alternative for locked bootloader. Upgrade your OS or use the buggy 1.0.1 version...
[Sony Xperia M] gamer649:
There are no alternatives for a locked bootloader. Are you using v1 or v1.1? ONLY v1 of NickiRoot supports Windows XP.
[Sony Xperia M] Rassik:
Xperia M 4.3 Rooting

I used nicki root 1.1
[Sony Xperia M] gamer649:
Try again using v1, v1.1 and up do not support Windows XP whereas v1 does.

I've even got the link for you so you don't have to go back to the first post: http://xdaforums.com/attachment.php?attachmentid=2678791&d=1397147100
[Sony Xperia M] bahrawy500:
now should I skip this step ?

My XMD was rooted previously with Vroot on 4.2.2 it had full root access

then i flashed the 4.3 FTF ... now should I skip this step ?

---------- Post added at 04:22 PM ---------- Previous post was at 04:20 PM ----------

BTW does it work on Xperia M daul c 2005 ?
[Sony Xperia M] mbc07:
When you flashed 4.3 you lost root access. You must downgrade to 4.2.2 and root it, then you use this script... It works in Xperia M single (C1904/C1905) and Xperia M dual (C2004/C2005)...
[Sony Xperia M] bahrawy500:
thanks for help

where can i find the original 4.2.2 FTF ?

one last question please .. locked bootloader means the warranty still available right ?

kind regards
[Sony Xperia M] mbc07:
Yes, warranty still intact. If that bothers you, your device can be unrooted through SuperSU if you ever need to send your phone to Service Center.

You can use this FTF. After flashing, root it (I suggest Cydia Impactor) and run this script again...
[Sony Xperia M] Rassik:
Xperia M 4.3 Rooting

Thanks Bro...i tried nick root 1.0 on my xp sp3 but it didnt work so then i upgraded my OS as advised by you and used nicki root v1.1 and it worked now my xperia m c1904 is rooted.This is my first android phone and only 15 days old that is why i was trying to do it with a locked bootloader bcoz i was not willing to lose my phone warranty so early.Thanks Again keep the good work up.
[Sony Xperia M] the gladiator:
I have now the time to go through the process but...I noticed that there could be problems using Windows XP:

I've read the root.bat for version 1.1 and 1.0.1 and, with the exception of the "choice" command, they look identical to me. Questions:

1) is the bug caused by the use of the external command choice32.exe/choice64.exe ?

2) if so can I use 1.1 if I jump the question "internal storage/external SD" (I already know I'll store system.ext4 in the external SD) and if I slightly modify accordingly the .bat file? will it work ?

3) I'm reading that another possibility would be to manually install busybox. At which stage of the process ?
[Sony Xperia M] O491:
Waiting for device

Hi all you developers :)

I am currently on 4.1.2 with full root access on my C1905. Best starting position to go on 4.3 with root. So I followed every step of the very good instruction.

The problem is, that if I want to start root.bat it loads the adb drivers and waits for the device. My phone is connected via MTP wit USB debugging enabled. But my device is not recognized by the script.

If I switch from MTP mode to mass storage, the script works and asks me where the files should be copied. I did not go further on because in the instructions it says explicitly that it has to be MTP-mode.

Can anyone of you please give me instructions what to do? Can I go on or what is wrong with my phone? :)

Thanks in advance!!!
[Sony Xperia M] mbc07:
Make sure you're not running any Android emulator (e.g. GenyMotion, BlueStacks). If even then your phone is detected only in Mass Storage mode, you can continue, but it'll only be able to access internal memory (if you try to push to SD Card the script will end with error because SD Card isn't accessible in Mass Storage mode)...
[Sony Xperia M] O491:
Something wrong

Seems like something is completely wrong...

If I have enabled MTP Mode I can access internal storage and external (real world) sd card in the windows explorer. If I have enabled mass stoarge mode I can only access my real world SD-Card in windows explorer. There is no emulation software running currently.

Update: In FlashTool it says the following if I am connected via MTP:

30/015/2014 11:15:21 - INFO - Device connected with USB debugging off

30/015/2014 11:15:21 - INFO - For 2011 devices line, be sure you are not in MTP mode

If I switch to MSC mode:

30/018/2014 11:18:27 - INFO - Device disconnected

30/018/2014 11:18:39 - INFO - Device connected with USB debugging on

30/018/2014 11:18:39 - INFO - Connected device : Sony Xperia M

30/018/2014 11:18:40 - INFO - Installed version of busybox : BusyBox v1.20.2-jb static (2012-11-25 17:47 +0100) multi-call binary.

30/018/2014 11:18:40 - INFO - Android version : 4.1.2 / kernel version : 3.4.0 / Build number : 15.1.C.2.8

30/018/2014 11:18:40 - INFO - Checking root access

30/018/2014 11:18:41 - INFO - Root Access Allowed

That seems to be ok. But the phone tells me when I switch to msc mode that only the SD Card (SD1) can be accessed on pc. I tried to run the root.bat and let the files copy over to my SD but after a while the script stopped and told me to check if there is enough free space. There is enough. I can't figure out, whats wrong here. If I am in MTP mode, there are some windows drivers loaded. Is there a problem?
[Sony Xperia M] donedos:
for unlocked bootloader

Hi, i'm having trouble rooting my C2005 dual sim using Unlocked bootloader. I want to try this method.

My question is, do i have to relock my bootloader to make it worked?

I tried this one with unlocked bootloader and i stocked and looped at SONY Logo..

need your feedback guys.. Thanks.
[Sony Xperia M] Shazam_strikes:
Bro which android version are you on? You have to be on 4.2.2(fully rooted) to use this method
[Sony Xperia M] donedos:
I'm 4.2.2 fully rooted...

I'm having this error:

unzip: can't open 'xbin/busybox': Input/output error

is the above error normal?
[Sony Xperia M] Shazam_strikes:
No that's not normal because I didn't faced that error while using this method, and you have to be on locked bootloader to use this method
[Sony Xperia M] donedos:
maybe i'll try the unlocked bootloader way of rooting.

anyone here has a link for 4.3 image of C2005? i tried this http://xdaforums.com/showthread.php?t=2494793 but i stocked in bootanimation after unlocking and flashing the 4.3 image.. thanks for the reply.. :)
[Sony Xperia M] Shazam_strikes:
Here is the link for 4.3 c2005 - http://xdaforums.com/showthread.php?t=2702108

And bro instead of saying hit the thanks button ;)
[Sony Xperia M] mbc07:
[MENTION=5842562]O491[/MENTION], something is wrong in your computer, when you are in MTP mode the adb driver isn't loaded (neither FlashTool detect it). When I said only internal memory would be accessible in mass storage mode I was talking phone-side, in computer you can access it, but after pushing the files, the script will run in your phone and it won't be able to read SD Card, throwing the error you faced...

[MENTION=4727366]donedos[/MENTION], this method should work on unlocked bootloader too. Since your device bootlooped in Sony logo, you may be running a kernel different from stock kernel from 4.3. You could try flashing 4.3 kernel through fastboot to see if helps after running the script... About the io error, make sure you have busybox installed or that other errors didn't appear in the log. It's common to get this if the image couldn't be mounted...

[MENTION=5744408]Shazam_strikes[/MENTION], please stop stating things you're not sure. I wrote this script from scratch and I can assure it works in unlocked bootloader because I tested it (and there's nothing in the code that may prevent it working in unlocked bootloaders). And the error donedos got is normal, it occur if busybox doesn't have the right permissions or if the image couldn't be mounted...
[Sony Xperia M] Shazam_strikes:
Sorry bro, and thanks for telling O:)
[Sony Xperia M] paper13579:
Maybe it's just me but, have used the nicki root programme by [MENTION=5604590]mbc07[/MENTION] at least 8 times now. All three versions:1.0,1.0.1 and 1.1, the only one that has ever worked and not left me in bootloop is 1.0.1. I don't know why you guys think it's buggy. And don't tell me that i mess up with the other versions. I use the exact same technique to root for all three versions, yet the only one that works is 1.0.1
[Sony Xperia M] O491:
Not able to flash

[MENTION=5604590]mbc07[/MENTION]

Hey I think I have a problem right now... I managed to get it working and the script has done its job. I finished it with pulling out the USB cable and pulling off / reinserting the battery. Then I plugged it again via USB to my pc and opened Flashtool. But I'm not able to flash...because device is not recognized. Flashtool says:

30/023/2014 20:23:43 - INFO - <- This level is successfully initialized

30/023/2014 20:23:43 - INFO - Flashtool Version 0.9.14.0 built on 12-02-2014 22:45:00

30/023/2014 20:23:50 - INFO - Device connected with USB debugging off

30/023/2014 20:23:50 - INFO - For 2011 devices line, be sure you are not in MTP mode

Man I don't know what to do :(. Is my phone now bricked? I haven't turned it on yet.

-------------------Edit-------------

Okay, I chose the firmware to flash and it says I should

Unplug the device

Power off device

Press back button (how? back is a software key...:( )

Plug the USB cable

Could you pleas help me out of this?
[Sony Xperia M] Kir3:
Those lines says that the phone is connected whitout error. Can you try posting a full log of FlashTool

Edit Reply: Press the volume down button, that's for old phones with physical back key, it need to be updated :)
[Sony Xperia M] paper13579:
You are supposed to press flash and then connect your phone when it asks you to. It looks like you connected the phone in flashmode and then pressed flash. Correct me if i am wrong
[Sony Xperia M] mbc07:
With the phone disconnected and turned off, open FlashTool, click in the lightning icon, choose flash mode. Select 4.3 FTF and tick "exclude system", then start. When FlashTool ask you to connect your phone, hold volume down and plug the USB cable. FlashTool will start flashing. After that, disconnect the cable and start your phone. Now you should be in 4.3 with root
[Sony Xperia M] O491:
Amazing

Okay guys I know I should not do that, but you helped me such a lot! And now, I'm running on my Xperia M with 4.3 Full root because of you :)

Damn, thanks a lot guys and keep up your amazing work!!!! :good::good::good::good::good::good::good:
[MENTION=5604590]mbc07[/MENTION] [MENTION=5482320]paper13579[/MENTION]
[MENTION=4778932]Kir3[/MENTION] -> you helped me out dude :)
[Sony Xperia M] zeyad xu:
[MENTION=5604590]mbc07[/MENTION] add this tutorial

http://www.youtube.com/watch?v=3PkuXrYnm0g
[Sony Xperia M] paper13579:
Not very well explained, but it will do for the moment
[Sony Xperia M] zeyad xu:
i was in a hurry and my dad was yelling at me so i haven't explained as i should but it is very clear if you follow this thread and my video together
[Sony Xperia M] ebram96:
can i format my phone ?? will that remove root ?
[Sony Xperia M] DeYo27:
After rooting my Xperia M (C1950) 4.3. My PC didnt detect my Xperia M by using USB cable? What will i do?
[Sony Xperia M] mbc07:
Thanks for your efforts, but I'll become a little obsolete in 1.2: you won't need to pull off your battery anymore :victory:

Anyway, I just linked it in the OP...

If you mean Factory Reset from Settings app or Reset Customization from Service Test (*#*#7378423#*#* in dialer) then yes, it'll keep root. However, updating/repairing your phone through PC Companion/SUS or Resetting Customization through FlashTool will remove su binaries, losing root access...

Check your drivers, this script hasn't anything to do with this...

And a general update, 1.2 is in the works but I'm busy at the moment, but I'll try to get it up as soon as possible...
[Sony Xperia M] gotcha82:
Wery well explained but one totaly noob question is:Can J use same ftf's for c1905 or should j google it but which one to choose. Thanks any way.
[Sony Xperia M] gamer649:
You should use the single SIM 4.1.2 ftf for the original downgrade and then the single SIM 4.3 ftf for the script. If you don't have either of them they can both be found in the Xperia M Android Development sub-forum.
[Sony Xperia M] DeYo27:
Where will i check my driver? And how to fix this issue?
[Sony Xperia M] the gladiator:
I upgraded to 4.3 and rooted, very, very easily (thanks again, mbc07). As I have XP I used the version 1.1 but I slightly modified the bat file provided by mbc07 and I attach it for whom it may concern. The only difference with the standard procedure is that THE FILE system.ext4 MUST ALREADY BE LOADED IN THE SD CARD
[Sony Xperia M] spknair:
Thanks a Million ..........

very well described guide by you.

Even-though I am a newbie to Android, I could easily upgrade my phone to 4.3 with root access :good::good::good::good:

keep it up

wish to +10000000 add to you but....

My handset is XMD (C2005)

Now I have to look for Link2SD or something like that :p

Will you please give me a link for that ???

old method will still works with 4.3 ?

Will 4.3 detect ext second partition???

I had used FAT & I couldn't move apps data due to that:crying:

please give me links, If existing...

Thanks again...

.;saNThu:.