yashsingh1/xdaforums huggingface dataset:
[Xperia Z General] R2du-soft:
thanks for you're time

i have a problem:

1-when i type in terminal emulator "Su" then show me:

u0_a233@C6603:/ $ su
/system/bin/sh: su: not found

2-when i type in terminal emulator "sh /sdcard/mrw/root.sh" then show me:

127|u0_a233@C6603:/ $ sh /sdcard/mrw/root.sh
-----------------------------------
-------- Made By : Mr.W0lf --------
-- Thanks [MENTION=631273]Chainfire[/MENTION] for SuperSU --
-----------------------------------
mount: Permission denied
java.lang.SecurityException: Permission Denial: killBackgroundProcesses() from pid=27394, uid=10233 requires android.permission.KILL_BACKGROUND_PROCESSES
at android.os.Parcel.readException(Parcel.java:1547) at android.os.Parcel.readException(Parcel.java:1499) at android.app.ActivityManagerProxy.killBackgroundProcesses(ActivityManagerNative.java:4163)
at com.android.commands.am.Am.runKill(Am.java:858)
at com.android.commands.am.Am.onRun(Am.java:312)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:99)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:249)

is that a right way?

i do the fallowing steps:

1-install King Root

2-install terminal emulator

3-type commands to terminal emulator

4-open King Root and wait for a while,click to try to root and waiting process complete.

after doing this steps and restarting the phone...

when i check it,that said to me "you're phone has been rooted" but i can't find SuperSu app in my device...and my phone restarted when i open an app!!!
[Xperia Z General] kingvortex:
Root with Kingroot first, then run the script.
[Xperia Z General] Mr.W0lf:
/system/bin/sh: su: not found

You don't have root access
[Xperia Z General] R2du-soft:
my phone is: Sony Xperia Z C6603

until now,Did not find no way for the root this phone?

a friend say to me this way work for he...

http://xdaforums.com/xperia-z/general/how-xperia-z-c6603-root-android-5-0-2-t3122991

but not work for me?!

thanks
[Xperia Z General] edwuard:
First of all install Kingroot 4.1 that is in my download, root u Xperia after that unzip the zip of Mr wolf is a folder name mrw and put it in the internal storage of Xperia, then start terminal emulator with typing,, su,, and other sequence i root almost 50 Xperia t2 Ultra, Z, z1 thanks for the creator of zip Mr wolf but i work enough m2 to make things happen
[Xperia Z General] kingvortex:
Follow the instructions written in the first post.

Root using the KingRoot apk attached to the first post, then run the script.
[Xperia Z General] edwuard:
Very easy read install Kingroot

4.1 root the device, unzip replace Kingroot with super su on internal storage is a folder name mrw then open terminal emulator and start typing all and wait I deed this and all 50 Xperia devices work great
[Xperia Z General] stukka2006:
thxs to all that created the thread and to mr wolf for the process ...

in my case it tooks a while but now everything is working fine...
[Xperia Z General] babarnazmi:
Not working on Xperia C6606 / C6616 (Android 5.0.2)

1) Rooted with KingRoot 4.1.

2) moved mrw folder to phone /sdcard , in terminal when I typed "su" , KingRoot show confirm Allow Root access, etc. I did.

3) As soon as I type "sh /sdcard/mrw/root.sh" , device reboots, tried so many times, but no luck. (It looks Kingroot don't want to uninstall?)

4) Also tried Ez Explorer's [Root Explorer], as soon as I try to gave "w/r" permissions to system folder, device reboots.

Any clue?
[Xperia Z General] edwuard:
Bro something u did wrong because if u look all people have root the phone me and other friends i root 50 xperia of my friends so try again and tell me what is because i think u don't type the sequence with space just this sh /sdcard/mrw/root.sh and it works
[Xperia Z General] kingvortex:
This is probably caused by RIC, which is Sony's security system that's supposed to stop any modifications to your system. RIC will reboot your device when trying to mount /system as r/w. The first thing the script does is mount /system as r/w so it makes sense. Perhaps C6606/C6616 roms have a stricter version of RIC than C6602/3. I'm no expert on it, but RIC has always been the cause of reboots when mounting /system as r/w.
[Xperia Z General] HD2FORNICK:
Bro your instructions in this post combined with your images in the first post work awesome. I now have root.

FYI, those two links in your first post are a bit misleading. Maybe it's me LOL!

