Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 787 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 787 Bytes

Update your rooted Pixel with the latest OTA (while tethered to a PC)

Normally, OTA updates don't work anymore when you're rooted.

This is a simple script to run from a Linux (or WSL2 under Windows) with your phone connected to update your Pixel 5 to the latest OTA and also patch in Magisk to preserve root all in one go.

The idea is to make updating to the monthly security patches as painless while maintaining root!

To use:

Change the export ANDROID_SDK variable in update.sh and then just run it!

It will:

  • clone and compile latest magisk
  • get latest OTA zip from google
  • extract all to temp folder
  • replace -w command so you don't wipe your data
  • put device into fastboot mode
  • execute commands to replace firmware
  • patch boot.img
  • flash boot.img
  • reboot phone