[Guide] [December 6, 2023] Root Pixel 5 Unlock Bootloader + Pass SafetyNet + Both Slots Bootable + More

Search This thread

elong7681

Senior Member
Link: click this icon View attachment 5437537 when you're typing a message, paste the link into the URL space, and name the link whatever you want using the Text space.

To use code blocks, there are a couple ways to do it:
The simplest is to click the More icon View attachment 5437539 next to Font Size, then click Inline Code (second icon from the right, looks like View attachment 5437543 and type the code between what pops up.

The slightly harder way is to use the code blocks yourself:

[code] type code here [/code]
And in case you're curious here's the difference
This is Inline Code
Code:
This is standard code
Thank you for your help I really appreciate it!
 
  • Like
Reactions: V0latyle

badabing2003

Recognized Contributor
Sep 17, 2012
4,931
9,138
Just so I get this right,
I'm currently on Android 11 and rooted, and I want to move to Android 12 and root it.

Is there a path even with a temporary live boot? without having to wipe? is I absolutely need to wipe?

I see this
> You are still on Android 11, you want to upgrade to Android 12 and root it.
> Flash Android 12 factory image with an edited flash-all.bat file that disables verity, disables verification, and wipes the phone: Post in thread [GUIDE] Update to and Re-Root Android 12 **READ THE NOTES**' https://xdaforums.com/t/...droid-12-read-the-notes.4345627/post-85805653

Which only suggests that I need to wipe.

Can I do the following?
Remove root from my current Android
Get the OTA update for Android 12? this will assure that I keep my data
Then do the Temporary live boot a magisk patched image with `--disable-verity --disable-verification` ?

Thanks
 

elong7681

Senior Member
Just so I get this right,
I'm currently on Android 11 and rooted, and I want to move to Android 12 and root it.

Is there a path even with a temporary live boot? without having to wipe? is I absolutely need to wipe?

I see this
> You are still on Android 11, you want to upgrade to Android 12 and root it.
> Flash Android 12 factory image with an edited flash-all.bat file that disables verity, disables verification, and wipes the phone: Post in thread [GUIDE] Update to and Re-Root Android 12 **READ THE NOTES**' https://xdaforums.com/t/...droid-12-read-the-notes.4345627/post-85805653

Which only suggests that I need to wipe.

Can I do the following?
Remove root from my current Android
Get the OTA update for Android 12? this will assure that I keep my data
Then do the Temporary live boot a magisk patched image with `--disable-verity --disable-verification` ?

Thanks
https://xdaforums.com/t/guide-upgrade-beta-to-android-12-keep-root-and-data-no-wipe.4350835/
 

Homeboy76

Recognized Contributor
Aug 24, 2012
4,200
2,729
Google Pixel 8 Pro
Just so I get this right,
I'm currently on Android 11 and rooted, and I want to move to Android 12 and root it.

Is there a path even with a temporary live boot? without having to wipe? is I absolutely need to wipe?

I see this
> You are still on Android 11, you want to upgrade to Android 12 and root it.
> Flash Android 12 factory image with an edited flash-all.bat file that disables verity, disables verification, and wipes the phone: Post in thread [GUIDE] Update to and Re-Root Android 12 **READ THE NOTES**' https://xdaforums.com/t/...droid-12-read-the-notes.4345627/post-85805653

Which only suggests that I need to wipe.

Can I do the following?
Remove root from my current Android
Get the OTA update for Android 12? this will assure that I keep my data
Then do the Temporary live boot a magisk patched image with `--disable-verity --disable-verification` ?

Thanks
Yes, you can do the "do the following"

Temporaily live boot a magisk_ patched.img: Post in thread '[GUIDE] Update to and Re-Root Android 12 **READ THE NOTES**' https://xdaforums.com/t/...droid-12-read-the-notes.4345627/post-85811561
 

badabing2003

Recognized Contributor
Sep 17, 2012
4,931
9,138
I'm not sure what you're trying to tell me, you just provided a link.
Are you trying to warn me not to update to 12 with OTA?
Or are you telling me how I would get to 12 rooted without wiping?

If it is the former, then Roger Roger, and thank you.
I read this part, though no explanation as to why that is bad.
> DO NOT take the OTA directly from your phone's System Upgrade settings item.

If it is the latter, then I fail to see how that would work for me.
I see this part
> This assumes you already wiped your phone once going from 11 to the 12 beta!

BB
 

badabing2003

Recognized Contributor
Sep 17, 2012
4,931
9,138
Yes, you can do the "do the following"

Temporaily live boot a magisk_ patched.img: Post in thread '[GUIDE] Update to and Re-Root Android 12 **READ THE NOTES**' https://xdaforums.com/t/...droid-12-read-the-notes.4345627/post-85811561
Thanks

So It doesn't matter how I get to 12? either flashing the 12 factory image or taking the OTA? (Is there a preferred way?)
Then it is same old same old `fastboot boot patched_boot.img` except that it would be a temporary root?
By temporary, does it mean it does not survive a reboot?
If I reboot, it would just be unrooted 12 or it would not boot anymore?

Sorry if I'm asking too many questions, just trying to be safe and not do the wrong things, wiping is really not an option for me at this stage.

Thanks
BB
 

Homeboy76

Recognized Contributor
Aug 24, 2012
4,200
2,729
Google Pixel 8 Pro
Thanks

So It doesn't matter how I get to 12? either flashing the 12 factory image or taking the OTA? (Is there a preferred way?)
Then it is same old same old `fastboot boot patched_boot.img` except that it would be a temporary root?
By temporary, does it mean it does not survive a reboot?
If I reboot, it would just be unrooted 12 or it would not boot anymore?

Sorry if I'm asking too many questions, just trying to be safe and not do the wrong things, wiping is really not an option for me at this stage.

Thanks
BB

...preferred way?
In my opinion this is the preferred way to get Android 12 and root:
- Flash the factory image with a modified flash-all.bat file.
* Change this line:
fastboot -w update image-bramble-sp1a.210812.015.zip
* To this:
fastboot --disable-verity --disable-verification -w update image-bramble-sp1a.210812.015.zip

Yes it is a PITA because it wipes your phone and you will spend some time setting it up again.

It is worth every minute. Why?
- You may have apps that are not compatible with Android 12 and sooner or later they will cause problems.
- You could brick your phone using other methods.

...temporary root?
Means root does not survive a reboot.

So make time to backup all the data you want to keep: pictures, documents, etc.

Then make time to install Android 12 the preferred way. :)

