最近ROOT权限容易出Bug,一升级就倒霉,参照了乐phone之家论坛的root脚本,写下Linux的Root备忘;
sudo ./adb shell mv /data/local/tmp /data/local/tmp.bak sudo ./adb shell ln -s /data /data/local/tmp sudo ./adb reboot echo Rebooting (1/3) - Continue once device finishes rebooting sudo ./adb shell rm /data/local.prop > nul sudo ./adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop" sudo ./adb reboot echo Rebooting (2/3) - Continue once device finishes rebooting sudo ./adb shell id echo If the id is 0 / root then continue, otherwise ctrl+c to cancel and start over sudo ./adb remount sudo ./adb push su /system/bin/su sudo ./adb shell chown 0.0 /system/bin/su sudo ./adb shell chmod 06755 /system/bin/su sudo ./adb push busybox /system/bin/busybox sudo ./adb shell chown 0.0 /system/bin/busybox sudo ./adb shell chmod 0755 /system/bin/busybox sudo ./adb push Superuser.apk /system/app/Superuser.apk sudo ./adb shell chown 0.0 /system/app/Superuser.apk sudo ./adb shell chmod 0644 /system/app/Superuser.apk sudo ./adb push RootExplorer.apk /system/app/RootExplorer.apk sudo ./adb shell chown 0.0 /system/app/RootExplorer.apk sudo ./adb shell chmod 0644 /system/app/RootExplorer.apk echo Removing changes except ROOT sudo ./adb shell rm /data/local.prop sudo ./adb shell rm /data/local/tmp sudo ./adb shell mv /data/local/tmp.bak /data/local/tmp sudo ./adb reboot echo Rebooting (3/3) - You should now be Rooted