标签:from lin mount 管理 保存 super 技术 论坛 博客
下面是root之后的效果。
root授权界面
“SuperSU”软件界面
“极客内存清理”应用界面
set CPU_TYPE=armv7 set LIB_FORDER=lib adb connect 192.168.1.3:5114 #这一行代码用来连接电视盒子,端口号必须为5114;ip可能不同,需要自行修改 adb root adb remount adb shell setenforce 0 adb push common/Superuser.apk /system/app/SuperSU/SuperSU.apk adb shell chmod 0644 /system/app/SuperSU/SuperSU.apk adb shell chcon u:object_r:system_file:s0 /system/app/SuperSU/SuperSU.apk adb shell "echo >> /system/bin/install-recovery.sh" adb shell "echo ‘# Disable SELINUX & Run SuperSU deamon‘ >> /system/bin/install-recovery.sh" adb shell "echo ‘/system/xbin/daemonsu --auto-daemon &‘ >> /system/bin/install-recovery.sh" adb shell chmod 0755 /system/bin/install-recovery.sh
#以下有颜色的部分是绝对路径,因为如果和那篇帖子一样在调试时使用相对路径,运行后可能报错,还是使用绝对路径省心 adb push /storage/emulated/0/getroot/SuperSU-v2.82-201705271822/armv7/su /system/xbin/su adb shell chmod 0755 /system/xbin/su adb shell chcon u:object_r:system_file:s0 /system/xbin/su adb push /storage/emulated/0/getroot/SuperSU-v2.82-201705271822/armv7/su /system/bin/.ext/.su adb shell chmod 0755 /system/bin/.ext/.su adb shell chcon u:object_r:system_file:s0 /system/bin/.ext/.su adb push /storage/emulated/0/getroot/SuperSU-v2.82-201705271822/armv7/su /system/xbin/daemonsu adb shell chmod 0755 /system/xbin/daemonsu adb shell chcon u:object_r:system_file:s0 /system/xbin/daemonsu adb push /storage/emulated/0/getroot/SuperSU-v2.82-201705271822/armv7/supolicy /system/xbin/supolicy adb shell chmod 0755 /system/xbin/supolicy adb shell chcon u:object_r:system_file:s0 /system/xbin/supolicy adb push /storage/emulated/0/getroot/SuperSU-v2.82-201705271822/armv7/libsupol.so /system/%LIB_FORDER%/libsupol.so adb shell chmod 0755 /system/%LIB_FORDER%/libsupol.so adb shell chcon u:object_r:system_file:s0 /system/%LIB_FORDER%/libsupol.so
点击脚本文件,在弹出的窗口中点击“执行”,然后静静等待终端执行完成。如果脚本在执行过程中出现错误,请尝试逐步排查该脚本文件各条命令是否正确。
标签:from lin mount 管理 保存 super 技术 论坛 博客
原文地址:https://www.cnblogs.com/oftx/p/root_tvbox.html