[Guide] Root Pixel 5 with Magisk + Unlock Bootloader + Pass SafetyNet + More

Search This thread

mailperson

New member
Oct 16, 2022
2
3
Guide worked great thanks. But how do we hide root from apps without enforcing the denylist? (If I enforce, Safetynet fails. If I don't enforce, apps can detect root even though I've hidden Magisk). On Pixel 5/A13.

Edit: found Shamiko from the LSposed team and it works great. Cheers!
 
Last edited:

swangjang

Senior Member
Sep 12, 2018
220
158
Google Pixel 5
Guide worked great thanks. But how do we hide root from apps without enforcing the denylist? (If I enforce, Safetynet fails. If I don't enforce, apps can detect root even though I've hidden Magisk). On Pixel 5/A13.

Edit: found Shamiko from the LSposed team and it works great. Cheers!
Shamiko was exactly what I was looking for! Thanks for the mention.
 
  • Like
Reactions: mailperson

keyptondog

New member
Nov 26, 2022
2
0
I have a pixal 5 with android 13, will thus guide work with it? It has the cell carrier lock spectrum mobile. got it from my aunt and she didn't know once u paid it off they unlock it for you... still working on her to do so.. but I wanna root for GPS location for an app..
 

Homeboy76

Senior Member
Aug 24, 2012
3,693
2,176
Google Pixel XL
Google Pixel 7 Pro
I have a pixal 5 with android 13, will thus guide work with it? It has the cell carrier lock spectrum mobile. got it from my aunt and she didn't know once u paid it off they unlock it for you... still working on her to do so.. but I wanna root for GPS location for an app..
If your carrier will unlock the bootloader , yes.

In this Safeunlocks article, they write about Carrier (Sims card) unlocking not bootloader unlocking Spectrum Mobile's phones.
 
Last edited:

keyptondog

New member
Nov 26, 2022
2
0
If your carrier will unlock the bootloader , yes.

In this Safeunlocks article, they write about Carrier (Sims card) unlocking not bootloader unlocking Spectrum Mobile's phones.
So spectrum will half to unlock the bootloader for me to root it?. I can't unlock it using unlock bootloader in the instructions?. Just wanna be sure that I'm understanding correctly.. the website you provided is for the Sim card right?. I'm cool with it being Sim locked to spectrum that's fine I just want to root the phone so I can GPS spoof for pokemon.. I have bad knees and live out in the middle of no where only like 3 spots to spin and 1 gym in a 10 mile stretch
 

Homeboy76

Senior Member
Aug 24, 2012
3,693
2,176
Google Pixel XL
Google Pixel 7 Pro
So spectrum will half to unlock the bootloader for me to root it?. I can't unlock it using unlock bootloader in the instructions?. Just wanna be sure that I'm understanding correctly.. the website you provided is for the Sim card right?. I'm cool with it being Sim locked to spectrum that's fine I just want to root the phone so I can GPS spoof for pokemon.. I have bad knees and live out in the middle of no where only like 3 spots to spin and 1 gym in a 10 mile stretch
Try this to determine if the bootloader is unlockable.

Go to the OP, ~ ~ ~ Part II - INSTRUCTIONS ~ ~ ~, 1. Unlock Bootloader/Return Phone to Stock/Lock Bootloader, • Unlock Bootloader and do number 3.

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


If you can enable OEM Unlock your phone has an unlockable bootloader and you can root it.
 

HippoMan

Senior Member
May 5, 2009
2,098
867
Hippoland
I see here that the Pixel 5 can be rooted with Magisk Delta. However, that was with Android 13.

Has anyone rooted a Pixel 5 with Magisk Delta for Android 11? I want to try to do that, and before I dive in, I'd like to know whether anyone has done this successfully on an Android-11-based Pixel 5.

Thank you in advance.
 

Homeboy76

Senior Member
Aug 24, 2012
3,693
2,176
Google Pixel XL
Google Pixel 7 Pro
I see here that the Pixel 5 can be rooted with Magisk Delta. However, that was with Android 13.

