This article will cover steps to install Android 8 on Pixel 2. The similar steps can also be used to install other Android versions in other Pixel devices.
- Download right image from Android images official site. In this case we’ll download walleye-opd1.170816.010-factory-63083164.zip
- Unzip the image
unzip walleye-opd1.170816.010-factory-63083164.zip
- Change to dir walleye-opd1.170816.010
cd walleye-opd1.170816.010
- Enable Developer mode in phone, Unlock bootloader, connect phone to PC using USB and reboot phone in bootloader.
adb reboot bootloader
- Run flash-all.sh
sh flash-all.sh
It might take few minutes. Once the Android 8 is installed, you can follow the process on the phone to set it up.