欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

如何在移动魔盒(型号:CM201z)上获取 root

最编程 2024-04-07 08:12:14
...
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