nexus6 root方法

来源:互联网 发布:javascript .tagname 编辑:程序博客网 时间:2024/05/24 01:17

nexus6 root方法

本方法适用于刷入TWRP的recovery.img文件后install supersu.zip来root。

  1. 下载supersu zip文件 http://www.supersu.com/gettingstarted#recovery

  2. 下载TWRP recovery.img 文件
    http://download.csdn.net/download/think_ycx/10129691
    这里我没有下载到可用的recovery.img文件,使用之前提供的rec310.img文件

  3. 测试adb 和fastboot可用

    ➜ ~$ adb devicesList of devices attachedZX1G224GS3   device# 进入fastboot模式➜ ~$ adb reboot bootloader # 查看fastboot是否可用,如果permissions error,请给fastboot root权限。可以cp fastboot到 /bin目录,在NTFS的硬盘中,是改不了权限的。# sudo chown root:root /bin/fastboot# sudo chmod +s /bin/fastboot➜ ~$ sudo fastboot devicesZX1G224GS3   fastboot# 刷入recovery.img 不用例会bootloader not found报错➜ ~/Downloads$ sudo fastboot flash recovery rec310.img  (bootloader) slot-count: not found(bootloader) slot-suffixes: not found(bootloader) slot-suffixes: not found(bootloader) has-slot:recovery: not foundtarget reported max download size of 536870912 bytessending 'recovery' (13464 KB)...OKAY [  0.423s]writing 'recovery'...OKAY [  0.207s]finished. total time: 0.630s

    至此,bootloader中可以进入recovery模式了。
    选择install supersu的zip文件即可。

此外,如果直接是root模式,可以直接安装super su的apk文件。
非root模式下,通过adb安装super su的apk文件后,可以在adb中执行su,但是实际上打开super su 的apk文件会报还没有root的错。
所以,一般使用刷recovery.img的方式再刷入super su的zip文件即可。
`