- Remove Google account and any kind of screen lock (fingerprint, PIN, pattern, etc.) from your device.
- Quickest way is to just factory reset the device
- Eject sim card from your device.
- Reset your device. In setup wizard, skip everything you can. ESPECIALLY:
- DO NOT connect to WiFi
- DO NOT add fingerprints
- DO NOT add a screen lock.
- Enable Developer Options
- In Developer Options, enable USB debugging.
- Connect your phone to PC
- Check the box to always allow your PC
- Open a command shell and run the following:
adb shell pm uninstall --user 0 com.android.phone
- Restart your device (using the power button).
- Connect to WiFi
- Open Chrome and go to google.com
- Go to Developer Options and the option to enable OEM unlocking should be available.
- Enable OEM unlocking.
- Reboot into bootloader and run
fastboot oem unlock
- On newer phones ( >= Pixel2) you may need to use
fastboot flashing unlock
instead
- On newer phones ( >= Pixel2) you may need to use
- Reboot, and enjoy your now unlocked bootloader!
NOTE: You may need to run the factory reset twice in a row, and reboot twice after step 8.
Special thanks to: https://forum.xda-developers.com/pixel-xl/how-to/how-to-unlock-bootloader-verizon-pixel-t3796030