都是终端模拟器的命令,提前将SuperSU所需所有文件解压到了TF卡的SuperSU目录。理论上改一下代码,对KingRoot也有效。
su
setenforce 0
mount -o remount,rw /
mount -o remount,rw / /
mount -o remount,rw /system
mount -o remount,rw /system /system
dd if=/system/bin/su of=/system/bin/_su
chmod 0755 system/bin/_su
exit
_su
rm /system/bin/su
dd if=/mnt/sdcard2/SuperSU/su of=/system/xbin/su
chmod 0755 system/xbin/su
ln system/xbin/su system/bin/su
chmod 0755 system/bin/su
mkdir /system/app/SuperSU
chmod 0755 /system/app/SuperSU
dd if=/mnt/sdcard2/SuperSU/SuperSU.apk of=/system/app/SuperSU/SuperSU.apk
chmod 0644 /system/app/SuperSU/SuperSU.apk
dd if=/mnt/sdcard2/SuperSU/su of=/system/xbin/daemonsu
chmod 0755 system/xbin/daemonsu
dd if=/mnt/sdcard2/SuperSU/su of=/system/xbin/sugote
chmod 0755 system/xbin/sugote
dd if=/system/bin/sh of=/system/xbin/sugote-mksh
chmod 0755 /system/xbin/sugote-mksh
dd if=/mnt/sdcard2/SuperSU/supolicy of=/system/xbin/supolicy
chmod 0755 /system/xbin/supolicy
dd if=/mnt/sdcard2/SuperSU/libsupol.so of=/system/lib64/libsupol.so
chmod 0644 /system/lib64/libsupol.so
mkdir /system/bin/.ext
dd if=/mnt/sdcard2/SuperSU/su of=/system/bin/.ext/.su
chmod 0755 /system/bin/.ext/.su
reboot
su
setenforce 0
mount -o remount,rw /
mount -o remount,rw / /
mount -o remount,rw /system
mount -o remount,rw /system /system
dd if=/system/bin/su of=/system/bin/_su
chmod 0755 system/bin/_su
exit
_su
rm /system/bin/su
dd if=/mnt/sdcard2/SuperSU/su of=/system/xbin/su
chmod 0755 system/xbin/su
ln system/xbin/su system/bin/su
chmod 0755 system/bin/su
mkdir /system/app/SuperSU
chmod 0755 /system/app/SuperSU
dd if=/mnt/sdcard2/SuperSU/SuperSU.apk of=/system/app/SuperSU/SuperSU.apk
chmod 0644 /system/app/SuperSU/SuperSU.apk
dd if=/mnt/sdcard2/SuperSU/su of=/system/xbin/daemonsu
chmod 0755 system/xbin/daemonsu
dd if=/mnt/sdcard2/SuperSU/su of=/system/xbin/sugote
chmod 0755 system/xbin/sugote
dd if=/system/bin/sh of=/system/xbin/sugote-mksh
chmod 0755 /system/xbin/sugote-mksh
dd if=/mnt/sdcard2/SuperSU/supolicy of=/system/xbin/supolicy
chmod 0755 /system/xbin/supolicy
dd if=/mnt/sdcard2/SuperSU/libsupol.so of=/system/lib64/libsupol.so
chmod 0644 /system/lib64/libsupol.so
mkdir /system/bin/.ext
dd if=/mnt/sdcard2/SuperSU/su of=/system/bin/.ext/.su
chmod 0755 /system/bin/.ext/.su
reboot