- you need
adbandfastboot - a usb cable
- custom recovery: https://twrp.me/google/googlepixel.html
- custom rom: http://get.aospa.co/official/sailfish
- google apps: http://opengapps.org/ (platform: arm64, android: 7.1, variant: nano)
- supersu: http://www.supersu.com/download (latest Recovery Flashable.zip)
connect to pc and type (will wipe everything including internal storage):
$ fastboot oem unlock
$ fastboot flash recovery ~/path/to/twrp.img
- reboot into recovery
- do a factory reset
- flash zip files (in this order)
- aospa
- gapps
- (optional) flash supersu
- reboot