[Guide] Root Pixel 4a (5G) with Magisk + Unlock Bootloader + Pass SafetyNet + More

Search This thread

kageneko

Member
Dec 17, 2007
22
2
fastbooted to the stock boot.img then flashed and it worked to get me back to unrooted mode... now how to get root back ... note that I'm using magisk canary build 25206 (34)
 

kageneko

Member
Dec 17, 2007
22
2
Go to the first post, Part II and step 5.

Go to the first post, Part II, step 5. Works like a champ.
after I did the factory reset, magisk had no modules installed. I hadn't even gotten that far yet. restoring to november update with magisk stable 25.2 since that was working fine. will reroot again.
 
Last edited:

kageneko

Member
Dec 17, 2007
22
2
aaaand after I fastboot flash booted the patched image after restoring to november update... same bootloop. W T F.

this is the adb output:

C:\adb>fastboot boot boot.img
Sending 'boot.img' (98304 KB) OKAY [ 2.405s]
Booting (bootloader) boot.img missing cmdline or OS version
OKAY [ 1.564s]
Finished. Total time: 4.012s
 

kageneko

Member
Dec 17, 2007
22
2
ugh this is frustrating... i've facto-reset my phone 4 times already . I waited for everything to complete, then installed magisk, then extracted the boot.img and patched it, then fastboot flash boot the patched boot.img and it goes to bootloop every single time... this is the first time this has happened on the 4a 5g and it's frustrating the hell out of me...
 

Homeboy76

Senior Member
Aug 24, 2012
3,688
2,172
Google Pixel XL
Google Pixel 7 Pro
ugh this is frustrating... i've facto-reset my phone 4 times already . I waited for everything to complete, then installed magisk, then extracted the boot.img and patched it, then fastboot flash boot the patched boot.img and it goes to bootloop every single time... this is the first time this has happened on the 4a 5g and it's frustrating the hell out of me...
@kageneko
First do OP, ~ ~ Part II - INSTRUCTIONS ~ ~ ~, Install/Update Factory Image keep data, wipe data..., Important Note(s), 5. If you phone bootloops...

This should clear the bootloop

Second, do OP, ~ ~ Part II - INSTRUCTIONS ~ ~ ~, 5. Root/Reroot with Magisk and Pass SafetyNet., • Patching the boot.img - to root/reroot.

This should reroot your phone.
 

Homeboy76

Senior Member
Aug 24, 2012
3,688
2,172
Google Pixel XL
Google Pixel 7 Pro
aaaand after I fastboot flash booted the patched image after restoring to november update... same bootloop. W T F.

this is the adb output:

C:\adb>fastboot boot boot.img
Sending 'boot.img' (98304 KB) OKAY [ 2.405s]
Booting (bootloader) boot.img missing cmdline or OS version
OKAY [ 1.564s]
Finished. Total time: 4.012s
If you are trying to return to stock the command is fastboot flash boot --slot all boot.img

I think your problem is, there are still some active Magic modules on your phone.

So, after you run the command above, boot Safe Mode. Then reboot. Then do OP, ~ ~ Part II - INSTRUCTIONS ~ ~ ~, 5. Root/Reroot with Magisk and Pass SafetyNet., • Patching the boot.img - to root/reroot.
 
  • Like
Reactions: roundaway

kageneko

Member
Dec 17, 2007
22
2
rooted! the ONLY difference was after I patched the boot.img file, I rebooted the phone before copying it to the PC... that is literally the ONLY difference between what I did before and this last time when it finally worked. I'm gonna wait a bit before trying to update to January... this session was way uncharacteristically problematic.
 
  • Like
Reactions: Homeboy76

dadnammit

Senior Member
Jun 24, 2013
62
12
Having trouble "re-rooting" after an update, and need troubleshooting suggestions. It's been a long time since I first rooted using the steps here.

I lost root after an OTA and am finally trying to do it again, but it's not working. Now running Android 13. I did several OTA updates while the root was lost.