Also, read this Guide. It list all the ways to upgrade to Android 12. Then decide how you want to upgrade. :)
 
Last edited:
  • Like
Reactions: badabing2003

V0latyle

Forum Moderator
Staff member
...preferred way?
In my opinion this is the preferred way to get Android 12 and root:
- Flash the factory image with a modified flash-all.bat file.
* Change this line:
fastboot -w update image-bramble-sp1a.210812.015.zip
* To this:
fastboot --disable-verity --disable-verification -w update image-bramble-sp1a.210812.015.zip

Yes it is a PITA because it wipes your phone and you will spend some time setting it up again.

It is worth every minute. Why?
- You may have apps that are not compatible with Android 12 and sooner or later they will cause problems.
- You could brick your phone using other methods.

...temporary root?
Means root does not survive a reboot.

So make time to backup all the data you want to keep: pictures, documents, etc.

Then make time to install Android 12 the preferred way. :)

Also, read this Guide. It list all the ways to upgrade to Android 12. Then decide how you want to upgrade. :)
I would agree that a data wipe is generally advisable when upgrading to a completely new OS version.

However, for inexperienced users, I would point them to the Android Flash Tool as it is pretty much foolproof. Bricking our phones rarely happens by accident; you have to be pretty deliberately careless, and the only case in which you'd be unable to recover your phone yourself is if you screw up the bootloader.

Speaking of, your method using ADB and/or the batch file does not update bootloader or radio. I would highly recommend that anyone updating from A11 do so.

If you can, in the OP of your guide, please link the Magisk builds you have mentioned.
 

Homeboy76

Recognized Contributor
Aug 24, 2012
4,200
2,729
Google Pixel 8 Pro
I would agree that a data wipe is generally advisable when upgrading to a completely new OS version.

However, for inexperienced users, I would point them to the Android Flash Tool as it is pretty much foolproof. Bricking our phones rarely happens by accident; you have to be pretty deliberately careless, and the only case in which you'd be unable to recover your phone yourself is if you screw up the bootloader.

Speaking of, your method using ADB and/or the batch file does not update bootloader or radio. I would highly recommend that anyone updating from A11 do so.

If you can, in the OP of your guide, please link the Magisk builds you have mentioned.
I think it does flash the bootloader and radio:
- Flash the factory image with a modified flash-all.bat file.
* Change this line:
fastboot -w update image-bramble-sp1a.210812.015.zip
* To this:
fastboot --disable-verity --disable-verification -w update image-bramble-sp1a.210812.015.zip

I pointed them to your thread so they could decide what method of upgrading they would use. :)
- Also, read this Also, read this Guide. It list all the ways to upgrade to Android 12. Then decide how you want to upgrade.

The Magisk apps links are in the OP, 7. Root/Reroot with Magisk and Pass SafetyNet, Download files: :)
 
Last edited:
  • Like
Reactions: V0latyle

V0latyle

Forum Moderator
Staff member
I think it does flash the bootloader and radio:
- Flash the factory image with a modified flash-all.bat file.
* Change this line:
fastboot -w update image-bramble-sp1a.210812.015.zip
* To this:
fastboot --disable-verity --disable-verification -w update image-bramble-sp1a.210812.015.zip

I pointed them to your thread so they could decide what method of upgrading they would use. :)
- Also, read this Also, read this Guide. It list all the ways to upgrade to Android 12. Then decide how you want to upgrade.

The Magisk apps links are in the OP, 7. Root/Reroot with Magisk and Pass SafetyNet, Download files: :)
Oh yep, you're correct, I was thinking of it as just applying the system image, but the batch file does update bootloader and radio. My mistake.

As for the files, it can be helpful to some people to link them at the beginning of the post where listed so that users can grab everything they need at once. Just my $0.02.

Also, since Magisk 23010 uses Zygisk and DenyList, the process is a bit different; it does not require Riru or the Universal SafetyNet Fix:
So Magisk Canary was released yesterday:

Magisk 23010

Someone who is temp rooting want to patch their boot image with this and see what happens?

Also, Magisk Hide is no longer, so here's what you have to do to pass Safetynet (the check is no longer in Magisk so you'll have to use an external app)

In Magisk:
Remove Universal Safetynet Fix and Riru, if you have them installed, Reboot.
Launch Magisk again
Settings > Magisk:
Enable Zygisk
Enable Enforce Denylist
Enable for Google Play Services components: (I just enabled for all subcomponents)
com.google.android.gms
com.google.android.gms.unstable

That should be enough to pass Safetynet. Don't forget to hide other apps such as banking, GPay, DRM (Netflix, Amazon Prime Video, etc)
 
Last edited:
  • Like
Reactions: Homeboy76

Homeboy76

Recognized Contributor
Aug 24, 2012
4,200
2,729
Google Pixel 8 Pro
Oh yep, you're correct, I was thinking of it as just applying the system image, but the batch file does update bootloader and radio. My mistake.

As for the files, it can be helpful to some people to link them at the beginning of the post where listed so that users can grab everything they need at once. Just my $0.02.

Also, since Magisk 23010 uses Zygisk and DenyList, the process is a bit different; it does not require Riru or the Universal SafetyNet Fix:

