OnePlus Nord (oneplus-avicii)

Contributors

 * rasp

Maintainer(s)

 * rasp

Via ADB

 * adb reboot fastboot
 * (a menu appears, that says 'fastbootd')
 * English -> Advanced -> Reboot to fastboot -> Reboot to fastboot (confirm)

Via "Advanced Reboot"

 * make sure Settings -> System -> Developer Tools -> Advanced Reboot is enabled
 * hold power+volup button (or just power if you enabled it) and choose Bootloader

Installation
pmbootstrap chroot -- fastboot reboot fastboot     # go from fastboot to fastbootD (fastbootd is userspace, sees system partitions) pmbootstrap chroot -- fastboot getvar current-slot # should display a or b pmbootstrap chroot -- fastboot set_active a         # or b, to change active slot pmbootstrap init                # choose avicii, downstream kernel pmbootstrap install pmbootstrap initfs hook_add debug-shell pmbootstrap flasher flash_vbmeta pmbootstrap chroot -- fastboot erase dtbo pmbootstrap flasher boot pmbootstrap flasher flash_kernel
 * Note that currently the device works to a debug-shell in initfs, so you can install boot.img, but not rootfs. Also you can just fastboot boot instead
 * This is an A/B device, so you leave your working slot and play on the other:
 * After you ensure you have pmbootstrap up and running
 * 1) and now you can either boot
 * 1) OR flash boot.img