STEPS from Part II - INSTRUCTIONS => 5. Root/Reroot with Magisk and Pass SafetyNet, • Patching the boot.img - to root/reroot:
- I extracted the boot.img from the firmware currently matching the version on my device.
- Magisk-v25.2.apk is installed. Also tried with canary.
- Patched the boot.img using Magisk.
- Copied magisk_patched-25200_r1Bfr.img to my PC.
- Started phone in fastboot and ran: fastboot flash boot magisk_patched-25200_r1Bfr.img
- Got response of OKAY writing to boot_a

The phone starts fine, but it's not rooted.
:(

Ideas?

(Magisk has the SuperUser button greyed out, and a Root Checker detection app fails. But some banking apps now fail because I am "rooted.")
 
  • Like
Reactions: Homeboy76

Homeboy76

Senior Member
Aug 24, 2012
3,688
2,172
Google Pixel XL
Google Pixel 7 Pro
Having trouble "re-rooting" after an update, and need troubleshooting suggestions. It's been a long time since I first rooted using the steps here.

I lost root after an OTA and am finally trying to do it again, but it's not working. Now running Android 13. I did several OTA updates while the root was lost.

STEPS from Part II - INSTRUCTIONS => 5. Root/Reroot with Magisk and Pass SafetyNet, • Patching the boot.img - to root/reroot:
- I extracted the boot.img from the firmware currently matching the version on my device.
- Magisk-v25.2.apk is installed. Also tried with canary.
- Patched the boot.img using Magisk.
- Copied magisk_patched-25200_r1Bfr.img to my PC.
- Started phone in fastboot and ran: fastboot flash boot magisk_patched-25200_r1Bfr.img
- Got response of OKAY writing to boot_a

The phone starts fine, but it's not rooted.
:(

Ideas?

(Magisk has the SuperUser button greyed out, and a Root Checker detection app fails. But some banking apps now fail because I am "rooted.")
  1. Boot Safe Mode an then reboot.
  2. Reflash magisk_patched-25200_r1Bfr.img
Are you rooted?
 

Homeboy76

Senior Member
Aug 24, 2012
3,688
2,172
Google Pixel XL
Google Pixel 7 Pro
I tried safe mode and then reflashed patched boot file, but no. Still not rooted, but thanks. :(
@dadnammit,
Is there a Magisk app in the App drawer?

If yes delete it.

Then go to Settings => Apps => See all 999 apps and check for a Magisk app.

If there is a Magisk app delete it.

Then reflash magisk_patched-25200_r1Bfr.img

If you are not able to root, try using @badabing2003 Pixel Flasher to root.
 
Last edited:

dadnammit

Senior Member
Jun 24, 2013
62
12
@dadnammit,
If you are not able to root, try using @badabing2003 Pixel Flasher to root.

I appreciate all your suggestions. I tried the Pixel Flasher... what a cool tool !
I fullly reflashed the stock firmware from Dec 2022 (note my device has noy yet received the OTA update for Jan 2023).

Despite flashing a patched boot.img using the latest canary build of Magisk (831a398b) within the Pixel Flasher tool, it still didn't work...

1) The device boots normally.
2) Magisk does not have root (superuser and module buttons greyed out).
3) But a banking app now detects that I'm rooted. This was easily reverted when I reflashed the stock boot.img.

So, basically everything LOOKS like it should be working, but I'm not getting root!
 

Homeboy76

Senior Member
Aug 24, 2012
3,688
2,172
Google Pixel XL
Google Pixel 7 Pro
I appreciate all your suggestions. I tried the Pixel Flasher... what a cool tool !
I fullly reflashed the stock firmware from Dec 2022 (note my device has noy yet received the OTA update for Jan 2023).

Despite flashing a patched boot.img using the latest canary build of Magisk (831a398b) within the Pixel Flasher tool, it still didn't work...

1) The device boots normally.
2) Magisk does not have root (superuser and module buttons greyed out).
3) But a banking app now detects that I'm rooted. This was easily reverted when I reflashed the stock boot.img.

So, basically everything LOOKS like it should be working, but I'm not getting root!
Uninstalling and reinstalling the Magisk Manager apps should have fixed the superuser and module buttons greyed out problem.

