Magisk

https://twrp.me/huawei/huaweinexus6p.html

https://github.com/topjohnwu/Magisk/releases

https://mp.weixin.qq.com/s?__biz=MzAwMzczMTQzMg==&mid=2649567526&idx=1&sn=3324c3c19096b096cd8425913a7a0524&chksm=832f2ba1b458a2b72d5111379377e64d9eeb61be01faab8ddeeb744f6b7c3492767c0696e288&mpshare=1&scene=1&srcid=0415cty9S7bkg0p1rVHfmJXV#rd

1.

#fastboot devices ubuntu16.04

#no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html] fastboot
https://blog.csdn.net/qilu0882/article/details/78401399

2.
target reported max download size of 494927872 bytes
sending ‘recovery’ (17004 KB)…
OKAY [ 0.479s]
writing ‘recovery’…
FAILED (remote: device is locked. Cannot flash images)
finished. total time: 0.499s

https://www.androidcentral.com/how-unlock-nexus-6p-bootloader
fastboot flashing unlock

https://android.gadgethacks.com/how-to/root-nexus-6p-nexus-5x-windows-mac-linux-the-foolproof-guide-0166128/

fastboot flash recovery twrp.img
在界面上选择

https://android.gadgethacks.com/how-to/root-nexus-6p-nexus-5x-windows-mac-linux-the-foolproof-guide-0166128/

https://www.xda-developers.com/how-to-install-magisk/

https://github.com/topjohnwu/Magisk/releases

1.
下载Magisk-v16.4.zip,Magisk-uninstaller-20180429.zip 放在sdk卡根目录.

1.安装twrp.img
打开开发者选项中的oem解锁.
下载twrp.img文件.地址为:https://dl.twrp.me/angler/
下载完成后重命名为twrp.img

下载magisk相关文件.Magisk-v16.4.zip,Magisk-uninstaller-20180429.zip
下载地址.
https://github.com/topjohnwu/Magisk/releases
https://github.com/topjohnwu/MagiskManager/releases

adb push /sdcard/
放在sdk卡根目录.

参考这篇文章
https://android.gadgethacks.com/how-to/root-nexus-6p-nexus-5x-windows-mac-linux-the-foolproof-guide-0166128/

adb reboot bootloader
fastboot devices
如果找不到设备,请参考 https://blog.csdn.net/qilu0882/article/details/78401399
fastboot flashing unlock

fastboot flash recovery twrp.img

然后,在界面中按音量键,选择.Recovery Mode,然后按电源键选择.稍等.进入twrp界面后,
点击install,找到Magisk-v16.4.zip文件,点击安装.

之后reroot
设备重启后,安装.MagiskManager-v5.7.0.apk
https://www.xda-developers.com/how-to-install-magisk/

然后安装XposedInstaller_3.1.5-Magisk.apk
https://forum.xda-developers.com/xposed/unofficial-systemless-xposed-t3388268

adb install XposedInstaller_3.1.5-Magisk.apk

安装Xposed 必须使用 Magisk 专门版本
下载地址:https://forum.xda-developers.com/xposed/unofficial-systemless-xposed-t3388268
下载xposed-v90.2-sdk27-beta3-topjohnwu.zip

adb push xposed-v90.2-sdk27-beta3-topjohnwu.zip /sdcard/
参考文章:https://www.jianshu.com/p/21800fc795e6?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation
https://www.jianshu.com/p/51c4fa4881e1

重启手机,进入Recovery界面。(adb reboot recovery)
选择【安装刷机包】进入下级页面,选择【从SD卡选择ZIP文件】
在SD卡根目录找到Xposed Framework刷机包(xposed-v86-sdk22-arm64.zip),并选择。
滑动底部的滑动条,确认刷入,等待提示刷机完成。
重启手机,等待进入桌面。

https://www.jianshu.com/p/51c4fa4881e1
一加1刷入Android 8.1(Magisk root, Xposed)

出现如下情况.
[email protected]:~/magisk$ adb devices
List of devices attached
CVH7N15C03002357 device
CVH7N15C03002357 no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html]

请执行如下命令重启adb
adb kill-server
adb start-server