原来买的nexus废了,又买了一个,咸鱼那B说root过了,到手发现没root。

那只能自己动手root了
【最现代最易懂详细教程】如何给你的Pixel手机root 如何root 谷歌手机 Pixel4 root Nexus 手机 不清除数据 教不会证明你打不过我_哔哩哔哩_bilibili
先在这里下载系统镜像(一定要看清楚手机型号和安卓版本,别下错了)
Nexus 和 Pixel 设备的出厂映像 | Google Play services | Google for Developers
解压

下载驱动程序
Get the Google USB Driver | Android Studio | Android Developers
官网这个我下不了,404。gitee上有个镜像
再去下Android Platform tools
SDK Platform Tools 版本資訊 | Android Studio | Android Developers
把之前的boot.img复制进去
再用adb把imgpush到手机里

然后装magisk Magisk下载 - Magisk中文网

选择boot.img安装

全部都要勾选,不然会卡加载界面


重命名生成的magisk文件,pull回电脑上platform tools文件夹

然后进入手机bootloader模式


执行后重新开机即可

等待一会就开了,如果之前没有勾选那两个,就会卡在这里

可以看到超级用户已经获取