• 「Android」Lenovo K860 root脚本备忘


    最近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
    ------------
    微博:http://weibo.com/scue
    Github:http://github.com/scue
  • 相关阅读:
    ajax请求
    easyui相关问题
    linux解压命令
    angular2 中文学习资料整理
    在angular2服务中注入服务
    Angular 2模板语法
    登录,注册流程(基于token的身份验证)
    Node Js与JavaScript的区别及nodejs优缺点。
    yarn包管理网站
    浅谈Cookie,Session,WebStorage区别,应用场景
  • 原文地址:https://www.cnblogs.com/scue/p/2780014.html
Copyright © 2020-2023  润新知