Awesome work!! :good::good:
[Xperia Z General] hansip87:
It works finally! But you have to take care when executing command on terminal emulator. You need to access it from '/' location.

root@C6802:/ # sh /sdcard/mrw/root.sh

If you are executing from other places or sub directory:

root@C6802:/sdcard/mrw # sh root.sh

It WILL NOT work.

If you found that SuperSU keep Force Closing, uninstall it first and repeat the process again without rebooting.

PS: To Dev [MENTION=5370689]edwuard[/MENTION], please fix the folder directory code to minimize this kind of issue. But nonetheless it works for me :) Thanks!
[Xperia Z General] babarnazmi:
I followed the instructions as it is, I am a Linux guy :) must be RIC Security of Sony as mentioned by Sir [MENTION=2452820]kingvortex[/MENTION]

---------- Post added at 07:54 AM ---------- Previous post was at 07:52 AM ----------

Sir thanks for your inputs, very informative, but any clue how to do it then?

KingRoot is rooting and getting access of system, why can't our scripts? any work-around?

Regards,
[Xperia Z General] kingvortex:
I'm not an expert on security measures, but I believe RIC is a kernel module and isn't easy to disable manually. In previous versions of Android for our device, XZDualRecovery disables RIC when installed, but XZDR isn't currently functional for our device (yet).

I found this script that says it will disable RIC. It requires a Windows PC. However, this is for 4.4.4, so might not work for you (it goes without saying, but use at your own risk).
[Xperia Z General] edwuard:
For all the people who have problem first type su, alow root then type on terminal this sh /sdcard/mrw/root.sh today root 4 xperia-z and 2 xperia-z 1 without any problems just download Kingroot from the post
[Xperia Z General] R2du-soft:
i found my problem....but i have another problem...

1-i root phone with kingroot

2-extract mrw to internal storage

3-now install Terminal emulator

4-run commands

but Suddenly phone reboot!

Why is it?
[Xperia Z General] edwuard:
Don't know not happen to me never and for all the people who root the phone, u have to be careful because this problem is with u phone bro. Check again and tell what happened

..
[Xperia Z General] R2du-soft:
i tested again and again like ago last time (Reboot My Phone)... :(
[Xperia Z General] kingvortex:
It isn't any mistake you're making with the commands. I'm not sure why he keeps saying that.

Reboots are almost definitely caused by the ric security service on your device which will force your device to reboot when /system get mounted as r/w. I don't know how to disable ric on Lollipop with a locked bootloader and can't try because my bootloader is unlocked, which does disable ric.

Try to root with KingRoot, then reboot your device before running the script.

Also, you can make sure you have the latest KingRoot 4.1 from its thread on XDA here. It says the latest version will disable ric, but I haven't tried it.
[Xperia Z General] R2du-soft:
thanks kingvortex

I testing was two days ago for root...but after every time test,i reinstall lollipop with FlashTool and test again...

i useIed KingRoot 4.1 for root,some times kingroot can't root my device and I would try again...After testing several times {a question:for use from kingroot i must connect device to online internet? } (maybe psiphone not work in earlier times) after kingroot can work and install king user in my device i reboot phone,and after when my device starting think i see a massage analyze or loading apps and again restart phone. and after loading phone if i open Some of apps phone reboot! So I do not open any app and just extract mrw and install terminal emulator and open it and run commands, i type: su and terminal emulator goto next line without any massage,and i type again sh /sdvcard/mrw/root.sh and i see two [success] in two line:

[success]

[success]

and reboot phone!

after loading device i see apps and see KingRoot 4.1 deleted but KingUser There is!! and when i open KingUser say me Fix Root...and i can't see SuperUs in apps!!!!

Do you have test this method in the Xperia c6603?and worked?!

thanks
[Xperia Z General] theduke7:
well i have c6603 , and here's how it worked for me, i had some problems at first, so...

1-go to settings>apps> , and make sure that you don't have Kingroot installed, if it's uninstall it, and uninstall Kinguser and if there's SuperSU (maybe it's there but the icon isn't) also uninstall it (uninstall all the root apps) , you can keep the terminal app installed

2- reboot your device

3- install Kingroot 4.1 from the OP (important) , reboot the device before opening Kingroot and rooting the device.

4- open KingRoot after reboot and root the device, it may take several tries...when it reports it's rooted keep KingRoot open (don't close it) and open King User and make sure it reports it has root access, then also keep it open,

