Rooting a Pixel 5 With Magisk

Download the platform tools and save it to your desktop:

  1. Go to Settings
  2. Scroll down to “About phone”
  3. Repeatedly click “Build Number” to turn on Developer mode
  4. Go back and select “System”
  5. Click on “Advanced”
  6. Open “Developer Options”
  7. Enable “OEM Unlocking” & “USB Debugging”
  8. Power off your phone, then hold the volume down + power button together to power on the device
  9. Connect your device to your computer using a USB cable
  10. Open the command prompt and navigate to the Platform-Tools folder you downloaded. Enter the following command:
    • fastboot flashing unlock
  11. Go back to the Android device and press down on the volume button once to change the screen to say unlock bootloader
  12. Now press the power button to unlock the bootloader if it says start. (If it does not say start, select the volume button up or down until it does)
  13. The phone is now wiped, and you will need to set it up again
  14. After setting up, go to settings -> about phone -> build number
  15. Go to the website and download the corresponding image:
  16. Extract the files and move the boot.img to the platform-tools folder
  17. Make sure you have file transfer turned on (on the Android device, go to setting-> connected devices->USB->file transfer)
  18. Open the internal Android files folder on your computer and move the boot.img folder to the phones downloads
  19. Download Magisk on your computer
  20. Move the Magisk file into the internal Android “Download Folder”
  21. Go to the Downloads folder on your Android device and install Magisk
  22. Open Magisk and click install:
    • Select and patch a file
    • Select the boot.img file
  23. Go into the Android downloads folder and move the magisk_patched.img file onto your computer. (Unplug the USB if the file isn’t displayed)
  24. Power off your phone, then hold the volume down + power button together
  25. Go back to your computer command line and type:
    • Flash boot magisk_patch.img
  26. Reboot the device
  27. The device is rooted!