Has anyone rooted a Pixel 5 with Magisk Delta for Android 11? I want to try to do that, and before I dive in, I'd like to know whether anyone has done this successfully on an Android-11-based Pixel 5.

Thank you in advance.
Just download the magisk delta manager app and patch the boot.img Then flash it.
 
Last edited:
  • Like
Reactions: HippoMan

HippoMan

Senior Member
May 5, 2009
2,098
867
Hippoland
Just download the magisk manager app and patch the boot.img Then flash it.
Thank you. I know how to do this. My question is as follows:

Has anyone actually successfully accomplished this with a Pixel 5 under Android 11 and Magisk Delta? If possible, I'd like that confirmation before I dive in and try it myself.

Thank you again, very much.
 
Last edited:

Homeboy76

Senior Member
Aug 24, 2012
3,693
2,176
Google Pixel XL
Google Pixel 7 Pro
Thank you. I know how to do this. My question is as follows:

Has anyone actually successfully accomplished this with a Pixel 5 under Android 11 and Magisk Delta? I'd like that confirmation before I dive in and try it myself.

Thank you again, very much.
I haven't, but you could do a search on this thread for Magisk Delta. Good luck.
 
  • Like
Reactions: HippoMan

HippoMan

Senior Member
May 5, 2009
2,098
867
Hippoland
I haven't, but you could do a search on this thread for Magisk Delta. Good luck.
Thank you. I already did extensive searches on this thread and several other threads, and I didn't find an answer.

That's why I posted this question here. Given that this is a "root-pixel-5" thread, I'm hoping that someone who has rooted their Android-11-based Pixel 5 with Magisk Delta might read my question in this thread and be able to offer that kind of confirmation.

PS: and the "Magisk Delta" thread is another one of the threads in which I already did extensive searching without finding an answer ... and so I already posted a similar question in that thread, as well, for the same reason.
 
Last edited:

Homeboy76

Senior Member
Aug 24, 2012
3,693
2,176
Google Pixel XL
Google Pixel 7 Pro
Thank you. I already did extensive searches on this thread and several other threads, and I didn't find an answer.

That's why I posted this question here. Given that this is a "root-pixel-5" thread, I'm hoping that someone who has rooted their Android-11-based Pixel 5 with Magisk Delta might read my question in this thread and be able to offer that kind of confirmation.

PS: and the "Magisk Delta" thread is another one of the threads in which I already did extensive searching without finding an answer ... and so I already posted a similar question in that thread, as well, for the same reason.
Ok. Are you wanting to root android 11 with Magisk Delta as a test before you root with android 13?
 
  • Like
Reactions: HippoMan

HippoMan

Senior Member
May 5, 2009
2,098
867
Hippoland
Ok. Are you wanting to root android 11 with Magisk Delta as a test before you root with android 13?
I don't even want to upgrade above Android 11 at all for the time being. The higher the Android version, the more restrictions there seem to be, and it seems more difficult and complicated to hide root and hide mods.

I just want to root the standard factory Android 11 that comes with the new Pixel 5 and just use it as is.

Some time in the future, I might decide to upgrade to A12 or A13, but I don't want to do that too soon.
 
  • Like
Reactions: Homeboy76

andybones

Forum Moderator
Staff member
May 18, 2010
15,080
15,445
Google Pixel 5
I don't even want to upgrade above Android 11 at all for the time being. The higher the Android version, the more restrictions there seem to be, and it seems more difficult and complicated to hide root and hide mods.

I just want to root the standard factory Android 11 that comes with the new Pixel 5 and just use it as is.

Some time in the future, I might decide to upgrade to A12 or A13, but I don't want to do that too soon.
I would use Magisk v23 for A11.
 

HippoMan

Senior Member
May 5, 2009
2,098
867
Hippoland
I would use Magisk v23 for A11.
Thank you. Have you or anyone else here successfully rooted A11 on the Pixel 5 with Magisk 23.0?