5- while both are open, open the terminal app and execute the script as described in OP.

6- if all goes well SuperSU will Open and asks you to update, choose normal, when it's finished choose reboot.

this should work, or at least this is how it worked for me...

best of luck to you.
[Xperia Z General] SmallsXD:
I personally did not reboot after rooting with Kingroot as I also read of issues of it losing root after reboot. I just did it from beginning to end when I followed the instructions.

Ran Kingroot, yes it must be connected to the internet.

As soon as it said "root successful" i opened terminal and typed su then the sh command and it worked.

I used a 6603.
[Xperia Z General] indycar:
i think you forgot to mention you got UNLOCKED bootloader.
[Xperia Z General] edwuard:
No my bootloader is locked bro and yes i have z 6603 so if don't

work for you don't know what u did but if you really read all the people root the phones and t2 ultra and my wife z1, stop spam the post. The proof phone LB and model 6603, If you follow the instructions it's work if not don't know what happens.
[Xperia Z General] MasteRij0:
I spent 2 days trying to room my Z permanently using this method with no success.

After a couple boot loops, and a lot of superSU failed to update contents i have quit trying, and went for the temporary root with kingroot.

After a success temporary root with kingroot i was messing around with root via flashtools and now my Z is rooted permanent and using kinguser.
[Xperia Z General] pggdt:
Thanks for your post!

But I still hate Chinese apps and will wait for other ways to root L.
[Xperia Z General] R2du-soft:
thanks masters and friends

i can root sony xperia z c6603 with this way,thanks....:D
[Xperia Z General] indycar:
and now i managed to get my device into bootloop.

i wonder why was i even trying to do it
[Xperia Z General] stopworking:
anyone tried this method on xperia t2 ultra single sim???

btw i dont like kingsroot,, people said kingsroot cant be uninstalled even with flasing.. is that right?
[Xperia Z General] wurst_wasser:
I guess root will be gone after flashing another rom... I do not know whether it leave anything on your phone. What worries me, and please correct me if I am wrong, is that it sends your IMEI number to a Chinese server...
[Xperia Z General] stopworking:
damnnnn,, i like this dude, u make things easierrr thankkssss

my xperia t2 ultra single now is rooted
[Xperia Z General] jamminen:
So why Supersu?

I'm new to this and rooted my c6603 with kingroot, but something went wrong and the supersu wouldn't update no matter what. And now i can't try again from scratch because Kinguser won't uninstall, only disable, and trying to run kingroot just boots the device. Still i have root when checked. Why i would need supersu if i'm rooted anyway?
[Xperia Z General] theduke7:
uninstall SuperSU, and then try and run the script on the OP ... this will probably remove kigroot and kinguser. and it may work , if not uninstall SuperSU again

reboot when done, then after reboot install KingRoot 4.1 from OP ... i made a reply with the step few posts back.

---------- Post added at 10:43 PM ---------- Previous post was at 10:40 PM ----------

Glad it worked for you bro.. :D
[Xperia Z General] piurso:
Very nice work

Worked perfectly for me.

Thanks!:highfive:
[Xperia Z General] stopworking:
ehmmm i have problem after root.. i have some application like blackberry messenger and whatsapp, when i try to attach file picture, it just detect picture file from internal storage, picture from microsd are not detected. any solution for this problem?
[Xperia Z General] jamminen:
Tried this, running the script it started asking override this override that in terminal, well I pressed y enter, and after few times reboot. Also reboot when I open kinguser or KingRoot

And some other random reboots. I did not have SuperSU installed. My phone is very unstable and I don't even know if this rooting is gonna help a lot. Chrome was using a lot battery in background suddenly and greenify can't do squat without xposed, and for that I need whatever... Soon i have a brick in my hands but at least it won't drain battery any more.

Edit: I never missed root in kitkat because I'd have no problems, no bloatware hardly on this phone, every game and app running great, plenty of memory, battery was mainly used by screen and it was my fault, no root could help that.

Edit 2: after phone booted I had SuperSU again but KingRoot was gone. Still I have kinguser though. And root access, but SuperSU can't update.
[Xperia Z General] theduke7:
well m8, if your Rom is unstable, i would suggest a factory reset (erase everything) and flash a new LP then another factory reset after the flash completes (on flashtool wipe data and cache, and i recommend reset Customization) ... then you may want to try to root with this method 1st thing before installing anything else..

