Download GrapheneOS latest relase:
Official releases of GrapheneOS, a security and privacy focused mobile OS with Android app compatibility.
grapheneos.org
Download latest platform-tools:
Discover what's new in the latest versions of Android Studio, the official IDE for Android.
developer.android.com
On device:
Settings ➔ System ➔ Advanced ➔ Developer options and toggle on the 'Enable OEM unlocking'
Enable USB debug too.
On Device:
Boot device with VOLUME DOWN + POWER to enter BOOTLOADER.
On Macbook:
Drag fasboot file (from platform-tools) to Terminal adding
flashing unlock. Like this:
/Users/YOURUSERNAME/platform-tools/fastboot flashing unlock
Unzip GrapheneOS relase inside platform-tools.
Open flash.all.sh with text editor and change path to files. Like this:
-----------------------------------------------
fastboot flash bootloader /Users/
YOURUSERNAME/platform-tools/bootloader-blueline-b1c1-0.2-6085603.img
fastboot reboot-bootloader
sleep 5
fastboot flash radio /Users/
YOURUSERNAME/platform-tools/radio-blueline-g845-00096-200114-b-6134206.img
fastboot reboot-bootloader
sleep 5
fastboot erase avb_custom_key
fastboot flash avb_custom_key /Users/
YOURUSERNAME/platform-tools/avb_pkmd.bin
fastboot reboot-bootloader
sleep 5
fastboot -w --skip-reboot update /Users/
YOURUSERNAME/platform-tools/image-blueline-2020.05.23.12.zip
-----------------------------------------------
Drag flash.all.sh to Terminal to start. When finish, choose restart BOOTLOADER and lock fastboot:
/Users/
YOURUSERNAME/platform-tools/fastboot flashing lock.
RESTART