Maybe @badabing2003 can help you use the Pixel Flasher tool to fix the superuser and module buttons greyed out problem.
 

badabing2003

Recognized Contributor
Sep 17, 2012
1,860
2,445
Uninstalling and reinstalling the Magisk Manager apps should have fixed the superuser and module buttons greyed out problem.

Maybe @badabing2003 can help you use the Pixel Flasher tool to fix the superuser and module buttons greyed out problem.
This is typically due to multiple Magisk managers being installed, if at any point, Magisk Manager was hidden, and then another Magisk manager was installed, you'd face issues as this.
@dadnammit you should first do is, uninstall all Magisk managers, hopefully you can find the hidden one, or at least you know the package name, if you did not rename the application when you hid, then it should be named settings.
If you have already applied patched boot, then reboot and just install Magisk Manager. and it should detect root.
You can confirm that you're rooted by doing
Code:
adb shell
su
if you get su, you're rooted.

If you are on stock, then just install Magisk Manager and flash the patched boot.
Whatever you do make sure you only have a single instance of Magisk manager.
 
  • Like
Reactions: Homeboy76

dadnammit

Senior Member
Jun 24, 2013
62
12
Oh my gosh. SOLVED!

Somehow I was not understanding the suggestions/steps here. The problem was indeed an old hidden Magisk app package. I removed all versions. Flashed the patched boot.img created previously by by Magisk v25.2, and then reinstalled Magisk Manager. All is working now!

Thanks!
 

Homeboy76

Senior Member
Aug 24, 2012
3,688
2,172
Google Pixel XL
Google Pixel 7 Pro
Oh my gosh. SOLVED!

Somehow I was not understanding the suggestions/steps here. The problem was indeed an old hidden Magisk app package. I removed all versions. Flashed the patched boot.img created previously by by Magisk v25.2, and then reinstalled Magisk Manager. All is working now!

Thanks!
No problem, glad you got root again. :)
Thanks @badabing2003!
 
  • Like
Reactions: badabing2003

Homeboy76

Senior Member
Aug 24, 2012
3,688
2,172
Google Pixel XL
Google Pixel 7 Pro
This is typically due to multiple Magisk managers being installed, if at any point, Magisk Manager was hidden, and then another Magisk manager was installed, you'd face issues as this.
@dadnammit you should first do is, uninstall all Magisk managers, hopefully you can find the hidden one, or at least you know the package name, if you did not rename the application when you hid, then it should be named settings.
If you have already applied patched boot, then reboot and just install Magisk Manager. and it should detect root.
You can confirm that you're rooted by doing
Code:
adb shell
su
if you get su, you're rooted.