but that's the hard way, if your rom is stable and the only problem is the root, so you have 2 options

1- uninstall all root apps , restart your device and try this method one more time

2- this method is just a script to make the Original long method easier, so if you don't want to try this method anymore , again uninstall all Root apps, and then try the original method, it takes more time but it should work strait away you can find it in the following link

http://xdaforums.com/xperia-tablet-z/general/how-to-root-lollipop-xperia-tablet-z-t3115107

Edit, to make sure you uninstall Kingroot if its still in your system, you have to install it again (yes install 1st) then open after install, root the device (must) , then run the script... the script didn't work because it didn't have root accesses .

make sure when you run the script you type, SU first, and then KingUser will ask to grant permission, you have to Grant.

sometimes it's a small issue that causes all this mess, Best of luck to you.
[Xperia Z General] jamminen:
I'm going to try the new nordic firmware with flashtool, and if it works without battery drain i'll leave the rooting... I tried your last instructions, factory reset and started installing kingroot after that, but reboot in the middle of installation...
[Xperia Z General] theduke7:
if you had a reboot during installation of Kingroot, i think it might be something wrong with your rom installed now, no one reported that happening before ... if you need Root, try it again after flashing the new rom, but make sure you make a clean flash (wipe data and cache, and reset customization, and factory reset after flashing).

you can also try going back to KK and flash prerooted rom from recovery see following link

http://xdaforums.com/xperia-z/general/stock-android-5-0-2-10-6-0-t3115036

good luck to you.
[Xperia Z General] edwuard:
This is not the root problem stop post things like that here please u have Q&A thread and stay on topic
[Xperia Z General] mujtahid.akon:
I have got root access but now phone is rebooting again and again after gaining boot everytime. I can't install Supersu though.

What should I do now? :(
[Xperia Z General] edwuard:
Bro i think u should go here and read

http://xdaforums.com/xperia-z/help/faqfor-n00bsbasics-root-roms-kerenl-t2368721
[Xperia Z General] kingvortex:
Just some friendly advice. No offence meant here.

You've decided to open up a guide thread, so you can expect questions to be asked when things don't work correctly. Saying things are their own fault or sending people to unrelated FAQ threads isn't really in the spirit of maintaining a guide. I always try to be friendly and assist with questions/problems in my threads. Also, this isn't a development thread, so questions can be asked in here.
[Xperia Z General] Eekq:
Thx Bro,it's work for Me perfectly! ;)
[Xperia Z General] theduke7:
something to add....

when you root your device with KinRoot, after it Roots the device it asks you to "Purify" some applications , with a button that has the word Purify in it ...don't click that button, don't "Purify" , this may cause a lot of error on some of your applications even if this SU replacement succeeds... Purifying replaces the original application in a wrapper controlled by the KingRoot app to manage Permissions.
[Xperia Z General] jamminen:
Should the original post be corrected to match the directions and instructions in this thread?? It's a bit too vague anyway, and different than what has been adviced later on. We are dealing with important stuff here regarding the functionality of many peoples devices.
[Xperia Z General] edwuard:
Only follow the instructions on OP bro, root with kingroot, unzip the mrw on the internal phone storage, open terminal emulator and type su than alow root and type the next sequence and wait to open itself su and update the binary and that is the whole thing, bro very easy
[Xperia Z General] chauhanjayc:
Nicely scripted

[MENTION=5370689]edwuard[/MENTION]

Thanks for such a superb work

Any chances to have superuser mod without Xposed Framework on lolli.

Thanks again
[Xperia Z General] fernando823:
Thank you very much, but it didnt work for me.

I have tried lot of times, even flashed again. My phone is always rebooting and the script doesent manage to make the magic
[Xperia Z General] jamminen:
I think there might be some case or a minor difference that makes it fail, that's exactly why the instructions should be extremely accurate, step by step, leaving only maybe human body functions out of them... And precise order. Not just throw them all into same sentence without punctuation marks.
[Xperia Z General] armutyus:
works like a charm. thanks.
[Xperia Z General] edwuard:
Thanks bro for your words, yes my z is stock and root without xposed thanks bro, it works for everyone only the juniors members don't understand how to get root because they need to read how to use terminal emulator and type without copy and paste, just type.
[Xperia Z General] kingvortex:
Come on, those sort of comments aren't helpful. If you look in the KingRoot thread, there are many people that use Xperia devices complaining that their phone reboots when mounting /system as rw. Just because it didn't happen to you, doesn't mean it's not a real problem.

I'll suggest to you again that you should try to be helpful in your thread rather than dismissive in this way.
[Xperia Z General] jamminen:
I got your terminal commands right just fine, i have used linux from as early as 15 years ago in university, thanks.
[Xperia Z General] kingvortex:
I've explained several times that the problems that some people are experiencing are almost definitely due to Sony's RIC security service. If it detects that something is trying to modify /system it will reboot the device immediately. It doesn't seem to do this consistently on every device (it's never happened to me), but it's a real problem for some and the reason that a ric killer script is included in most specific Xperia root tools and in [NUT]'s dual recovery.