Thanks for the information. :)
 
  • Like
Reactions: V0latyle

V0latyle

Forum Moderator
Staff member
An excellent point that was brought up from a Pixel 6 user:

Data wipe is required for permanent root after upgrading to Android 12. That much we know.

But what about a device that had an original clean install of Android 12?

Who here wiped when upgrading to Android 12, and did not reflash vbmeta until AFTER you set up your device?
Basically, we need to determine if it matters when you flash vbmeta. Here's what needs to be tested:
- Factory flash Android 12 with a wipe; do NOT disable verity and verification
- Set up and use your device
- After everything is set up (download all your apps) attempt to reflash vbmeta with verity and verification disabled, as well as a patched boot image.

If this is successful, this means we shouldn't have to wipe every time we take a monthly update.
 
Last edited:

nico22320

Member
Oct 25, 2020
46
2
Basically, we need to determine if it matters when you flash vbmeta. Here's what needs to be tested:
- Factory flash Android 12 with a wipe; do NOT disable verity and verification
- Set up and use your device
- After everything is set up (download all your apps) attempt to reflash vbmeta with verity and verification disabled, as well as a patched boot image.

If this is successful, this means we shouldn't have to wipe every time we take a monthly update.

Hi, i don't see your post before my update..

I update to Android 12 with wipe and disable verity and vérification.
Reboot, set up device for long Time..
Reboot in fastboot and flash patched boot and perfect Root. No issues

I don't try the New magisk, wait for New beta update.
 
  • Like
Reactions: V0latyle

Homeboy76

Recognized Contributor
Aug 24, 2012
4,200
2,729
Google Pixel 8 Pro
Basically, we need to determine if it matters when you flash vbmeta. Here's what needs to be tested:
- Factory flash Android 12 with a wipe; do NOT disable verity and verification
- Set up and use your device
- After everything is set up (download all your apps) attempt to reflash vbmeta with verity and verification disabled, as well as a patched boot image.

If this is successful, this means we shouldn't have to wipe every time we take a monthly update.
Just to clarify, you are saying if someone can flash the android 12 factory image to the Pixel 4a 5(G) or the Pixel 5 phones[/B] using the steps below it will confirm wiping is not necessary every time we take a monthly update.
  1. Use flash-all.bat file, no modifications, to flash Android 12 factory image.
  2. Setup (download all your apps) and use phone
  3. Attempt to reflash vbmeta with verity and verification disabled:
    fastboot --disable-verity --disable-verification flash --slot=all vbmeta vbmeta.img
  4. Flash the magisk_patched.img:
    fastboot flash boot magisk_patched.img
 
Last edited:

V0latyle

Forum Moderator
Staff member
Just to clarify, you are saying if someone can flash the android 12 factory image using the steps below it will confirm wiping is not necessary every time we take a monthly update.
  1. Use flash-all.bat file no modifications to flash Android 12 factory image.
  2. Setup (download all your apps) and use phone
  3. Attempt to reflash vbmeta with verity and verification disabled:
    fastboot --disable-verity --disable-verification flash --slot=all vbmeta vbmeta.img
  4. Flash the magisk_patched.img:
    fastboot flash boot magisk_patched.img
More or less. I was going to try to reflash vbmeta on my Pixel 5 when I got home yesterday but the tired monster got me.

It won't establish for sure whether we will have to wipe for root with the updates, because every update will have a new vbmeta.img.
 
  • Like
Reactions: Homeboy76

Mostafa_I

Member
Oct 30, 2021
9
2
Hello , i followed the instructions but it still say my device is uncertified and also the safenet failed ...even all the Magisk steps were followed ..any idea please?
 

Mostafa_I

Member
Oct 30, 2021
9
2

Attachments

  • Screenshot_20211104-103304.png
    Screenshot_20211104-103304.png
    135.5 KB · Views: 21

V0latyle

Forum Moderator
Staff member
Hello Sorry for late reply ..it is 23.0
Okay. Using 23001, I was able to get SafetyNet to pass with the following:
  • Use Magisk Hide on Google Play Services and Google Play store (all components)
  • Install Riru
  • Install Universal SafetyNet Fix 2.1.1
