Contents
Flashing stock OS on Pixel
Following https://developers.google.com/android/ota
The Android Flash tool can also be used with a chrome browser: https://flash.android.com/welcome?continue=%2Fbuild%2F6934943%3Ftarget%3Dwalleye-user%26signed%3D
Prerequisites
Computer with
1. Android SDK Platform-Tools installed
Download factory image
Download the image
Pixel 2
1 curl -LO "https://dl.google.com/dl/android/aosp/walleye-rp1a.201005.004.a1-factory-0c23f6cf.zip"
And verify its checksum:
1 sha256sum walleye-rp1a.201005.004.a1-factory-0c23f6cf.zip
It should be equal to the SHA displayed on the page: 0c23f6cf9e2194a3e72b1288f65c5a7f2f6c020080af49c8a494ee99ab3eb543
Extract the contents:
1 unzip "walleye-rp1a.201005.004.a1-factory-0c23f6cf.zip"
Enable OEM unlocking and USB debugging
If necessary, enable Developer options:
Settings → About Phone → tap Build Number 7 times
Enable USB debugging:
Settings → System → Advanced → Developer Options → USB debugging
If necessary, enable OEM unlocking:
Settings → System → Advanced → Developer Options → OEM unlocking
Reboot into fastboot
Connect your device to your computer over USB.
Check if your device can be found:
1 adb devices
1 adb reboot bootloader
Unlock bootloader
If necessary, unlock the bootloader:
1 fastboot flashing unlock
Flash factory image
Check if your device can be found:
1 fastboot devices
Pixel 2
Move into the directory:
1 cd walleye-rp1a.201005.004.a1
1 ./flash-all.sh
Once the script finishes, the device reboots.
Lock the bootloader
Enable USB debugging on the device, see: Enable OEM unlocking and USB debugging
Start device in fastboot mode:
1 adb reboot bootloader
Execute:
1 fastboot flashing lock
Needs to be confirmed on the device.