As I have explained here, I am looking for people who can confirm successful rooting of an A11 Pixel 5.

Thank you again.
 

andybones

Forum Moderator
Staff member
May 18, 2010
15,080
15,445
Google Pixel 5
Thank you. Have you or anyone else here successfully rooted A11 on the Pixel 5 with Magisk 23.0?

As I have explained here, I am looking for people who can confirm successful rooting of an A11 Pixel 5.

Thank you again.
Yes.

Basically up until A13 as I wasn't really in love and sold on A12 yet.
But I ended up really liking A13 so I've stayed on it

However up until then, I ran crDroid A11 and stayed on Magisk v23.
 

HippoMan

Senior Member
May 5, 2009
2,098
867
Hippoland
Yes.

Basically up until A13 as I wasn't really in love and sold on A12 yet.
But I ended up really liking A13 so I've stayed on it

However up until then, I ran crDroid A11 and stayed on Magisk v23.
Oh, thank you!

So, just a standard crDroid 11 installation plus Magisk 23.0, correct?

I've used crDroid before on a different device, and I'm familiar enough with it to be sure that this would be a lot easier and less headache-producingly complicated than trying to install any of the post-23.0 Magisk versions and their supported modules on stock A11 or above.

Furthermore, I've been currently using Magisk 23.0 on an Android-10-based OnePlus device, and I have no problems or headaches with 23.0.

So, I'm now strongly considering your suggestion!

Thank you again!
 
  • Like
Reactions: Homeboy76

andybones

Forum Moderator
Staff member
May 18, 2010
15,080
15,445
Google Pixel 5
Oh, thank you!

So, just a standard crDroid 11 installation plus Magisk 23.0, correct?

I've used crDroid before on a different device, and I'm familiar enough with it to be sure that this would be a lot easier and less headache-producingly complicated than trying to install any of the post-23.0 Magisk versions and their supported modules on stock A11 or above.

Furthermore, I've been currently using Magisk 23.0 on an Android-10-based OnePlus device, and I have no problems or headaches with 23.0.

So, I'm now strongly considering your suggestion!

Thank you again!
Very welcome, my friend.

Yes standard crDroid v7 found in Pixel 5 ROM section.

I agree, this is a wonderful ROM and definitely worth running. Most Magisk modules are updated to run on Magisk v23 and above, so you shouldn't run into much of any compatibility issues.

I didn't update Magisk from v23 until I updated to A13, then I started running the latest Magisk versions.

Also here is the custom update channel to stop new updates in Magisk.
 
Last edited:
  • Like
