How to Restore the Stock Recovery on the Pixel 2 and Pixel 2 XL

With the introduction of the dual partition system, restoring the recovery (after you have installed a custom recovery) isn’t as straightforward as it used to be. Still, the process is quite easy and so this tutorial will show you how to flash the original recovery back on your Pixel 2 smartphone.

The dual partition system that Google (and few other OEMs) have been using on their Android smartphone has created a hurdle for not only community developers, but also enthusiasts who want to tinker with their device. Before, if we wanted to restore the stock recovery then we just needed to grab the recovery.img file and flash it to the recovery partition.

This isn’t how things work on the Pixel 2 and the Pixel 2 XL but there is a way to grab the file we need and flash the stock recovery back to our smartphone.

This is a tutorial that you would want to follow if you have installed a custom recovery so that you can create Nandroid backups, flash various mods, flash a custom kernel or even gaining root access. Naturally, modifying the recovery file prevents you from accepting an OTA update so the goal is to restore everything to how it was so that you can accept that OTA update. While I can’t know what other mods you have installed, if you can undo those changes and revert back to the Pixel 2 stock recovery then you can accept those official OTA updates again.

Pixel 2 Restore Stock Recovery

  1. Download the same version of Android you have from Google
  2. Extract the contents of that ZIP file
  3. Go into the folder that it extracts and then extract the contents of the second ZIP file
  4. You should see a boot.img extracted from that second ZIP file
  5. Copy/move the boot.img file to the same folder as your ADB and Fastboot tools are in
  6. Launch a Command Prompt (or Windows Powershell) from that folder
  7. Boot the Pixel 2 into Fastboot Mode
  8. Connect a USB cable from the Pixel 2 to the PC
  9. Type the following command. . .
  10. fastboot flash boot_a boot.img
  11. And press Enter on the keyboard
  12. Wait a few seconds for it to complete
  13. Then type out this second command. . .
  14. fastboot flash boot_b boot.img
  15. And again, press Enter on the keyboard.
  16. Now reboot back into Android and you will be using the stock recovery file

Explanation

For years we have installed various mods on our Android devices by flashing a ZIP file in a custom recovery. This includes Magisk, SuperSU, Xposed Framework, custom ROMs, custom kernels, and many small UI tweaks from the developer community. But even if you haven’t installed any of those, just having TWRP installed as your custom recovery will prevent you from accepting an official OTA update from Google.

Again, I have no way of knowing what you have modded in your Android install with TWRP, but I can show you how to restore the stock recovery image. Your goal will be to undo any changes that you have made in the past and your final step to completing this is to restore the stock recovery. The way Google handles the Pixel 2 and the Pixel 2 XL, there isn’t a simple recovery.img file backed in the factory images of the latest Android update. The recovery is actually combined into the boot.img so we’ll be doing that as detailed in the guide above.

Pixel 2 Restore Stock Kernel Success
Make sure you flash the boot.img file to both of the boot partitions on the Pixel 2 and Pixel 2 XL.

So to begin, we need to visit the website linked in Step 1 of the guide above. From here, you will need to find your device and then match up the build/firmware versions so you can download the sama version of Android you’re currently running. Extract this ZIP file and then extract the second ZIP to find the stock boot.img file that we need. This is where we move or copy the boot image file to the same folder as our ADB and Fastboot tools are in.

From here, boot the Pixel 2 or Pixel 2 XL into Fastboot Mode and then connect a USB cable to it from the PC. Now launch a Command Prompt or Windows Powershell in the same folder as these ADB/boot.img files and execute the command in Step 10 of the guide. After a few seconds you should get a couple of OKAY messages and then you can execute the command in Step 14 of the guide. With that done, we have restore the stock recovery image to both boot partitions (a and b) and can restart the phone back into Android.

Assuming you haven’t made any other changes to Android, you should now be able to accept that official OTA update. Once the OTA update is installed, you can then load up TWRP again, install Magisk or SuperSU and go back to the modded version of Android that you prefer.

Total
0
Shares
1 comment
  1. They may have made it more difficult, but it was a change that many of us were eagerly awaiting. Updates now go to the standby side. If, and only if, the update completes successfully, the standby side becomes the active side. No more failed updates that brick the phone.

    All in all, I’d say that’s a good thing.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How to Lock the OnePlus 7 Pro Display at 90Hz

Next Post

How to Install ADB and Fastboot on Linux

Related Posts