由于需要使用Appium对Nexus 5x进行开发,需要对Nexus 5x进行root,在这个过程中遇到许多问题,这里一一说明。
一、root的全过程
这里首先说明一下root的全过程:
1、手机完成“开发者模式”设置
2、开启“oem unlock”及usb调试功能
3、关闭手机
4、进入快速启动模式
5、在PC端运行“fastboot oem unlock”
6、在PC端运行“fastboot flash recovery twrp.img”
7、进入恢复模式,安装SuperSU
二、TWRP 错误
安装完TWRP之后,5X不断重启到TWRP界面,在那里崩溃、关闭并且不断重复这样的操作。
它的错误信息是:
Could not mount /data and unable to find crypto footer
Failed to mount '/data' (Invalid argument)
Unable to recreate /data/media folder.
Updating partition details...
Failed to mount '/data' (Invalid argument)
...done
Unable to mount storage
Failed to mount '/data' (Invalid argument)
Full SELinux support is present.
Running Recovery Commands
Failed to mount '/data' (Invalid argument)
Formatting Cache using make_ext4fs...
Done processing script file
Renamed stock recovery fil