UPDATING Pixel 5 Factory Image & Re-Rooting

Search This thread

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
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)
 
Last edited:

l7777

Senior Member
May 2, 2007
563
185
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.
 
Last edited:

zeepzorp

Member
Nov 25, 2009
15
6
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.
 

hamooz92

Member
Jan 19, 2018
21
10
Thanks for the instructions. I was able to re-root the device, but I couldn't pass SafetyNet Attestation.
My P5 has updated to: 11.0.0 (RQ1A.210105.003, Jan 2021)

I used MagiskHide Props Config (updated) method. which is:
#su
#props
#1 (edit device fingerprint)
#f (Pick a certified finger print)
#7 (google)
#20 (pixel 3a)
#3 (Android version 11)
#y (restart)

The devices rebooted but still, no SafetyNet pass.
 

l7777

Senior Member
May 2, 2007
563
185
Thanks for the instructions. I was able to re-root the device, but I couldn't pass SafetyNet Attestation.
My P5 has updated to: 11.0.0 (RQ1A.210105.003, Jan 2021)

I used MagiskHide Props Config (updated) method. which is:
#su
#props
#1 (edit device fingerprint)
#f (Pick a certified finger print)
#7 (google)
#20 (pixel 3a)
#3 (Android version 11)
#y (restart)

The devices rebooted but still, no SafetyNet pass.
Altering the model prop doesn't work for safety net any longer. There is a safetynet-fix magisk module you can use.
 
  • Like
Reactions: sd_shadow

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
I have also flashed Universal SafetyNet Fix but no luck


I just flashed the safety net fix myself and it worked like a charm.

I also left the magisk config prop module installed (just because)

Are all your other Magisk settings in order (magisk hide, checking all the boxes under GooglePlay , etc.)?
 
  • Like
Reactions: sd_shadow

narf0815

Member
Feb 10, 2013
17
1
Download the factory image for your current software version.
current build number is RD1A.200810.021.A1
Download the OTA image for the version you're updating to.
one the ota site there's only one "EU carrier" images different than the current one: RD1A.201105.003.B1 (NOV 2020). should i use this one or can i also use the this one f.e. RQ2A.210305.006 (nothing specified):unsure:
 

tlxxxsracer

Senior Member
Jul 28, 2010
1,535
421
San Jose
You may find my video helpfu too but it more pertains to installing the DP1 for Android 12, but the update process is practically the same.. For rooting Android 12, it seems we need to disable verity/verification of boot images, otherwise flashing a modified boot img will just boot immediately to fastboot again.
 

l7777

Senior Member
May 2, 2007
563
185
current build number is RD1A.200810.021.A1

one the ota site there's only one "EU carrier" images different than the current one: RD1A.201105.003.B1 (NOV 2020). should i use this one or can i also use the this one f.e. RQ2A.210305.006 (nothing specified):unsure:
In your case yes I'd probably use RQ2A.210305.006.
 

dhrv

Member
Dec 23, 2011
43
11
Thank you. Well-written, just a few minor corrections.

Thanks, updated the original.

Thank you, l7777 and zeepzorp. This is also the way I would have done it. Out of curiosity and to reduce manual steps in between, would it work to restore the original boot.img to unroot and then use the normal OTA updates inside Android? Without a spare phone or a TWRP backup I hesitate to try this.

Also, when following the manual update steps, is it safe to skip versions in between, e.g. update directly from January to March versions? In my past 10 years of manually updating ROMs I have never used any OTA update functionality from inside Android and I noticed that the OTA update process, which was performed in mid January 2021 when unpacking the phone, updated the ROM in the following order, each separated by reboots in between:
  • Shipped version: 11.0.0 (RD1A.200810.021.A1, Oct 2020, EU carriers)
  • 1st OTA update: 11.0.0 (RQ1A.201205.011, Dec 2020, All carriers except AT&T and Verizon)
  • 2nd OTA update and at that time current version: 11.0.0 (RQ1A.210105.003, Jan 2021)

Why did it not skip the version in between and directly update to the January version?
 
Last edited:

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
Thank you, l7777 and zeepzorp. This is also the way I would have done it. Out of curiosity and to reduce manual steps in between, would it work to restore the original boot.img to unroot and then use the normal OTA updates inside Android? Without a spare phone or a TWRP backup I hesitate to try this.

Also, when following the manual update steps, is it safe to skip versions in between, e.g. update directly from January to March versions? In my past 10 years of manually updating ROMs I have never used any OTA update functionality from inside Android and I noticed that the OTA update process, which was performed in mid January 2021 when unpacking the phone, updated the ROM in the following order, each separated by reboots in between:
  • Shipped version: 11.0.0 (RD1A.200810.021.A1, Oct 2020, EU carriers)
  • 1st OTA update: 11.0.0 (RQ1A.201205.011, Dec 2020, All carriers except AT&T and Verizon)
  • 2nd OTA update and at that time current version: 11.0.0 (RQ1A.210105.003, Jan 2021)

Why did it not skip the version in between and directly update to the January version?

As far as skipping monthly updates, I only update every other month (unless there's a massive update for security) and I've had zero issues. Just updated to March from January, no problems.
 
  • Like
Reactions: sd_shadow

philharmon

New member
Mar 18, 2021
1
0
I'm having a hard time understanding your instructions. I apologize in advance but, could I get a more detailed list of instructions?
 

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member

l7777

Senior Member
May 2, 2007
563
185
Follow these instructions, they're pretty much step for step.

https://android.gadgethacks.com/how...ide-for-beginners-intermediate-users-0348101/


They're included in my OP (hyperlinked) as well.

If you have a specific question, just ask!
Be warned, nothing after step 20 in that guide is valid any longer. Passing safetynet requires a different magisk module.
 

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
Be warned, nothing after step 20 in that guide is valid any longer. Passing safetynet requires a different magisk module.
Which is why the following warning has been written in the OP since Feb 2021:

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.
 

l7777

Senior Member
May 2, 2007
563
185
Which is why the following warning has been written in the OP since Feb 2021:

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.
That assumes that people read the OP. :eek:
Has anyone tried the Pixel update and software repair tool
to go from Android 10 to 11?
Then modify the boot image with Magisk and fastbooting that?

ƒ
It will almost certainly perform a factory reset in the process.
 

madmack

Senior Member
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.
 

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.