Reactions: HippoMan

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    SDK Platform-tools Update
    SDK Platform-tools r34.0.0 and r34.0.1 are not working.

    Use SDK Platform-tools r33.0.3: https://forum.xda-developers.com/t/...der-pass-safetynet-more.4187609/post-88261743
    1
    SDK Platform-tools
    Several members of the XDA community have
    written posts that SDK Platform-tools r34.0.1 broken. Problem: fastbootd not working

    SDK Platform-tools r33.0.3 is attached : OP post #769
    Always on the edge 😅 (thank you)

    Nevertheless, why not add this same alert to OP or / and attach r33.0.3 to the same post?
    1
    Always on the edge 😅 (thank you)

    Nevertheless, why not add this same alert to OP or / and attach r33.0.3 to the same post?
    Excellent suggestion, I added a link to SDK Platform-tools rev. 33.0.3 to the OP and attach SDK Platform-tools rev. 33.0.3 to the same post, kinda.
    1
    Just wondering if there is a reason not to use rev. 34.0.0?
    just 3 or 4 posts before yours, @Homeboy76 clearly stated the reason, it applies to 34.0.0 and 34.0.1
    1
    Are you saying that it worked after you installed a driver from that post?
    I personally would not dare trust that.
    1- Source is not from the official Google.
    2- Unisgned, yet it says Google?
    Now that I think about it, I don't know why I did not get it from Google! Thanks for raising that mistake. I checked all the SHA256 hashes for the files and they all match with the files from your Google link. Also, the device manager shows the driver as signed by Google and did not prompt during the driver installation saying anything about not signed. Below is a screenshot from the Device Manager on PC.
    driver.jpg
    .

    I updated the driver to the version from your Google link and the content in above screenshot did not change.
    I guess I was lucky this time, but I will remember this! Thanks again.
  • 51
    [Guide] Root Pixel 5 with Magisk + Unlock Bootloader + Pass SafetyNet + More
    Android Security Bulletin—March 2023
    Pixel Update Bulletin—March 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. Update(s)

      1. Factory/OTA Images - 13 Mar
      2. Magisk Alpha - app-release_555a54ec-alpha.apk 2 Sep
      3. Magisk Beta - 25.2 21Jul
      4. Magisk Canary
        Note: Magisk Canary 25207, 25208, 25209 (some devices), and 25210 are broken.
        - Use Magisk Canary 25206
        - Tap the 3 dot menu across from 5b2934603f => Tap Go to file =>
        Tap app-release.apk => Tap the 3 dot menu across from 10.9 MB => Tap Download
      5. Magisk Cygisk - Click Pages 5 for installation Instructions.
      6. Magisk Delta - app-release
      7. Magisk Stable - 25.2 21Jul
      8. TWRP - 370_11-0... 04Oct - Waiting for T.R.W.P. for Android 13
      9. SafetyNet - kdrag0n safetynet-fix-v2.4.0.zip 09Jan
        This version only supports Zygisk (Magisk 24 and newer).
      10. SDK Platform-tools - r33.0.3 Aug 2022
      11. Custom Kernels
    4. NEW

      • "...make a 100% clean install of ANY Magisk version or fork without PC or TWRP."
      • Android 14 Beta are up.
        Builds are only available for the following Pixel devices:

        1. Google Pixel 4a5(G)
        2. Google Pixel 5 and 5a
        3. Google Pixel 6 and 6 Pro
        4. Google Pixel 6a
        5. Google Pixel 7 and 7 Pro
      • Android 13 QPR3 beta images are up.
        Release notes - for QPR3 beta
        1. Factory Images
          Builds are only available for the following Pixel devices:

          • Google Pixel 4a and 4a (5G)
          • Google Pixel 5 and 5a
          • Google Pixel 6 and 6 Pro
          • Google Pixel 6a
          • Google Pixel 7 and 7 Pro
            * * * 64-bit-only system images * * *
          • Google Pixel 4a (5G)
          • Google Pixel 5
          • Google Pixel 6
          • Google Pixel 6 Pro
        2. OTA Images
          Builds are only available for the following Pixel devices:

          • Google Pixel 4a and 4a (5G)
          • Google Pixel 5 and 5a
          • Google Pixel 6 and 6 Pro
          • Google Pixel 6a
          • Google Pixel 7 and 7 Pro
    5. My Other Guides
    6. Credits/Thanks/Recognitions

      • Those I may have, inadvertently, forgotten.
    ~ ~ ~ Part II - INSTRUCTIONS ~ ~ ~
    (The Instructions listed below are not steps, they are individual sets of instructions.)

    1. 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.
    2. Install/Update Factory Image keep data, wipe data, or try badabing2003 PixelFlasher

      • Important Note(s):

        1. If the previous factory image was rooted (you used Magisk to patch the boot.img of the previous factory image). Open Magisk manager and disable all Magisk modules.
        2. If you want to Upgrade to Android 13 or update the Factory Image without wiping your phone: Do Flash Factory Image Keep Data (below).
        3. Always verify you have the latest version of SDK Platform-Tools installed on your computer before installing the Factory Image: Pixel 5 - redfin.
        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: fastboot flash boot boot.img --slot all
          • Remove Modules

            1. Press the Power button until the phone turns off.
            2. Press the Power and Volume Down to boot the bootloader.
            3. Open a Command Prompt in the SDK-Platform-tools folder or the folder that has adb.exe in it, and type adb wait-for-device shell magisk --remove-modules
              then type
            4. fastboot Reboot
          • If you are uncomfortable manually flashing the factory image. Try PixelFlasher by badabing2003.
            Please post Comments/Discussions/Questions about PixelFlasher on that thread.
        6. Backup your data
        7. Download the latest Factory Image: Pixel 5 - redfin to your Computer.
        8. Go to Part II - INSTRUCTIONS => 4. Extract Files from the FactoryImage/Flash boot.img and extract the flash-all.bat file.
      • Flash Factory Image Keep Data

        • Upgrading Android 13
          * E D I T - flash-all.bat file *
          Flash to current/Active Slot.
          * * * S T A R T - E D I T * * *
          @Echo off

          PATH=%PATH%;"%SYSTEMROOT%\System32"
          fastboot flash bootloader bootloader-redfin-a9-9.9-9999999.img
          fastboot reboot-bootloader
          ping -n 5 127.0.0.1 >nul
          fastboot flash radio radio-redfin-a9999-99999-999999-b-9999999.img
          fastboot reboot-bootloader
          ping -n 5 127.0.0.1 >nul
          fastboot update image-redfin-aa9a.999999.999.zip
          Note:The -w is removed to Keep Data.
          echo Press any key to exit...
          pause >nul
          exit
          * * * * E N D - E D I T * * * *
          Note: It is a good idea to flash the Google factory image to both slots (A & B) when Upgrading to new Android Version.
          See Flash Other Slot bat file... below, to flash to the other/inactive slot.
          * * * * E N D - Edit * * * *
        • Updating Android 13
          Flash to Other/Inactive Slot.
          Note: See Flash Other Slot bat file... below.
          * * * * * E N D * * * * *
        • Flash Other Slot bat file - Save as flash-other.bat
          Note: To run this file type flash-other at the Command Prompt.

          ECHO OFF
          PATH=%PATH%;"%SYSTEMROOT%\System32"
          echo This is the slot you are currently on.
          fastboot getvar current-slot
          echo Press any key to continue...
          pause >nul
          fastboot --set-active=other
          fastboot reboot-bootloader
          ping -n 5 127.0.0.1 >nul
          echo This is the slot you switched to.
          fastboot getvar current-slot
          echo Press any key to continue...
          pause >nul
          flash-all
          exit
          * * E N D - Creating File * *
        • After, you have edited the flash-all.bat file. Copy/Move these files to the Platform-tools folder:
          1. bootloader-redfin-....img
          2. flash-all.bat
          3. image-redfin-....zip
          4. radio-redfin-....img
        • On your phone: Boot the bootloader (Power off the phone => Press the Power and Down buttons until you see Start)
        • Connect your phone to the computer.
        • Open a Command Prompt on your computer in the Platform-tools folder and type: flash-all at the Command Prompt and press enter.
        • The phone will reboot when flashing is completed.
        • Go-to ~ ~ ~ Part II - INSTRUCTIONS ~ ~ ~, 5. Root/Reroot with Magisk and Pass SafetyNet, • Patching the boot.img - to root/reroot.
      • Flash Factory Image Wipe Data

        • This will wipe your phone's Data/Internal Storage.
        • Do not edit the flash-all.bat file.
        • If you need to disable Verity and Verification: See Disabling Verity and Verification below.
          Disabling Verity and Verification
          * E D I T - flash-all.bat file *
          @Echo off
          PATH=%PATH%;"%SYSTEMROOT%\System32"
          fastboot --set-active=other
          fastboot reboot-bootloader
          fastboot flash bootloader bootloader-redfin-a9-9.9-9999999.img
          fastboot reboot-bootloader
          ping -n 5 127.0.0.1 >nul
          fastboot flash radio radio-redfin-a9999-99999-999999-b-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.zip
          echo Press any key to exit...
          pause >nul
          exit
          Notes:
          1. The first time you Disable Verity and Verification it will wipe your Data/Internal Storage.
          2. When doing Subsequent updates and disabling Verity and Verification, the -w flag can be removed to Keep Data.
          3. 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.
          4. Some kernels require Disabling verity and verification
          5. To flash both slots (A & B partitions) see Flash Other Slot bat file... above.
          * * * * E N D - Edit * * * *
        • Open the folder you extracted the Factory Image to and Copy/Move these files to the Platform-tools folder:
          1. bootloader-redfin-....img
          2. flash-all.bat
          3. image-redfin-....zip
          4. radio-redfin-....img
        • On your phone: Boot the bootloader (Power off the phone => Press the Power and Down buttons until you see Start)
        • Connect your phone to the computer.
        • Open a Command Prompt on your computer in the Platform-tools folder and type: flash-all at the Command Prompt and press enter.
        • The phone will reboot when flashing is complete.
        • Setup phone
        • Enable Developer Mode and USB Debugging
          1. Setup => About phone => Tap Build number 7 times or untill you see you are a 'Devloper'.
          2. Setup => System => Developer options => Enable Developer options => enable USB Debugging
        • Go-to ~ ~ ~ Part II - INSTRUCTIONS ~ ~ ~, 5. Root/Reroot with Magisk and Pass SafetyNet, • Patching the boot.img - to root/reroot.
    3. Take the OTA Update and Maintain Root

      • This set of instructions was written by @topjohnwu: Install Magisk to Inactive Slot , use Magisk Canary, Beta or Stable.
      • NOTE: After you Open Magisk and Restore Images. If you had a Custom Kernel installed, Please check the OP of the Custom Kernel thread you install for the instruction to remove the Custom Kernel and return your phone to Stock. Additionally, if you installed Mods Please check the OP of the Mod thread you installed for instruction to remove the Mod and return your phone to Stock before you download the OTA.
      • If you phone bootloops
        • Press the Power button until the phone turns off.
        • Press the Power and Volume Down to boot the bootloader.
        • Open a Command Prompt in the SDK-Platform-tools folder or the folder that has adb.exe in it, and type adb wait-for-device shell magisk --remove-modules
        • fastboot Reboot
    4. Extract Files from Factory Image/Flash boot.img

      • Extract Files from Factory Image

        1. Extract flash-all.bat and boot.img file
        2. Download the latest Factory image to your phone.
        3. Extract the Factory Image file (bramble-r2d1a.999999.999-factory-99a9a99a.zip) to a folder. The, stock, flash-all.bat file should be in this folder.
        4. Open the folder you extracted the Factory image to and, extract the Image file (image-bramble-aa9a.999999.999.zip) into the folder. The, stock, boot.img file should be in this folder.
      • Flash boot.img

        1. Flashing the boot.img removes root.
        2. Open the folder you extracted the 'image...zip' file to and copy the boot.img file to your computer's platform-tools folder or to the folder that has fastboot.exe in it.
        3. Boot fastboot mode
        4. Connect the phone to the Computer
        5. Open a Command Prompt and type the following command at the prompt:
          fastboot flash boot --slot all boot.img
        6. Reboot
    5. Root/Reroot with Magisk and Pass SafetyNet.

      • Android 13

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

        1. Go to Part II - INSTRUCTIONS => 4. Extract Files from the FactoryImage/Flash boot.img and extract the boot.img file.
        2. Install Magisk Canary - Download app-release.apk
          or
          Magisk Beta/Stable App
        3. Open Magisk Beta/Canary/Stable App
        4. The Update Channel should be set to Beta/Canary/Stable, depending on the version you Installed.
        5. Tap Install (next to Magisk)
        6. Tap, Select and Patch a File
        7. Select the boot.img file you extracted from the latest factory image.
        8. Tap the ✓ (Check Mark)
        9. Tap Let's Go
        10. When you see done, the boot.img has been patched (magisk_patched_xxxxxx.img), and stored in the download folder.
        11. Reboot
        12. Copy/Move the patched boot.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
        13. Boot fastboot mode
        14. Connect the phone to the Computer with USB cord.
        15. Open a Command Prompt in the folder you copied the patched boot.img to.
        16. Type fastboot flash boot "name of patched boot".img without the quote marks at the Prompt and press enter.
        17. Type fastboot reboot at the Prompt and press enter.
        18. Important, if your phone boot loops try one of the following options:
          • Flash the 'stock' boot.img to both slots: fastboot flash boot boot.img --slot all
          • Remove Modules
            1. Press the Power button until the phone turns off.
            2. Press the Power and Volume Down to boot the bootloader.
            3. Open a Command Prompt in the SDK-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.
        19. Important, if the Magisk Manager app has the Superuser and Module buttons greyed out:
      • Pass Safety Net with SafetyNet Fix

        1. Download File(s)
        2. Install kdrag0n or Displax's safetyNet Fix
          • Open Magisk
          • Tap Modules icon
          • Tap Install from storage
          • Navigate to the kdrag0n SafetyNet Fix or Displax's SafetyNet Fix file you downloaded.
          • Tap the kdrag0n SafetyNet Fix or Displax's SafetyNet Fix file.
          • Tap the check mark (✓ at the bottom) to start the installation.
          • After it installs tap the Save 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.
          • Scroll down to Superuser and enable Enable Biometric Authentication.
        4. Get Device Certified Clear Google Play Services, Google Play Store, Google Pay, Google Wallet, etc. data[/B]
          • Turn Airplane mode on
          • Open Settings
          • Tap Apps & notifications
          • Tap see all...
          • Tap three dot menu
          • Tap Show system
          • Scroll down to Google Play Store
          • Tap Storage and Cache
          • Tap Clear storage
            Note: Repeat the 3 steps above for Google Play Services, Google Pay, Google Wallet, etc.
          • reboot
          • Turn Airplane mode off
        5. Check Device Certification, It may take 24 hours for Device Certification
          • Open Google Play Store app
          • Tap Menu - Circle top right
          • Tap Settings
          • Tap About
          • Check Play protect certification.
    6. 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!
    7. Install/Update Magisk Modules

      • Download Modules
      • Install Modules from Storage

        1. Open Magisk
        2. Tap the Modules icon
        3. Tap Install from storage
        4. Navigate to the folder with the Module you want to install.
        5. Tap the Module to highlite it and tap Select.
        6. After it installs, tap the Disc Icon to save the install log.
        7. Tap Reboot
      • Install Modules from Fox2Code/Fox Magisk Module Manager

        1. Open Fox2Code/Fox Magisk Module Manager
        2. Tap the Modules icon
        3. Locate the Module you want to install
        4. Tap Install
        5. After it installs, tap the Disc Icon to save the install log.
        6. Tap Reboot
      • Update Modules

        1. Open Fox2Code/Fox Magisk Module Manager
        2. You, will see the Modules that have Updates.
        3. Tap the Module you want to update.
        4. Tap install.
        5. After it installs, tap the Disc Icon to save the install log.
        6. Tap Reboot
    8. 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.
    9. 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.
    10. ADB Sideload

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

      • Need help with a Custom ROM?
        1. If you are you are trying to install or have installed a Custom ROM, read and follow the Installation Instructions in the OP of the Custom ROM thread.
        2. Search the thread of the Custom ROM you are trying to install or have installed for answer(s)/solution(s) to your question(s)/problem(s): 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 or have installed.
        3. 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 ROM you installed or the thread of the Addon you want to add to your Custom ROMfor answer(s)/solution(s) to your question(s)/problem(s). 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 ROM or Addon (Custom Kernel, Magisk, etc.) thread.
      • ROMs
        1. Google Pixel 5 ROMs, Kernels, Recoveries, & Other
        2. Other Custom ROMs
    2. Themes, Apps, and Mods
    3. T.W.R.P. Backup/Restore

      • Waiting for Android 13 T.W.R.P.
    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.
    3
    Thank you for your help I really appreciate it!
    Absolutely, helping each other is what makes this community work.