Restoring a Pixel to the factory image is a pretty straight forward operation if you are familiar with fastboot and adb. This guide assumes you have fastboot already installed and setup in your user path. If not you can refer to the following link for more information.
WARNING – THESE STEPS WILL DELETE ALL USER DATA OFF THE DEVICE.
1. Download OTA Image
Go to the following link and download the Factory Image for your device
Extract the file and then open a terminal or command prompt in that directory.
2. Boot up Pixel in recovery
You can do this with “adb reboot recovery” or with the volume key to boot into the Android boot menu.
3. Flash Image
On Windows you can flash the firmware with
Or on Linux
Should take it a couple of minutes to complete.
Next we can lock bootloader with
fastboot flashing lock
You will need to confirm the lock on your phone.
Note: Some of these notes were saved in a draft and going off of memory. May not be entirely complete.
Basic steps to flash the factory Android image back onto a Google Pixel 1
- Boot into the boot menu.
- Select recovery
- Select Apply update from ADB
- Sideload the OTA image downloaded below
- Reboot and resetup
Downloading OTA image
You can download the full OTA image from
Enable developer options By going to
Settings > System > About Phone > Developer options (Tap 7 times)
Enable OEM unlock in Developer settings
Reboot into recovery
If your one Verizon you may need to go through a couple extra steps to get the oem unlock to show up in the developer settings. More info here
Boot into twrp
fastboot img twrp.iso
Select the option in TWRP to sideload and sideload the Lineage iso
adb sideload lineage
Reboot install GAPPS
adb sideload gapps.zip
Just some notes on trying to install LineageOS on Google Pixel.
Basic install steps
- Unlock bootloader
- Boot into TWRP
- Wipe System and format
- Push LineageOS zip via adb (or other methods)
- Install LineageOS zip
- (Optional) Reboot back into TWRP and install Gapps
- Reboot (should boot into Lineage. If not, try changing a/b)
Lineage 15 Official
Install guide is here. Here are some extra notes.
Google Recovery Images (Helpful if you didn’t create a backup…) https://developers.google.com/android/images
LineageOS Download link
Lineage OS 16 Unofficial
ADB and fastboot should be in the following directory. May need to install them if they are not.
Boot TWRP image using fastboot. Run from the bootloader menu, should automatically load.
fastboot boot twrp.img
Seems like there can be some issues with the Pixel and it swapping A/B on boot. You can use TWRP to reboot into A or B, or set it with fastboot
Apparently a/b devices will show up as no os installed in TWRP
TWRP says no OS installed, system boot loops from LineageOS
Backup and restore
You can use adb to create a backup of your phone. Not sure what all it backs up. Once restored pictures, background, and other files seem to be there.
adb backup -apk -shared -all -f \Path\to\folder\backup_name.ab
Restore backup with
adb restore \Path\to\folder\backup_name.ab