批处理破解ROOT权限总结

echo off 

%批处理语句不输出到终端%
cls

%清屏,这里只是为了清除echo off%
adb shell mv /data/local/tmp /data/local/tmp.bak

%连接设备,将tmp文件改名为tmp.bak%
adb shell ln -s /data /data/local/tmp

adb reboot

%重启设备%
echo Rebooting (1/3) - Continue once device finishes rebooting

%终端显示%
echo 正在重启平板(第1次,共3次)- 请等待重启完毕,之后按任意键继续

%终端显示%
pause

%请用户按任意键继续%

adb shell rm /data/local.prop > nul
adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop"
adb reboot
echo Rebooting (2/3) - Continue once device finishes rebooting
echo 正在重启平板(第2次,共3次)- 请等待重启完毕,之后按任意键继续
pause

adb shell id
echo If the id is 0 / root then continue, otherwise ctrl+c to cancel and start over
echo 如果上面显示的id为0或者root,按任意键继续;否则按Ctrl-C并回复Y来取消本次root尝试,然后重试
pause

adb remount
adb push su /system/bin/su
adb shell chown root.shell /system/bin/su
adb shell chmod 6755 /system/bin/su
adb push busybox /system/bin/busybox
adb shell chown root.shell /system/bin/busybox
adb shell chmod 0755 /system/bin/busybox
echo 正在安装SuperSU
adb push SuperSU.apk /system/app/SuperSU.apk
adb shell chown root.root /system/app/SuperSU.apk
adb shell chmod 0644 /system/app/SuperSU.apk
adb push RootExplorer.apk /system/app/RootExplorer.apk
adb shell chown root.root /system/app/RootExplorer.apk
adb shell chmod 0644 /system/app/RootExplorer.apk
echo Removing changes except ROOT

adb shell rm /data/local.prop
adb shell rm /data/local/tmp
adb shell mv /data/local/tmp.bak /data/local/tmp
adb reboot

echo Rebooting (3/3) - You should now be Rooted
echo 正在重启平板(第3次,共3次) - root成功
pause

echo on

posted @ 2013-01-24 16:39  Gremorse  阅读(601)  评论(0编辑  收藏  举报