- boot twrp
- flash update
- wipe cache and dalvik
- flash twrp installer
- wipe cache and dalvik
- change slot
- reboot recovery
- install GAPPS
- wipe cache and dalvik
- install HEX (???)
- wipe cache and dalvik
- install magisk
- wipe cache and dalvik
- reboot system
$ sudo adb kill-server
- in your DEVICE SETUP, go to developer-options end disable usb-debugging
- press REVOKE USB debugging authorizations, click OK
- enable usb-debugging
$ adb start-server