How to change / update / repair firmware in Google Pixel / Pixel XL / Pixel 2 / Pixel 2 XL phone?

Necessary Drivers and Tools

  1. Mini ADB & Fastboot with Drivers
  2. Download necessary Google Pixel Phone firmware.

Install Necessary Drivers and Tools

  1. Unpack Mini ADB & Fastboot with Drivers file and install both.
  2. Unpack Google Pixel phone firmware that you downloaded before.

Downloading Necessary Firmware

  1. Go to the Google factory image page and download latest firmware version for your Google Pixel phone.

WARNING!
Changing firmware in the phone will erase all of your data.
All described operations you are doing at your own risk.
If want saves your data do a backup before start.

Firmware Update / Change / Repair in Google Phone

  1. Launch the command line with admin rights.
  2. Start the device in fastboot mode.Hard Reset your device
  3. Connect your device to your computer over USB cable.
  4. If necessary, unlock the device's bootloader using one of the following methods:
    • fastboot flashing unlock
    For Pixel 2: To flash the bootloader, Pixel 2's bootloader must be updated to at least Oreo MR1's version first. This may be done by applying an over-the-air (OTA) update or sideloading a full OTA.
    For Pixel 2 XL only with loader version prior to TMZ20a: the critical partitions may also need to be unlocked before flashing.
    The unlock can be performed with this command, and should NOT be done on other devices:
    • fastboot flashing unlock_critical
    The target device will show you a confirmation screen.
    (This erases all data on the target device.)
  5. Open a terminal and navigate to the unzipped system image directory.
  6. Execute the flash-all script. This script installs the necessary bootloader, baseband firmware(s), and operating system.
  7. Once the script finishes, your device reboots. You should now lock the bootloader for security if not need then that all. Congratulations.

Bootloader Locking in phone

By Wojtek Góralczyk on Sep 12, 2018