I also used MagiskHide on Gpay, all banking and DRM apps, and a couple others that depend on security.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I was going to try KernelSU on my Pixel 5 running A11 a while ago, but I got sidetracked and never got to it. I now want to try either KernelSU or APatch on this device.

    Does anyone have any successful experience getting either KernelSU or APatch to work on the Pixel 5 running A11?

    I want to stick with A11 if possble, because there's a working TWRP version for the Pixel 5 running that OS version, and I do not want to lose nandroid backup/restore capabilities.

    Thank you in advance for any thoughts.
    KernelSU requires a GKI, which I'm sure your A11 is not.
    My A14 Pixel 5 is not.
    That leaves you with APatch
    Last I check it didn't work on my P5
    The readme says: CONFIG_KALLSYMS_ALL=n: Early support
  • 55
    [Guide][November 6, 2023] Root Pixel 5 Unlock Bootloader + Pass SafetyNet + Both Slots Bootable + More
    Android Security Bulletin—November 2023
    Pixel Update Bulletin—November 2023

    Introduction
    This Guide is for Pixel 5 owners that want to Root their phone, and enjoy the benefits of rooting it. The Guide is divided into three parts: Information, Instructions, and Other.

    ~ ~ ~ Part I - INFORMATION ~ ~ ~
    1. Disclaimer

      • I assume no responsibility for the malfunctioning/bricking of your phone.
      • If you choose to use a Custom Kernels, Custom ROM, etc. You should read the Installation Instructions in their thread before using this guide or attempting to install them. Additionally, the order of listed items i.e., Custom Kernels, Custom ROMS, etc. Does not indicate my preference for them. It is your responsibility to do the research before selecting them.
    2. Prerequisites

    3. NEW

      • ...
    4. Update(s)

    5. My Other Guides
    6. Credits/Thanks/Recognitions

      • @topjohnwu - Magisk.
      • @badabing2003 - Creating Pixel Flasher, discovering how to make both slots bootable, and for his many helpful contributions to this thread.
      • @Lughnasadh - for testing badabing2003 make both slots bootable, and his many helpful contributions to this thread.
      • @Shoey - for discovering and testing patching the boot.img using the image...zip file extracted from the Google Factory image file and Magisk.
    ~ ~ ~ Part II - INSTRUCTIONS ~ ~ ~
    (The Instructions listed below are not steps, they are individual sets of instructions for the Pixel 5.)

    1. (NEW) PREVENT/FIX BOOT LOOPS

      • Prevent Boot Loops
        1. Before you patch the init_boot.img: Open the Magisk app and disable all Magisk modules.
          • If you hid the Magisk app, the default name for a hidden Magisk app is settings.
          • If you changed the hidden name to something else and have forgotten it. Use TB checker to find the name of the hidden Magisk Manager:
            1. Open the TB Checker app
            2. Tap Run Xposed check
            3. Scroll down to Magisk Random Package Name: to see Magisk's hidden name.
        2. Check for more than one installation of Magisk app: Use TB Checker
      • Fix Boot Loops
        1. Flash the 'stock' init_boot.img to both slots to remove root: fastboot flash init_boot init_boot.img --slot all
        2. Boot Safe Mode while booting to remove Magisk Modules:
          • When booting, press and hold your phone's volume down button. Keep holding it until the animation ends and your phone starts in safe mode.
          • Then reboot and magisk modules should be disabled. (Thanks @Lughnasadh)
        3. Use adb shell command, to remove Magisk Modules
          • Press the Power button until the phone turns off.
          • Press the Power and Volume Down to boot fastboot mode.
          • Open a Command Prompt in the Platform-tools folder or the folder that has adb.exe and fastboot.exe in it, and type adb wait-for-device shell magisk --remove-modules. When it finishes type fastboot Reboot
    2. Unlock Bootloader/Return Phone to Stock/Lock Bootloader

      • Unlock Bootloader

        1. This will erase all user data from the device!
        2. Backup your data
        3. Activate Developer Options: Tap Settings > About Phone > Tap Build Number 7 times or until you see you are a Developer. Tap back > System > Advanced > Developer Options. Enable OEM Unlock and, USB Debugging.
        4. Boot fastboot mode
        5. Connect the phone to the Computer with USB cord.
        6. Open a Command Prompt on your computer and type fastboot flashing unlock and press enter.
        7. You should see a request for confirmation on your phone, use the volume keys to scroll and the power key to select.
        8. Allow the process to complete and then type fastboot reboot at the Command Prompt and press enter.
        9. When your phone reboots disconnect your usb cable.
          Notes: After unlocking your bootloader, you'll see a warning: The bootloader is unlocked and... You will see this warning until, you relock the bootloader.
          Do not relock your bootloader until you have returned the device to Stock.
      • Return Phone to Stock

        1. Backup your data/Internal storage
        2. Use the Android flash tool:
          select Wipe => Force Flash Partitions => Lock Bootloader.
      • Lock Bootloader

        1. If your phone is not 100 percent stock do Return Phone to Stock. If you don't you may brick your phone.
        2. This will erase all user data from the device!
        3. Boot fastboot mode
        4. Open a Command Prompt and type this at the Prompt: fastboot flashing lock
        5. You should see a request for confirmation on your phone, use the volume keys to scroll and the power key to select.
        6. Allow the process to complete, then type this at the Command Prompt: fastboot reboot
        7. Enable Developer Options: Settings > About phone > Tap Build number 7 times or until you see 'you are a developer'.
        8. Tap Back > Developer options and toggle OEM Unlock off.
    3. Manually Install/Update Factory Image keep data or wipe data

      • Before you start:

        1. If you haven't updated your phones Factory image in a while. It is not necessary to flash all the missed images in succession. Flash the latest Factory image.
        2. If your phone was previously rooted, open Magisk manager and disable all Magisk modules. If you hid the Magisk manager app the default name for the hidden Magisk app is settings.
        3. Always verify you have the latest working version of SDK Platform-Tools installed on your computer.
        4. If you get an errorwhile flashing, try one of these options:
          • Change the USB port to a non charging USB port.
          • Change the USB cord.
          • Change Computers.
        5. If your phone boot loops try one of the following options:
          • Flash the 'stock' init_boot.img to both slots to remove root: fastboot flash init_boot init_boot.img --slot all
          • Boot Safe Mode while booting to remove Magisk Modules
            1. When booting, press and hold your phone's volume down button. Keep holding it until the animation ends and your phone starts in safe mode.
            2. Then reboot and magisk modules should be disabled. (Thanks Lughnasadh)
          • Boot fastboot mode Mode By turning phone off to remove Magisk Modules
            1. Press the Power button until the phone turns off.
            2. Press the Power and Volume Down to boot fastboot mode.
            3. Open a Command Prompt in the Platform-tools folder or the folder that has adb.exe in it, and type adb wait-for-device shell magisk --remove-modules
            4. fastboot Reboot
        6. Backup your data
        7. Download the latest Factory Image: Pixel 5 - redfin to your Computer.
        8. Extract files from the Factory Image

          • Extract the Factory Image file (redfin-a9a9a.999999.999-factory-99a9a99a.zip) to a folder.
          • Open the folder you extracted the Factory image to, the bootloader...img; flash-all.bat; image...zip; and radio...img files are in this folder. Extract the image-redfin-aa9a.999999.999.zip file to a folder. Open the folder you extracted the image-redfin-aa9a.999999.999.zip file to, the boot.img is in this folder. file should be in this folder.
        9. Copy/Move the bootloader...img; image...zip; and radio...img and boot.img files to your computer's Platform-tools folder, the folder that has fastboot.exe in it.
      • Flash Factory Image Keep Data

        1. Updating/Upgrading Android 14
          Note: If you are Upgrading your Android Version, It is a good idea to flash the bootloader to both slots (A & B).
          ~ E D I T - flash-all.bat file ~

          @Echo off
          PATH=%PATH%;"%SYSTEMROOT%\System32"
          fastboot set_active other
          fastboot reboot-bootloader
          fastboot flash bootloader --slot all bootloader-redfin-aaaaaa-9.9-9999999.img
          fastboot reboot-bootloader
          ping -n 5 127.0.0.1 >nul
          fastboot flash radio radio-redfin-a9999a-999999-999999-a-9999999.img
          fastboot reboot-bootloader
          ping -n 5 127.0.0.1 >nul
          fastboot update image-redfin-aa9a.999999.999.zip

          echo Press any key to exit...
          pause >nul
          exit
          ~ END EDIT - flash-all.bat file ~
        2. After, you have edited the flash-all.bat file, copy/Move it to your computer's platform-tools folder.
        3. Boot fastboot mode (Power off the phone => Press the Power and Down buttons until you see Start)
        4. Connect your phone to the computer.
        5. Open a Command Prompt on your computer in the platform-tools folder and type: flash-all at the Command Prompt and press enter.
        6. The phone will reboot when flashing is completed.
        7. Go-to Part II - INSTRUCTIONS, 6. Root/Reroot with Magisk and Pass SafetyNet, • Patching the boot.img - to root/reroot.
      • Flash Factory Image Wipe Data

        1. This will wipe your phone's Data/Internal Storage.
        2. Do not edit the flash-all.bat file,
        3. Boot fastboot mode (Power off the phone => Press the Power and Down buttons until you see Start)
        4. Connect your phone to the computer.
        5. Open a Command Prompt on your computer in the Platform-tools folder and type: flash-all at the Command Prompt and press enter.
        6. The phone will reboot when flashing is completed.
        7. Go-to Part II - INSTRUCTIONS, 7. Root/Reroot with Magisk and Pass SafetyNet, • Patching the boot.img - to root/reroot.
      • Some kernels require Disabling verity and verification

        1. If you need to disable Verity and Verification. Edit the flash-all.bat file, to disable Verity and Verification.
          ~ Edit - flash-all.bat file ~

          @Echo off
          PATH=%PATH%;"%SYSTEMROOT%\System32"
          fastboot --set-active=other
          fastboot reboot-bootloader

          fastboot flash bootloader bootloader-redfin-aaaaaa-9.9-9999999.img
          fastboot reboot-bootloader
          ping -n 5 127.0.0.1 >nul
          fastboot flash radio radio-redfin-a99999-999999-999999-a-9999999.img
          fastboot reboot-bootloader
          ping -n 5 127.0.0.1 >nul
          fastboot - w update --disable-verity --disable-verification image-redfin-aa9a.999999.999.a9.zip
          echo Press any key to exit...
          pause >nul
          exit
          ~ ~ ~ END EDIT ~ ~ ~
        2. Notes:
          • The first time you Disable Verity and Verification it will wipe your Data/Internal Storage.
          • When doing subsequent updates and disabling Verity and Verification, the -w flag can be removed to Keep Data.
          • Once you start Disabling Verity and Verification you should continue doing it. If you skip disabling one time. The next time you Disable Verity and Verification it will wipe your phone.
        3. Copy/Move the edited flash-all.bat file to the platform-tools folder on your computer.
        4. Boot fastboot mode (Power off the phone => Press the Power and Down buttons until you see Start)
        5. Connect your phone to the computer.
        6. Open a Command Prompt on your computer in the Platform-tools folder and type: flash-all at the Command Prompt and press enter.
        7. The phone will reboot when flashing is complete.
        8. Go-to Part II - INSTRUCTIONS, 6. Root/Reroot with Magisk and Pass SafetyNet, • Patching the boot.img - to root/reroot.
      • Setup phone

        1. Enable Developer Mode
          • Open Setup => About phone => Tap Build number 7 times or until you see you are a 'Devloper'.
        2. Enable Developer Opitions
          • Open Setup => System => Developer options => Enable Developer options
    4. Manually Install/update the OTA image keep data and root/re-root your phone

      • Before you start:

        1. If you haven't updated your phones OTA image in a while. It is not necessary to flash all the missed OTA images in succession. Flash the latest OTA image.
        2. If your phone was previously rooted, open Magisk manager and disable all Magisk modules. If you hid the Magisk manager app the default name for the hidden Magisk app is settings.
        3. Always verify you have the latest working version of SDK Platform-Tools installed on your computer.
        4. If you get an error while flashing, try one of these options:
          • Change the USB port to a non charging USB port.
          • Change the USB cord.
          • Change Computers.
        5. If your phone boot loops try one of the following options:
          • Flash the 'stock' boot.img to both slots to remove root: fastboot flash boot boot.img --slot all
          • Boot Safe Mode while booting to remove Magisk Modules
            1. When booting, press and hold your phone's volume down button. Keep holding it until the animation ends and your phone starts in safe mode.
            2. Then reboot and magisk modules should be disabled. (Thanks Lughnasadh)
          • Boot fastboot mode by turning phone off to remove Magisk Modules
            1. Press the Power button until the phone turns off.
            2. Press the Power and Volume Down to boot fastboot mode.
            3. Open a Command Prompt in the Platform-tools folder or the folder that has adb.exe in it, and type adb wait-for-device shell magisk --remove-modules
            4. fastboot Reboot
        6. Backup your data
        7. Download files to your phone
        8. Extract the image-redfin-aa9a.999999.999.zip file from the Factory Image.

          • Extract the Factory Image file (redfin-a9a9a.999999.999-factory-99a9a99a.zip) to a folder.
          • Open the folder you extracted the Factory image to, the image-redfin-aa9a.999999.999.zip file should be in this folder.
        9. Copy/Move the image-redfin-aa9a.999999.999.zip file and the redfin-ota-aa9a.999999.999-aaaa9999.zip to your computer's Platform-tools folder, the folder that has adb.exe in it.
      • Patch the boot.img

        1. Open Magisk (next to Magisk)
        2. Tap Install
        3. Tap Select and patch a file
        4. Navigate to the image-redfin-aa9a.999999.999.zip file
        5. Tap it then tap the check mark (✓)
        6. Tap Lets go
        7. When you see done the boot.img has been patched (magisk_patched_xxxxxx.img), and stored in the download folder.
        8. Tap the disc icon (upper right corner) to save the log file.
        9. Reboot
        10. Copy/Move the magisk_patched_xxxxxx.img file to your computer's Platform-tools folder, the folder that has fastboot.exe in it:
          1. Copy it to a USB drive and transfer it to your computer.
          2. Move it to your computer using adb push
      • Sideload the Google OTA image file and Root it

        1. With the device powered on, booted, USB debugging enabled, and the phone connected to the computer. Type adb reboot sideload
        2. Type:
          adb sideload redfin-ota-aa9a.999999.999-aaaa9999.zip at the command prompt and press Enter.
        3. When side loading the OTA image finishes, you should see this:
          • On your computer,
            C:\platform-tools (location of folder with adb and OTA image in it)>adb sideload redfin-ota-up1a.999999.999-9a99a999.
            Total xfer: 2.00x
            C:\platform-tools>
          • On your phone, ...status 0
        4. Type adb reboot bootloader at the command prompt and press Enter.
      • Root this slot - Flash the Magisk_patched....img

        1. Type: fastboot flash boot magisk_patched-99999_aA99a.img at the command prompt and press Enter.
        2. When it finishes flashing, type fastboot reboot at the command prompt and press Enter.
        3. Disconnect the phone from the computer.
        4. Note: This slot is bootable and rooted.
    5. Make Both Slots Bootable: Manually, Flash the OTA Image to Both Slots - One bootable and rooted, the other slot bootable without root.

      • Before you start

        1. On the Phone
          • Backup your data
          • Enable Developer Options: Tap Settings > About Phone > Tap Build Number 7 times or until you see you are a Developer.
          • Enable USB Debugging: Tap Settings > System > Advanced > Developer Options. Enable USB Debugging.
          • Make sure that there is no pending OTA update, by going to Settings > About phone > System updates, which should say Your system is up to date.
          • Download files
            1. The latest Factory Image: Pixel 5 - redfin
            2. The latest OTA Image: Pixel 5 - redfin
            3. Verify the checksum of the Factory and OTA images. The last portion of the filename is the first 8 digits of its SHA-256 checksum; the full SHA-256 checksum is shown next to the download link.
          • Extract the image-redfin-aa9a.999999.999.zip file from the Factory Image.

            1. Extract the Factory Image file (redfin-a9a9a.999999.999-factory-99a9a99a.zip) to a folder.
            2. Open the folder you extracted the Factory image to, the image-redfin-aa9a.999999.999.zip file should be in this folder.
          • Copy/Move the image-redfin-aa9a.999999.999.zip file and the redfin-ota-aa9a.999999.999-aaaa9999.zip to your computer's Platform-tools folder, the folder that has adb.exe in it.
          • Patch the boot.img:

            1. Note: Before patching the boot.img disable all Magisk modules.
            2. Open the Magisk (Alpha/Beta/Canary/Delta/Stable) App and set the Update Channel to the version of Magisk app you installed.
            3. Open Magisk (next to Magisk)
            4. Tap Install
            5. Tap Select and patch a file
            6. Navigate to the image-redfin-aa9a.999999.999.zip file
            7. Tap it then tap the check mark (✓)
            8. Tap Lets go
            9. When you see done, the boot.img has been patched (magisk_patched_xxxxxx.img), and is stored in the download folder.
            10. Tap the disc icon (upper right corner) to save the log.
            11. Tap Reboot
          • Copy/Move the magisk_patched....img file to your computer's Platform-tools folder or the folder that has fastboot.exe in it.
          • Connect the phone to the computer.
        2. On your Computer
          • Open a Command Prompt in the Platform-tools folder.
      • (Optional): Verify your computer sees your device.

        1. With the device powered on, booted, USB debugging enabled, and the phone connected to the computer.
          Note: If you see the Allow USB Debugging prompt, on your phone, Tap Allow.
        2. Type adb devices at the command prompt and press Enter. You should see your device's serial number.
      • Sideload the Google OTA image file

        1. With the device powered on, booted, USB debugging enabled, and the phone connected to the computer.
          Note: If you see the Allow USB Debugging prompt, on your phone, Tap Allow.
        2. Type adb reboot sideload at the command prompt and press Enter.
        3. Type: adb sideload redfin-ota-aa9a.999999.999-aaaa9999.zip at the command prompt and press Enter.
        4. When side loading the OTA image finishes, you should see this:
          • On your computer,
            C:\platform-tools (location of folder with adb and OTA image in it)>adb sideload redfin-ota-up1a.999999.999-9a99a999.
            Total xfer: 2.00x
            C:\platform-tools>
          • On your phone, ...status 0
        5. Type adb reboot at the command prompt and press Enter.
        6. Note: This slot is bootable and not rooted
      • Sideload the Google OTA image file to the other slot and Root it.

        1. Type adb reboot sideload at the command prompt and press Enter
        2. Type:
          adb sideload redfin-ota-aa9a.999999.999-aaaa9999.zip at the command prompt and press Enter.
        3. When sideloading finishes, type adb reboot bootloader at the command prompt and press Enter.

          Root this slot - Flash the Magisk_patched....img
        1. Type: fastboot flash boot magisk_patched-99999_aA99a.img at the command prompt and press Enter.
        2. When it finishes flashing, type fastboot reboot at the command prompt and press Enter.
        3. Disconnect the phone from the computer.
        4. Note: This slot is bootable and rooted.
        5. Done! :)
    6. Extract files from the Factory Image

      1. Download the latest Factory image to your phone.
      2. Extract the Factory Image file (cheetah-a9a9a.999999.999-factory-99a9a99a.zip) to a folder. The, stock, flash-all.bat file should be in this folder.
      3. Open the folder you extracted the Factory image to and extract the Image file (image-cheetah-aa9a.999999.999.zip) into the folder. The flash-all bat and, the stock boot.img file should be in this folder.
    7. Root/Reroot with Magisk and Pass SafetyNet.

      • Android 14

        • Upgrade to Android 14: OP, Part II - INSTRUCTIONS, 2. Install/Update Factory Image keep data or wipe data, Keep data
      • Patching the boot.img - to root/reroot.

        1. Important Notes
          • If your phone was previously rooted, DO NOT repeat DO NOT installanother Magisk Manager app. Do this before you patch the boot.img:
            1. Open the Magisk Manager app and disable all Magisk modules.
            2. If you hid the Magisk manager app the default name for the hidden Magisk app is settings. If you gave it a different name and you've forgotten the name. Use TB checker to find the name of the hidden Magisk Manager:
              • Open the TB Checker app
              • Tap Run Xposed check
              • Scroll down to Magisk Random Package Name: to see Magisk's hidden name.
                You can also use TB Checker to check if you have more than one Magisk Manager app installed.
          • If your phone boot loops try one of the following options:
            • Flash the 'stock' boot.img to both slots to remove root: fastboot flash boot boot.img --slot all
            • Remove Magisk Modules
              1. Boot Safe Mode
                • When booting, press and hold your phone's volume down button. Keep holding it until the animation ends and your phone starts in safe mode.
                • Then reboot and magisk modules should be disabled. (Thanks Lughnasadh)
              2. Command Prompt
                • Press the Power button until the phone turns off.
                • Press the Power and Volume Down to boot fastboot mode.
                • Open a Command Prompt in the Platform-tools folder or the folder that has adb.exe in it, and type adb wait-for-device shell magisk --remove-modules
                • fastboot Reboot.
          • If the Magisk Manager app has the Superuser and Module buttons grayed out: Read @badabing2003 post
        2. Extract the image-redfin-aa9a.999999.999.zip file from the Factory Image.
          • Download the latest Factory image to your phone.
          • Extract the Factory Image file (redfin-a9a9a.999999.999-factory-99a9a99a.zip) to a folder.
          • Open the folder you extracted the Factory image to, the Image file (image-redfin-aa9a.999999.999.zip) file should be in this folder[/U].
        3. Install Magisk Canary - Download app-release.apk
          or
          Magisk Beta/Stable App
        4. Open Magisk Beta/Canary/Stable App
        5. The Update Channel should be set to Beta/Canary/Stable, depending on the version you Installed.
        6. Tap Install (next to Magisk)
        7. Tap, Select and Patch a File
        8. Select the image-redfin-aa9a.999999.999.zip file you extracted from the latest factory image.
        9. Tap the ✓ (Check Mark)
        10. Tap Let's Go
        11. When you see done the boot.img has been patched (magisk_patched_xxxxxx.img), and stored in the download folder.
        12. Tap the disc icon (upper right) to save the log file.
        13. Reboot
        14. Copy/Move the magisk_patched_xxxxxx.img file to your computer's Platform-tools folder or the folder that has fastboot.exe in it:
          • Copy it to a USB drive and transfer it to your computer.
          • Move it to your computer using adb push
        15. Boot fastboot mode
        16. Connect the phone to the Computer with USB cord.
        17. Open a Command Prompt in the Platform-tools folder.
        18. Type fastboot flash boot "magisk_patched...img" (name of patched.img file) without the quote marks at the Prompt and press enter.
        19. Type fastboot reboot at the Prompt and press enter.
      • Pass Safety Net with SafetyNet Fork

        1. Download File(s)
        2. Install osm0sis PlayIntegrityFork
          • Open Magisk
          • Tap Modules icon
          • Tap Install from storage
          • Navigate to the osm0sis PlayIntegrityFork file you downloaded.
          • Tap the osm0sis PlayIntegrityFork file.
          • When you see the confirmation screen, tap Ok.
          • After it installs tap the Disc icon to save the log
          • Tap Reboot
        3. Settings for Magisk Canary
          • Open Magisk App
          • Tap the Setup icon.
          • Scroll down to App and set the Update Channel to Canary.
          • Scroll down to Check Updates and enable it.
          • Scroll down to Magisk and enable Zygisk.
          • Enable Denylist
          • Tap Configure DenyList => Tap 3 Dot Menu => Check ✓ Show system apps => Check ✓ Google Play Store, Google Pay, Google Wallet etc.
          • (Optional) Scroll down to Superuser and enable Enable Biometric Authentication.
        4. Get Device Certified
          • Flash the osm0sis PlayIntegrityFork module in Magisk
          • Turn Airplane mode on
          • Open Settings
          • Tap Apps & notifications
          • Tap see all...
          • Tap three dot menu
          • Tap Show system
          • Scroll to Google Wallet/Play Store/Play Services
          • Clear Google Wallet cache (if you have it)
          • Clear Google Play Store cache and data
          • Clear Google Play Services (com.google.android.gms) cache and data (Optionally skip clearing data and wait some time, ~24h, for it to resolve on its own)
          • Turn Airplane mode Off
          • Reboot
        5. Check Device Certification
          • Note: If after completeting Get Device Certified your device is not certifed or your device is certified but certain apps (Google Pay, NetFliks, etc.) are not working. Do this to verify you are passing Play Integrity.
            1. Open Google Play Store app
            2. Tap your profile icon (top right corner)
            3. Tap Settings.
            4. Open the About menu
            5. Tap the row labeled Play Store version seven times to unlock developer mode.
            6. Tap the back arrow (upper left corner)
            7. Tap your profile icon (top right corner)
            8. Tap Settings.
            9. Open the General menu
            10. Tap Developer options
            11. Tap Check integrity
            12. If you see Basic Integrity and Device Integrity, you're passing Play integrity.
    8. Set Magisk App Update Channel/Update Magisk

      • Set Magisk App Update Channel

        • Open Magisk App > Tap Settings icon > Update Channel > Select Stable, Beta, Canary or Custom.
      • Update Magisk

        1. When Magisk App notifies you of an update:
        2. Tap install.
        3. Select, Direct Install (Recommended)
        4. When it finishes installing
        5. Tap, Save Log
        6. Log location: /storage/emulated/0/Download
        7. Tap, Reboot
        8. Done!
    9. Install/Update Magisk Modules

    10. Open a Command Prompt/Boot Fastboot Mode/Boot Recovery

      • Open a Command Prompt on Computer
        1. Open File Explorer, click the platform-tools folder ==> click the folder icon (left side of address bar) to highlight it type cmd and press enter.
        2. Open a Powershell Command Prompt on Computer: Open File Explorer, click the platform-tools folder ==> click the folder icon (left side of address bar) to highlight it type powershell and press enter.
        3. Notes:
          • Enable USB Debugging, on your phone: Settings ==> System ==> Advanced ==> Developer options ==> Scroll down to USB debugging and enable it.
          • When using the Powershell Command Prompt Commands must be preceeded with ./: i.e, ./fastboot devices
          • If you do not want to open a Command Prompt every time you want to use the fastboot command, add the path to the Platform-tools folder to Windows environment variables.
      • Boot fastboot mode (bootloader):
        • Power off phone, press and hold the power and volume down buttons until you see Start.
      • Boot Recovery
        • Power off phone, press and hold the power and volume down buttons until you see Start. Use volume up/down button until you see Recovery mode. Press power button.
    11. Test fastboot

      • Enable Developer Options - Tap Settings > About phone > Build number 7 times or until you should see 'you are a Developer'.
      • Enable USB Debugging - Tap Settings > System > Advanced > Developer options >
        Enable USB Debugging.
      • Open a Command Prompt on your computer in the Platform-tools folder.
      • Boot fastboot mode on your phone
      • Connect the phone to the Computer.
      • At the prompt type: fastboot devices to verify communication with phone. It should return your phone's serial number.
    12. ADB Sideload

    ~ ~ ~ Part III - OTHER ~ ~ ~
    1. Custom ROMs

      • Need help with a Custom ROM?

        1. If you are trying to install a Custom ROM, read and follow the Installation Instructions in the OP of the Custom ROM thread.
        2. If you have questions, search the thread of the Custom ROM you are trying to install for answer(s)/solution(s) to your question(s)/problem(s)[/B]: If you don't find a answer(s)/solution(s) to your question(s)/problem(s). Post your question(s)/request(s) for help in the Custom ROM thread you are trying to install.
        3. Try installing it with 📳🔥 PixelFlasher, a GUI tool for flashing / updating / rooting / managing Pixel phones..
        4. If you are trying to install a Addon(s) {Custom Kernel, Magisk, etc.} to the Custom ROM you installed: Search the thread of the Custom Kernel, Magisk, etc. you want to install for installation instructions, and answer(s)/solution(s) to your question(s)/problem(s) about the Custom Kernel, Magisk, etc. If you don't find an answer(s)/solution(s) to your question(s)/problem(s). Post your question(s)/request(s) for help in the Custom Kernel, Magisk, etc.) thread.
      • ROMs
    2. Themes, Apps, and Mods
    3. T.W.R.P. Backup/Restore

      • Waiting for Android 14 T.W.R.P.
    7
    SDK Platform-tools Update
    SDK Platform-tools r. 34.0.3, was released May 22, 2023.

    @badabing2003 reported a problem when using it.
    https://xdaforums.com/t/platform-to...7-pro-cheetah-safetynet.4502805/post-88571575

    @Lughnasadh, suggested a fix.
    https://xdaforums.com/t/platform-to...7-pro-cheetah-safetynet.4502805/post-88571601

    @badabing2003, confirmed the suggested fix works.
    https://xdaforums.com/t/platform-to...7-pro-cheetah-safetynet.4502805/post-88571617

    If you use Linux or Windows SDK Platform- tools r. 34.0.3. You must set the environment variable:
    Linux

    Windows

    Note: If you have any problems with SDK Platform-tools 34.0.3. You can get SDK Platform-tools 33.0.3 here.
    6
    :) I hope you all have a Joyful Holiday season with your family and loves ones. :)

    ~ ~ ~ Stay safe ~ ~ ~
    5
    is there a magisk boot img with modules disabled?. i have a boot loop and need a boot img with it disabled.
    You should have your stock image you can push over. I do not think replacing the boot image with another patched image would disable anything. You can also use adb to remove any modules. Regardless heres my patched boot image and the command to remove modules. Power off, connect phone enter this command, hold power button to boot phone.

    adb wait-for-device shell magisk --remove-modules

    Patched December build boot image
    here
    4
    For people who are having bootloops with patched boot.img
    Please pay attention to this step in the guide
    Section 7
    Under Patching boot.img
    4- Depending on the version of Magisk Manager installed: Set the Update Channel to Beta or Canary.

    Even if you install beta / canary magisk apk, if you don't select the matching channel, you'd get a bootloop, so don't forget that important step.