# Google Pixel 3

# Bootloader 解锁

$ adb devices
$ adb reboot bootloader
$ fastboot devices
$ fastboot flashing unlock
$ fastboot flashing lock
$ fastboot reboot

# Magisk

$ adb install Magisk.apk
$ adb push boot.img /sdcard

使用 Magisk 修复 boot.img,将其导出

$ adb pull /sdcard/Download/Magisk-xxx.img

使用此 boot 以获取临时 root,永久 root 可进一步在 Magisk 中直接安装

$ fastboot boot Magisk-xxx.img

# A/B 系统更新

$ fastboot --set-active=a
$ fastboot flash boot boot.img