Why he keeps insisting that problems are everyone's own fault is a mystery.
[Xperia Z General] chauhanjayc:
Ops my question was something different

I asked is there any script to have superuser mod without Xposed
[Xperia Z General] edwuard:
Ok today y upgrade my wife Xperia tablet z to Lollipop and root the tablet without any errors i update the post with images :)
[Xperia Z General] jamminen:
I have a serious RIC case in my hands, tried the rooting method instructed on another thread, flashing 10.5.1.A.0.282 rom, then flashing .230 kernel and easyroot, it claimed (after a while) that rooting was done disconnect device, flashed .282 kernel back and installed supersu but it didn't start, said i wasn't rooted after all... I have to think about am I gonna do anything more, i'm guessing i'm not gonna get it without unlocking bootloader. I was hoping for getting to install dual recovery.

Edit: I started unlocking and could this BE any longer process.... Downloading several Gigs just for it. -.-'

Edit2: FINALLY after unlocking i got easyroot do its magic and installed SuperSU, and it's working! Now on to dual recovery and some customizing.... :P
[Xperia Z General] bsvinod:
t2 ultra dual 5322

Sir,

Anyway good information...

Anybody replaced kingroot by superSU in their XPERIA t2 ultra dual(5322)

Please kindly reply..
[Xperia Z General] yasu4u:
shall i try waleed?

i also have c6602....

?

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

forget the REST

just after running Kingroot provided in the OP,

my c6602 keep Rebooting it self ;(

locked bootloader,

---------- Post added at 09:12 AM ---------- Previous post was at 08:55 AM ----------

i use c6602

followed all the instructions, / bootloader unlocked

kingroot as soon as give root access,, the device restarts

terminal hangs

if terminal stable, su get installed without binaries

every step , my xperia reboots....

all you guys are lucky for whom this method worked :(

-------------------------------

while running code, sh /sdcard/mrw/root.sh

this came

[sucess]

then some error about cannot delete internal storage error.... :(
[Xperia Z General] edwuard:
Kingvortex says that some xperia device's hav

ric security from Sony bro I don't found any device until now sorry for if don't work on u device
[Xperia Z General] yasu4u:
ok finally workedddddddddddddddd

the trick is, whil kingroot is rooting your device, install terminal side by side BUT DON"T RUN,

when kingROOT says SUCCESFULLY ROOTED

immediately open terminal and run the commands (all small)

type su

//// chinese superuser will ask permission /// grant it

then type $ sh /sdcard/mrw/root.sh

/// and enter ///

/// [success]

[succuss]

many codes will execute

and WOLAAAA

now immediate go to your dock and run SU and update BINARIES with NORMAL, it will take up to 5 mins of runing and running and finally it will update. now close everthing and REBOOT your device...

you will notice that KINGROOT and its all chinese family is gone,,,

install the root checker (basic / pro) and run it,,, SU will ask permission, GRANT it

[MENTION=3495763]hansip87[/MENTION] , you are correct,, for some reasons the codes don't work.

also guys

TRY ONLY the KINGUSER and Dr.Wolf replacement v1.2 , GIVEN in this POST in OP

i tried before with latest Dr.Wolf's v1.8 it DID NOT WORK.

tested on Xperia Z C6602 / BOOTLOCKED/ ... rest details ATTACHED (see images)

best of luck guysssssssss
[Xperia Z General] kingvortex:
That's exactly the instructions from the first post! :D
[Xperia Z General] ujangns:
Doesn't work on my xperia zr. The SuperSU fail to remove the kinguser. And cannot update the binary.