supersu吧 关注:4,344贴子:18,159
  • 2回复贴,共1

自己研究出来的,360Root换SuperSU的代码

取消只看楼主收藏回复

都是终端模拟器的命令,提前将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


IP属地:上海1楼2015-12-06 23:59回复
    @正之霜月 @孤心空 看懂了没有?看不懂我给你们解释。


    IP属地:上海2楼2015-12-07 00:00
    回复
      再说一下现在的情况。360root最新版本,没有pie,但有了另外一种保护机制,删除su文件会自动添加回来。卸载360依然会。


      IP属地:上海来自Android客户端13楼2016-01-24 01:21
      收起回复