If you are on stock, then just install Magisk Manager and flash the patched boot.
Whatever you do make sure you only have a single instance of Magisk manager.
Good information, I'm putting it im my "lessons learned" scrap book under "Magisk Manager app superuser and module buttons greyed out. :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    [Guide] Root Pixel 4a (5G) with Magisk + Unlock Bootloader + Pass SafetyNet + More
    Android Security Bulletin—March 2023
    Pixel Update Bulletin—March 2023

    Introduction
    This Guide is for Pixel 4a 5(G) 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)

    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

      • @creezalird- Flash Android 12 factory image.
      • 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. Notes:
          • This will erase all user data from the device!
          • Backup your data
        2. 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.
        3. Boot fastboot mode
        4. Connect the phone to the Computer with USB cord.
        5. Open a Command Prompt on your computer and type fastboot flashing unlock and press enter.
        6. You should see a request for confirmation on your phone, use the volume keys to scroll and the power key to select.
        7. Allow the process to complete and then type fastboot reboot at the Command Prompt and press enter.
        8. When your phone reboots disconnect your usb cable.
        9. 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 in the SDK Platform- tools folder, 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 4a 5(G) - bramble.
        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 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
          • Then type: fastboot Reboot
        6. If you are uncomfortable manually flashing the factory image. Try PixelFlasher by badabing2003.
          Please post Comments/Discussions/Questions about PixelFlasher on that thread.
        7. Backup your data
        8. Download the latest Factory Image: Pixel 4a 5(G) - bramble to your Computer.
        9. 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.
          @Echo off
          PATH=%PATH%;"%SYSTEMROOT%\System32"
          fastboot flash bootloader bootloader-bramble-a9-9.9-9999999.img
          fastboot reboot-bootloader
          ping -n 5 127.0.0.1 >nul
          fastboot flash radio radio-bramble-a9999a-999999-999999-a-9999999.img
          fastboot reboot-bootloader
          ping -n 5 127.0.0.1 >nul
          fastboot update image-bramble-tp1a.999999.999.zip
          Note:The -w is removed to Keep Data.
          echo Press any key to exit...
          pause >nul
          exit
          Note: It is a good idea to flash the Google factory image to both slots (A & B) when Upgrading to a 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 [U[Platform-tools[/U] folder:
          1. bootloader-bramble-....img
          2. flash-all.bat
          3. image-bramble-....zip
          4. radio-bramble-....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.
        • 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-bramble-aaaaaa-9.9-9999999.img
          fastboot reboot-bootloader
          ping -n 5 127.0.0.1 >nul
          fastboot flash radio radio-bramble-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-bramble-AA1A.999999.999.A9.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-bramble-....img
          2. flash-all.bat
          3. image-bramble-....zip
          4. radio-bramble-....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 'Developer'.
          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 the latest 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 had Mods installed, 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 Rebootp
    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 25.0/Stable 24.3 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, I 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 4a5(G) 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.
    3
    Provided you are not on Verizon:
    Try reinstalling the stock boot.img from the update, flash the OTA, or perform another clean install. After first boot and performing any necessary setup (if clean install), power off phone, remove sim card, reboot. Creat a new patched boot.img, install it and reboot. Turn phone off, reinstall sim card, reboot as normal. Should fix the issue. Make sure you are using the latest magisk (I prefer stable of canary personally but it's your call).
    If you are on verizon, do not install the April update in this thread, as it is stated "All carriers EXCEPT Verizon."

    However, there is an OTA update on the official frimware website that does work on Verizon. I just flashed it myself. Maybe Homeboy76 could update thread?
    :( Do not repeat do not follow these instructions. The information is only partially correct. :(

    I just checked the Factory image and the OTA image pages the only change was the All carriers EXCEPT Verizon has been removed from the images description.

    The OP has been updated to reflect the change.

    These images work on Verizon Pixel 4a 5g phones.
    3
    Thanks for the write-up. Just got one of these as I dropped my old phone, and I was due anyways. So question regarding Safetynet. I went ahead and went with the latest Feb factory image, patched the boot and rooted with Magisk, then tried the safety net and attestation fails. Anybody have the feb patch and passing safetynet? if so what was the sequence you used? thanks
    - Root with Magisk patched img
    - Open Magisk Manager install SafetyNet module
    - Reboot
    - Open Magisk Manager Enable Magisk hide
    - Hide Google Play store, Google pay, etc
    - Clear cache and storage for the above apps
    - Reboot
    3
    hi @Homeboy76 ,
    maybe i'm wrong, but in your
    Prerequisites

    1. A Pixel 4a 5(G) phone with an unlocked bootloader.
    2. The latest Android 11 (R) Factory or OTA Image: "bramble" for Pixel 4a 5(G)
    3. Factory Image
    also at:
    4. Install/Update Factory Image keep or wipe data
    Just checked
    It is pointing to the Pixel 4a 5(G) bramble factory image.

    Download the latest Factory Image: Pixel 5 - bramble to your Computer. --> pixel 5 (only text)? Fixed!
    2
    Thanks for the write-up. Just got one of these as I dropped my old phone, and I was due anyways. So question regarding Safetynet. I went ahead and went with the latest Feb factory image, patched the boot and rooted with Magisk, then tried the safety net and attestation fails. Anybody have the feb patch and passing safetynet? if so what was the sequence you used? thanks

    You need Universal Safetynet fix v 1.1.1 Magisk module.