Skip to content

Easily update Pixel 5 to latest OTA while preserving root with Magisk

Notifications You must be signed in to change notification settings

yasscaleb/pixel-update-with-magisk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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

About

Easily update Pixel 5 to latest OTA while preserving root with Magisk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%