nexus5x 刷机root

刷机

进入fastboot模式

adb reboot bootloader

 或者开机 + 音量减

解锁bootloader

fastboot oem unlock

刷入rom包

下载

Nexus 和 Pixel 设备的出厂映像  |  Google Play services  |  Google for Developers

nexus5x 刷机root_第1张图片

选一个合适的ROM包下载到电脑的某个位置,然后unzip解压后直接运行shell【如果是windows有flash-all.bat文件可以运行】

unzip bullhead-n2g48c-factory-45d442a2.zip

cd bullhead-n2g48c-factory-45d442a2
./flash-all.sh

等待完毕即可,结束后安卓机会重启,基本配置结束就是一台新的机器了

Root

传入twrp

下载twrpnexus5x 刷机root_第2张图片

Download TWRP for bullhead

进入fastboot模式

adb reboot bootloader

推送到机器

fastboot flash recovery twrp-3.4.0-0-bullhead.img

按音量键调整模式,在recovery mode按电源键进入,这时候adb会恢复控制

nexus5x 刷机root_第3张图片

传入superSU

下载supersu的压缩包,用adb传到手机

adb push SR5-SuperSU-v2.82-SR5-20171001224502.zip sdcard/

选择install,安装刚才传的supersu

nexus5x 刷机root_第4张图片nexus5x 刷机root_第5张图片nexus5x 刷机root_第6张图片nexus5x 刷机root_第7张图片

重启之后就可以root了(当然记得进开发者模式允许USB调试)

nexus5x 刷机root_第8张图片

用magisk的流程是一样的,把supersu的zip替换即可,但是我目前会遇到bug,搞不成功

联网问题修复

adb执行下列指令后重启即可

adb shell settings put global captive_portal_http_url https://www.google.cn/gengrate_204

adb shell settings put global captive_portal_https_url https://www.google.cn/gengrate_204

adb shell settings put global ntp_server 1.hk.pool.ntp.org

你可能感兴趣的:(安全)