最近用了一个root工具,从中学习到从Android系统中上传、下载任意文件的方法:
- echo off
-
- cls
-
- adb shell mv /data/local/tmp /data/local/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 0.0 /system/bin/su
- adb shell chmod 06755 /system/bin/su
- adb push busybox /system/bin/busybox
- adb shell chown 0.0 /system/bin/busybox
- adb shell chmod 0755 /system/bin/busybox
- adb push Superuser.apk /system/app/Superuser.apk
- adb shell chown 0.0 /system/app/Superuser.apk
- adb shell chmod 0644 /system/app/Superuser.apk
- adb push RootExplorer.apk /system/app/RootExplorer.apk
- adb shell chown 0.0 /system/app/RootExplorer.apk
- adb shell chmod 0644 /system/app/RootExplorer.apk
- echo Removing changes except ROOT
- echo 正在进行清理和恢复
- 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
关键就是在/data/local.prop中添加"ro.kernel.qemu=1"
本文转自fatshi51CTO博客,原文链接:http://blog.51cto.com/duallay/1101494 ,如需转载请自行联系原作者