UPDATING Pixel 5 Factory Image & Re-Rooting

Search This thread

V0latyle

Forum Moderator
Staff member
Android 11, I used fastboot update. Not the same as OTA. :(
That's most likely why. You cannot dirty flash the factory image coming from a previous version of Android. If you had updated using the OTA, you would be fine.

Please refer to my guide here.

What I would do in your situation, since you've already wiped, is use the Android Flash Tool, force flash all partitions, but make sure you disable verity and verification. Then, flash your patched boot image and you should be good to go.
 

ZeoFateX

Member
Apr 5, 2011
21
9
Google Pixel 5
That's most likely why. You cannot dirty flash the factory image coming from a previous version of Android. If you had updated using the OTA, you would be fine.

Please refer to my guide here.

What I would do in your situation, since you've already wiped, is use the Android Flash Tool, force flash all partitions, but make sure you disable verity and verification. Then, flash your patched boot image and you should be good to go.
Yeahhhh that's where I'm at now. Thank you!

Edit: Worked fine after I factory reset, then wiped again using the flash method in the guide with verity/verification disabled. Root is no problem, just having issues with attestation now which I'm sure will be worked out.

Thanks!
 
Last edited:
  • Like
Reactions: V0latyle

V0latyle

Forum Moderator
Staff member
Yeahhhh that's where I'm at now. Thank you!

Edit: Worked fine after I factory reset, then wiped again using the flash method in the guide with verity/verification disabled. Root is no problem, just having issues with attestation now which I'm sure will be worked out.

Thanks!
I had no problem with hardware attestation using MagiskHide and the Universal SafetyNet Fix - no other modules except MagiskHide Props Config (automatically installed), Riru, Universal SafetyNet Fix, and Systemless Hosts (for AdAway).

Enabled MagiskHide for ALL components of:
- Google Play Services
- Google Play Store
- Google Services Framework
- GPay
 

nogods

Senior Member
Dec 10, 2014
87
17
Just sharing how I do it in case someone is interested in a shorter path:

1. Download the new full factory image
2. Extract the file. Then extract boot.img from the image zip file within.
3. Copy boot.img to your pixel 5
4. Patch it with magisk
5. Move back the patched file, rename it to boot.img
6. Update the original zip file titled image-redfin-r*.zip with the new boot.img file (override the older one)
7. Edit flash-all file by removing -w so it won't wipe your device clean
8. Flash with flash-all

No need to unroot and reroot.
does that preserve apps and data?
 
  • Like
Reactions: Az Biker

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Why This Thread?

    I have seen several questions on the process for updating a rooted Pixel 5, since the existing guides only explain the unlock and initial rooting, I thought I'd throw together a quick HOW TO on UPDATING and Re-Rooting for anyone who might still be uncertain about "update" procedures, I've followed thie below method twice now with no issues at all,> None of my data was lost and I kept my EX kernel!.

    If You Want To Unlock Your Bootloader and Root Your Pixel 5:

    This guide takes you step by step through bootloader unlock, using magic to patch the boot image and get your device rooted.

    If You're Already Unlocked & Rooted, and Want To Update The Factory Image And Re-Root:

    If you're already rooted and want to update to the next factory image, just follow the standard update factory image routine for the Pixel series of devices, then following the below:

    After extracting the primary factory zip, and the secondary zip that is created from the first extraction (all done within the platform tools folder with the fastboot app)

    Edit the FLASH-ALL file.... keep the -w for a clean install that wipes everything, or remove the -w to keep your data.

    This will install the latest factory image and remove root.

    Now, follow these steps here, they're perfect. (these are the same instructions for unlocking bootloader, and initial install of Magisk listed above)

    If you were previously rooted, and just updating the next factory image, you can skip the entire sections on installing and hiding Magisk manager in the above instructions, (these settings remained in Magisk Manager when I did this).

    And you're done!

    KNOWN ISSUE:
    * * * MagiskHide Props Config IS NO LONGER WORKING * * *

    Please follow THIS LINK for the Universal Safetynet Fix that replaces the MagiskHide Props Config process.

    If you know an easier, shorter, more efficient, or UPDATED method, please share it and I'll make the necessary corrections/adjustments (y)
    5
    My method is updating via the OTA packages. Similar to using the factory image but no editing of files.

    1. Download the factory image for your current software version.
    2. Extract the boot.img from #1
    3. Download the factory image of the version you're updating to.
    4. Download the OTA image for the version you're updating to.
    5. Turn off magisk modules
    6. Apply the boot.img from step #2 (I save this from my previous update so I can skip steps 1 & 2 above.)
      1. adb reboot bootloader
      2. fastboot flash boot "path to boot.img"
      3. fastboot reboot (this is a sanity check to make sure things are normal. The phone should be normal and without root. It can be skipped if you wish, simply use the fastboot menu on the phone and boot to recovery skipping steps 4 & 5.)
      4. Sanity check phone
      5. adb reboot recovery
    7. Once in recovery hold the power button and click volume up
    8. Use the volume keys to highlight "Apply update from ADB"
    9. Click the power button.
    10. On your computer run: adb sideload "path to #4" and wait for it to finish. You'll get status on the adb command and on the phone.
    11. Once finished restart the phone and let it finish the update.
    12. Your phone is now updated but without root.
    13. Extract boot.img from #3 above.
    14. Copy it to the phone
    15. Open magisk manager and patch the boot.img you just copied
    16. Copy the patched boot.img file created by magisk manager back to your computer
    17. Apply this file using fastboot
      1. adb reboot bootloader
      2. fastboot flash boot "path to patched boot.img"
      3. fastboot reboot
    18. Turn on your magisk modules and test
    19. You can now delete 1, 3, & 4. I save #12 for the next update. This eliminates the need for 1 & 2.
    20. You should now have an updated rooted device.
    5
    Just sharing how I do it in case someone is interested in a shorter path:

    1. Download the new full factory image
    2. Extract the file. Then extract boot.img from the image zip file within.
    3. Copy boot.img to your pixel 5
    4. Patch it with magisk
    5. Move back the patched file, rename it to boot.img
    6. Update the original zip file titled image-redfin-r*.zip with the new boot.img file (override the older one)
    7. Edit flash-all file by removing -w so it won't wipe your device clean
    8. Flash with flash-all

    No need to unroot and reroot.
    3
    My method is updating via the OTA packages. Similar to using the factory image but no editing of files.

    1. Download the factory image for your current software version.
    2. Extract the boot.img from #1
    3. Download the factory image of the version you're updating to.
    4. Download the OTA image for the version you're updating to.
    5. Apply the boot.img from step #2 (I save this from my previous update so I can skip steps 1 & 2 above.)
      1. adb reboot bootloader
      2. fastboot flash boot "path to boot.img"
      3. fastboot reboot (this is a sanity check to make sure things are normal. The phone should be normal and without root. It can be skipped if you wish, simply use the fastboot menu on the phone and boot to recovery skipping steps 4 & 5.)
      4. Sanity check phone
      5. adb reboot recovery
    6. Once in recovery hold the power button and click volume up
    7. Use the volume keys to highlight "Apply update from ADB"
    8. Click the power button.
    9. On your computer run: adb sideload "path to #3" and wait for it to finish. You'll get status on the adb command and on the phone.
    10. Once finished restart the phone and let it finish the update.
    11. Your phone is now updated but without root.
    12. Extract boot.img from #2 above.
    13. Copy it to the phone
    14. Open magisk manager and patch the boot.img you just copied
    15. Copy the patched boot.img file created by magisk manager back to your computer
    16. Apply this file using fastboot
      1. adb reboot bootloader
      2. fastboot flash "path to patched boot.img"
      3. fastboot reboot
    17. You can now delete 1, 3, & 4. I save #12 for the next update. This eliminates the need for 1 & 2.
    18. You should now have an updated rooted device.

    Thank you. Well-written, just a few minor corrections.
    1. Download the factory image for your current software version.
    2. Extract the boot.img from #1
    3. Download the factory image of the version you're updating to.
    4. Download the OTA image for the version you're updating to.
    5. Apply the boot.img from step #2 (I save this from my previous update so I can skip steps 1 & 2 above.)
      1. adb reboot bootloader
      2. fastboot flash boot "path to boot.img"
      3. fastboot reboot (this is a sanity check to make sure things are normal. The phone should be normal and without root. It can be skipped if you wish, simply use the fastboot menu on the phone and boot to recovery skipping steps 4 & 5.)
      4. Sanity check phone
      5. adb reboot recovery
    6. Once in recovery hold the power button and click volume up
    7. Use the volume keys to highlight "Apply update from ADB"
    8. Click the power button.
    9. On your computer run: adb sideload "path to #4" and wait for it to finish. You'll get status on the adb command and on the phone.
    10. Once finished restart the phone and let it finish the update.
    11. Your phone is now updated but without root.
    12. Extract boot.img from #2 above.
    13. Copy it to the phone
    14. Open magisk manager and patch the boot.img you just copied
    15. Copy the patched boot.img file created by magisk manager back to your computer
    16. Apply this file using fastboot
      1. adb reboot bootloader
      2. fastboot flash boot "path to patched boot.img"
      3. fastboot reboot
    17. You can now delete 1, 3, & 4. I save #12 for the next update. This eliminates the need for 1 & 2.
    18. You should now have an updated rooted device.
    2
    Thank you. Well-written, just a few minor corrections.
    Thanks, updated the original.