• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Script] Replace KingoRoot with SuperSU

Just thought i would mention that there is an easier method to replace KingRoot with SuperSU and it should work for all?

1) Root with Kingo PC app
2) Install and run Terminal with su, grant permission with Kingo Superuser
3) Unroot Kingo using the same PC app
4) Run baketa's step0.sh script, and then uninstall kingo root app
5) Install and update supersu
6) If succesfull Reboot
 
Last edited:
If I'm not mistaken, that leaves some kingeoot cli stuff behind, not something I'm a fan of. Haven't had a chance yet, but I'll write a 1-step script that should cut down on issues. I'm a dork for not using packagemanager in the first place, but I was just quickly hacking together what I did manually.
 
yeah, fair enough, i guess i posted my findings to try to help people having trouble, i was trying to remove this from a galaxy tab t230, and found your script didn't work on its own, step0 usually ended up with 'text file in use' error on daemonsu, and step1 resulted in lots of file not founds. And i could not get supersu updated

I appreciate this script wasn't originally intended for all devices, the solution above worked for me, and i guess running your scripts after unrooting to cleanup doesn't hurt either, but i still had to manually remove 1 file 'kingxxxx' or something from the system app folder

I think that they will continue to update kingroot with new files, different names etc, and different files for different devices, and it will be hard to always be able to cleanup totally and remove all files with a one time script, the main goal is to have supersu take over from kingo superuser, which is what my workaround achieves, and i think it may work with most if not all devices.
 
Last edited:
Now that this isn't my daily driver, I should unroot and see what kingroot has changed. They ARE NOT fans of replacing their app, though, and they obfuscate which exploit they use by downloading it dynamically, so changing filenames wouldn't surprise me at all.
 
130|root@cs02ve3gdtv:/data/local/tmp # ./step1.sh
Restoring SuperSU binary...
cp: /system/xbin/su: Read-only file system
Unable to chmod /system/xbin/su: Read-only file system
Cleaning up KingRoot leftovers that prevent SuperSU from updating...
./chattr.pie: No such file or directory while trying to stat /system/xbin/ku.sud

./chattr.pie: No such file or directory while trying to stat /system/xbin/supoli
cy
rm failed for /system/xbin/ku.sud, No such file or directory
rm failed for /system/xbin/supolicy, No such file or directory
rm failed for /system/bin/rt.sh, No such file or directory
rm failed for /system/bin/install-recovery.sh, No such file or directory
rm failed for /system/bin/shipclean, No such file or directory
rm failed for /system/bin/start-ssh, No such file or directory
./chattr.pie: No such file or directory while trying to stat /system/etc/install
-recovery.sh
./chattr.pie: No such file or directory while trying to stat /system/etc/install
-recovery.sh-ku.bak
rm failed for /system/etc/install-recovery.sh, No such file or directory
rm failed for /system/etc/install-recovery.sh-ku.bak, No such file or directory
rm failed for /system/etc/install_recovery.sh, No such file or directory
rm failed for /system/usr/icu/icusuflag.conf, No such file or directory
./chattr.pie: No such file or directory while trying to stat /system/usr/iku/isu

rm failed for /system/kroot_*, No such file or directory
rm failed for /sdcard/kr-stock-conf, No such file or directory
.............................................................................
1-2 errors are ok, 10+ are not. Run SuperSU and update binary normally if ok.
root@cs02ve3gdtv:/data/local/tmp #

help me plz
 
root@cs02ve3gdtv

This isn't a 7040N or 7040T, the script is not universal by any stretch. It was cobbled together a few minutes at a time, and wasn't meant to be a 1-click fixall.

Your filesystem seems to be read-only again, the number one problem. It also looks like chattr.pie isn't being found, nor are most kingroot files. What exactly are you working on, and what exactly are you doing?
 
Hello bakegeta, i am also rooted with kingoRoot. I do not have a problem with kingoroot it is just that i am not able to mount my system. Since i am not able to mount my system to r/w , i will not be able to use your script right =( . Do you have your bootloader unlock ? Is that why i cannot mount my system to r/w because my bootloader is not unlock.. thanks
 
Hello bakegeta, i am also rooted with kingoRoot. I do not have a problem with kingoroot it is just that i am not able to mount my system. Since i am not able to mount my system to r/w , i will not be able to use your script right =( . Do you have your bootloader unlock ? Is that why i cannot mount my system to r/w because my bootloader is not unlock.. thanks
No, my bootloader is locked, and this has been ran on both metropcs and T-Mobile variants. What model is your device, and what kernel/build? How exactly are you trying to mount, and what is said?
 
Oh is only for those device.. I am using Sony Xperia M2, Kernel-3.4.0 build number-18.3.1.C.1.17. I am trying to mount r/w to my system. And after trying #mount -0 rw,remount /system it gives me a error, operation not permitted.
 
You'll need to look up the system lock bypass for your, there's probably an xda thread for the Xperia M2 that details it, the xperia devices are pretty popular.
 
Hi Bakageta, please help me!
First of all , sorry for my poor english, i am brazilian. haha.

In attempt to replace kingoRoot the system displays the following error :
Screenshot_2015-09-11-15-57-02.png


I have installed both apps, but Kingoroot is who grants access to the root.
I use the Terminal Emulator App.

Please help, i am willing to start from zero whith the reinstall all Android...
Tanks!
 
I am trying it in sony xperia e4 but I got tgis problem.
Please help me....
 

Attachments

  • Screenshot_2015-10-20-20-06-02.png
    Screenshot_2015-10-20-20-06-02.png
    35.6 KB · Views: 348
All that you require is an app called "SuperSu me.apk".

And you just have to press a button in the app and the work will be done in 2 or 5 minutes.
 
It is permanent
Is this working confirmed for a Note 4 Verzion Retail edition? I'm on 4.4.4 and could get the files to read/write. i tried to push them to the data/local/tmp but it wouldn't read write just alot of typing on my phone from the ADB program. i can send screenshots but we all have locked bootloader if its not developer edition :(
 
Hi guys! Just registered because of this script

I have ran the script using Terminal Emulator with SU privliages, as you can see by the image there is a error and it doesn't add or alter anything.

The phone still has Kingo Super User running and the phone stays rooted

Smart 4 Turbo 890N Vodofone

~SomethingelseUK
 

Attachments

  • Screenshot_2015-12-05-15-35-41.png
    Screenshot_2015-12-05-15-35-41.png
    93.4 KB · Views: 430
Is this working confirmed for a Note 4 Verzion Retail edition? I'm on 4.4.4 and could get the files to read/write. i tried to push them to the data/local/tmp but it wouldn't read write just alot of typing on my phone from the ADB program. i can send screenshots but we all have locked bootloader if its not developer edition :(
Well.... It is working confirmed since my phone is a innjoo i2s(released recently)
 
Hi guys! Just registered because of this script

I have ran the script using Terminal Emulator with SU privliages, as you can see by the image there is a error and it doesn't add or alter anything.

The phone still has Kingo Super User running and the phone stays rooted

Smart 4 Turbo 890N Vodofone

~SomethingelseUK

All that you require is an app called "SuperSu me.apk".

And you just have to press a button in the app and the work will be done in 2 or 5 minutes.
 
I'm using lollipop (5.1.1) on one touch fierce xL and I can't figure out the command line for the location I extracted the files, I keep getting an error "no such file or directory" its in my basic phone storage not in any other folders.

When I think I found it I get an access denied on running the 2nd script ./step0
 
Back
Top Bottom