How To Guide [Guide] Root Pixel 6 with Magisk + Unlock Bootloader + Pass SafetyNet + More

Search This thread

Homeboy76

Senior Member
Aug 24, 2012
3,434
1,990
Google Pixel XL
Google Pixel 7 Pro
[Guide] Root Pixel 6 with Magisk + Unlock Bootloader + Pass SafetyNet + More
Android Security Bulletin—November 2022
Pixel Update Bulletin—November 2022

Introduction
This Guide is for Pixel 6 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.
    • 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 an item.
  2. Prerequisites

  3. Update(s)

  4. NEW

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

    • @topjohnwu - Magisk.
    • vvb2060 - Magisk alpha.
    • 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. Settings > System > Advanced > Reset Options > Erase all data (factory reset)
      3. Log in
      4. Set up phone
    • Lock Bootloader

      1. Return the phone to Stock before locking the bootloader, failure to do so could 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 use @badabing2003 PixelFlasher (the link to it is in the Important Note(s) 2.) below.

    • Important Note(s):
      1. "Updating Pixel 6, Pixel 6 Pro, and Pixel 6a devices to Android 13 for the first time

        Warning: The Android 13 update for Pixel 6, Pixel 6 Pro, and the Pixel 6a contains a bootloader update that increments the anti-roll back version for the bootloader. This prevents the device from rolling back to previous vulnerable versions of the bootloader. After flashing an Android 13 build on these devices you will not be able to flash and boot older Android 12 builds. For developers who need to develop and test against an Android 12 environment, a special Developer Support Build that contains the bootloader update should be used.

        After taking an Android 13 update and successfully booting the device post update, an Android 12 build resides in the inactive slot (seamless updates for more information on slots) of the device. The inactive slot contains an older bootloader whose anti-rollback version has not been incremented. If the active slot is then flashed with a build that fails to boot, the fallback mechanism of seamless updates kicks in and the device tries to boot from the inactive slot. Since the inactive slot contains the older bootloader, the device enters an unbootable state.

        To avoid hitting this state, if you are flashing a Pixel 6, Pixel 6a, or Pixel 6 Pro device with an Android 13 build for the first time, please flash the bootloader partition to the inactive slot"...
      2. If you are uncomfortable mannually flashing the factory image. Try PixelFlasher by @badabing2003.
        Please post Comments/Discussions/Questions about the PixelFlasher on that thread.
      3. If you want to update to the Android 13 Factory/OTA image without wiping your phone and your phone is rooted. Open Magisk and delete all the modules or uninstall Magisk. Do Flash Factory Image Keep Data (below).
      4. Always verify you have the latest version of SDK Platform-Tools installed on your computer before installing the Factory Image: Pixel 6 - oriole.
      5. 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.
      6. 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
      7. Backup your data
      8. Download the latest Factory Image: Pixel 6 - oriole 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

      • Open the folder you extracted the Factory Image to and edit the flash-all.bat file to Upgrade to Android 13 or Update Android 13 with a text editor i.e., DroidEdit app (See Bold items below).

        Upgrade To Android 13 (First Time Installing Android 13)
        * * * S T A R T - E D I T * * *
        @Echo off

        PATH=%PATH%;"%SYSTEMROOT%\System32"
        fastboot flash bootloader bootloader-oriole-slider-9.9-9999999.img --slot all
        fastboot reboot-bootloader
        timeout /t 5 >nul
        fastboot flash radio radio-oriole-a9999a-999999-999999-a-9999999.img --slot all
        fastboot reboot-bootloader
        timeout /t 5 >nul
        fastboot -- skip-reboot update image-oriole-aa9a.999999.999.zip
        Note: I replaced the -w with -- skip-reboot to Keep Data.
        fastboot reboot-bootloader
        timeout /t 5 >nul
        fastboot --set-active=other
        timeout /t 10 >nul
        fastboot reboot-bootloader
        timeout /t 5 >nul
        fastboot update image-oriole-aa9a.999999.999.zip
        echo Press any key to exit...
        pause >nul
        exit
        * * * * E N D - Edit * * * *

        Update Android 13
        * * * S T A R T - E D I T * * *
        @Echo off

        PATH=%PATH%;"%SYSTEMROOT%\System32"
        echo Change active slot
        fastboot getvar current-slot
        fastboot --set-active=other
        fastboot reboot-bootloader
        ping -n 5 127.0.0.1 >nul
        fastboot getvar current-slot

        fastboot flash bootloader bootloader-oriole-slider-9.9-9999999.img
        fastboot reboot-bootloader
        timeout /t 5 >nul
        fastboot flash radio radio-oriole-a99999-999999-999999-a-9999999.img
        fastboot reboot-bootloader
        timeout /t 5 >nul
        fastboot update image-oriole-aa9a.999999.999.zip
        Note: I removed the -w to Keep Data.
        echo Press any key to exit...
        pause >nul
        exit
        * * * * * * E N D * * * * * *
      • After, you have edited the flash-all.bat file. Copy/Move these files to the Platform-tools folder:
        1. bootloader-oriole-....img
        2. flash-all.bat
        3. image-oriole-....zip
        4. radio-oriole-....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 Internal Storage.
      • Open the folder you extracted the Factory Image to and edit the flash-all.bat file with a text editor i.e., DroidEdit app (See Bold items below).

        Upgrade To Android 13 (First Time Installing Android 13)
        * * * S T A R T - E D I T * * *
        @Echo off
        PATH=%PATH%;"%SYSTEMROOT%\System32"
        fastboot flash bootloader bootloader-oriole-slider-9.9-9999999.img --slot all
        fastboot reboot-bootloader
        timeout /t 5 >nul
        fastboot flash radio radio-oriole-a9999a-999999-999999-a-9999999.img --slot all
        fastboot reboot-bootloader
        timeout /t 5 >nul
        fastboot -w update image-oriole-aa9a.999999.999.zip
        echo Press any key to exit...
        pause >nul
        exit
        * * * E N D - E D I T * * *
      • After, you have edited the flash-all bat file. Open the folder you extracted the Factory Image to and Copy/Move these files to the Platform-tools folder:
        1. bootloader-oriole-....img
        2. flash-all.bat
        3. image-oriole-....zip
        4. radio-oriole-....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.
    • @badabing2003 Google Pixel 6 PixelFlasher Support thread
  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 instruction to remove the Custom Kernel and return your phone to Stock. Additionally, if you installed Mod 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 (oriole-a9a9a.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-oriole-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 Notes: 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.
    • Pass Safety Net with SafetyNet Fix

      1. Download File(s)
      2. Install Displax/safetynet-fix-v2.3.1-MOD_2.0.zip
        • Open Magisk
        • Tap Modules icon
        • Tap Install from storage
        • Navigate to the Displax/safetynet-fix-v2.3.1-MOD_2.0.zip file you downloaded
        • Tap the Displax/safetynet-fix-v2.3.1-MOD_2.0.zip file
        • Tap the check mark (✓ at the bottom) to start the installation.
        • Note: You do not have to disable/remove SafetyNet Fix.
        • 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.
        • Do not 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 Store, Google Play Services, 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 & 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. Alpha/Beta

        • Waiting...
      2. Official

        • Waiting...
      3. Unofficial
  2. Mods
  3. T.W.R.P. Backup/Restore

    • Waiting for Android 13 T.W.R.P.
 
Last edited:

bobby janow

Senior Member
Jun 15, 2010
6,508
2,457
[Guide] Root Pixel 6 Android 12 with Magisk + Unlock/Lock Bootloader + More
Android Security Bulletin—January 2022
Pixel Update Bulletin—January 2022

Introduction
This Guide is for Pixel 6 owners that want to Root their phone, and enjoy the benefits of rooting it without installing a Custom ROM. However, for those that just can't live without a Custom ROM, take a look at 'Custom ROMs for Pixel 5'.

NEW

  1. Understand 5G network...
  2. With the Magisk Canary update to 23016, there is no longer a need to wipe or --disable verity -- disable verification
  3. Magisk Alpha (vvb2060)
  4. The differences between the different variants of Magisk
  5. Magisk Modules for Magisk Alpha/Canary


Update(s)

  1. Factory/OTA Images - Jan
  2. Magisk Canary - Magisk-23016 15Dec
  3. TWRP - Waiting for T.R.W.P. for Android 12
  4. SafetyNet - SafetyNetFix v2.2.1 (Zygisk) 22Dec
  5. SDK Platform-tools - r31.0.3 18Aug
  6. Custom ROMs[/INDENT]
  7. Custom Kernels[/INDENT]


  8. Custom ROMs
    a. ProtonAOSP[12] 01Nov


Disclaimer

  1. I assume no responsibility for the malfunctioning/bricking of your phone.
  2. 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 an item.

Prerequisites

  1. A Pixel 6 phone with an unlocked bootloader.
  2. The latest Android 12 Factory or OTA Image: "oriole" for Pixel 6

    Factory Image

    OTA Image
  3. A Computer with the latest SDK Platform-Tools: r31.0.3 installed.
  4. Important Notes:
    a. Update Platform Tools, regularly, for optimal performance.​


My Other Guides

Credits/Thanks/Recognitions

  1. Google - Android 12 factory/OTA images.
  2. @topjohnwu - Magisk.
  3. vb2060 - Magisk alpha.
  4. Those I may have, inadvertently, forgotten.

~ ~ ~ INSTRUCTIONS ~ ~ ~

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. Settings > System > Advanced > Reset Options > Erase all data (factory reset)
    3. Log in
    4. Set up phone
  • Lock Bootloader

    1. Return the phone to Stock before locking the bootloader, failure to do so could 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.

Install/Update Factory Image keep data or wipe data

  • Important Note(s):
    1. Install Magisk Canary 23016
      Note: Tap 3 dot menu across from canary => Download, app-debug.apk
    2. Always verify you have the latest version of SDK Platform-Tools installed on your computer before installing the Factory Image: Pixel 6 - oriole.
    3. 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.
    4. Backup your data
    5. Download the latest Factory Image: Pixel 6 - oriole to your Computer.
    6. Extract the factory Image to a folder.
  • Flash Factory Image Keep Data

    • Open the folder you extracted the Factory Image to and Edit the flash-all.bat file with a file editor i.e., DroidEdit app.
      1. Change this line: fastboot -w update image-oriole-sq9d.999999.999.zip
      2. to this: fastboot update image-oriole-sq1d.999999.999.zip
      3. Note: If you do not remove the -w your internal storage will be wiped.
    • After, you have edited the flash-all.bat file. Copy/Move these files to the Platform-tools folder:
      1. bootloader-oriole-....img
      2. flash-all.bat
      3. image-oriole-....zip
      4. radio-oriole-....img
    • 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 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 Internal Storage.
    • Open the folder you extracted the Factory Image to and Copy/Move these files to the Platform-tools folder:
      1. bootloader-oriole-....img
      2. flash-all.bat
      3. image-oriole-....zip
      4. radio-oriole-....img
    • 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 Root/Reroot with Magisk and Pass SafetyNet, • Patching the boot.img - to root/reroot.

Root/Reroot with Magisk and Pass SafetyNet.

  • Android 12

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

    1. Do #6 - Extract boot.img
    2. Install Magisk Canary
      Note: Tap 3 dot menu across from canary => Tap Go to file => Download, app-debug.apk
    3. Open Magisk Canary App
    4. Set the Update Channel Canary.
    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 the patched boot.img file to your computer's Platform-tools folder or the folder that has fastboot.exe in it.
    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 Notes: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
      • Boot Safe Mode - Press Power Off button ==> Press Power Off until you see boot Safe Mode ==> Press Ok.
  • Pass Safety Net with SafetyNet Fix 2.2.1

    1. Download File(s)
    2. Install SafetyNet Fix 2.2.1
      • Open Magisk
      • Tap Modules icon
      • Tap Install from storage
      • Navigate to the SafetyNetFix file you downloaded
      • Tap the SafetyNetFix 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 and Enforce DenyList.
      • Tap Configure DenyList => Tap 3 Dot Menu => Check ✓ Show system apps => Check ✓ Google Play Store, Google Pay, etc.
      • Optional Scroll down to Superuser and enable Enable Biometric Authentication.
    4. Get Device Certified Clear Google Play Services, Google Play Store, Google Pay, etc. data
      • 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, etc.
      • reboot
      • Turn Airplane mode off
    5. Check Device Certification
      • Open Google Play Store app
      • Tap Menu - Circle top right
      • Tap Settings
      • Tap About
      • Check Play protect certification.

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.

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.

ADB Sideload


Extract/Flash boot.img

  • Extract boot.img

    1. Download the latest Factory image to your phone.
    2. Extract the Factory Image file (oriole-sp1d.999999.999-factory-99a9a99a.zip) to a folder.
    3. Open the folder and, extract the Image file (image-oriole-sp1d.999999.999.zip) into the folder.
    4. Copy the boot.img file to the computer's Platform-tools 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

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!

Custom ROMs

  • Need help with a Custom ROM?
    • First, read and follow the Installation Instructions. The installation instructions are in the OP.
    • Second, if you have a problem Installing it, Search the thread of the Custom ROM you are trying to install for a solution to problem: If you don't find a solution post your request for help on the thread.
  • ROMs
    1. Alpha/Beta

      • None
    2. Official

      • None
    3. Unofficial

Apps/Mods/Scripts/Tethering/Themes

T.W.R.P. Backup/Restore

  • Waiting for Android 12 T.W.R.P.
Great resource, thanks. Think you can put it in the How To Guide so it's easy to find?
 
  • Like
Reactions: Homeboy76

Homeboy76

Senior Member
Aug 24, 2012
3,434
1,990
Google Pixel XL
Google Pixel 7 Pro
Great resource, thanks. Think you can put it in the How To Guide so it's easy to find?
XDA Staff moved it. (y) Are you suggesting I should make a Guide for the Pixel 6 Pro? :)
 
Last edited:
  • Like
Reactions: bobby janow

Project_WHaT

Member
Nov 3, 2016
18
3
OnePlus 6
Google Pixel 6
When I go to patch the boot.img I get an error in Magisk

Code:
- Device platform: arm64-v8a
- Installing 92546e8a (23016)
! Process error
! Installation failed

In the logs, I see the following error in the stack trace

Code:
java.io.FileNotFoundException: /storage/emulated/0/boot.img: open failed: EACCES (Permission denied)

It seems like Magisk doesn't have permission to access the boot image?

EDIT:
Nevermind, it was caused by the app I was using to select the file. I used Google's default Files app and that fixed it
 
  • Like
Reactions: Homeboy76

deadliving

Member
Mar 20, 2018
10
0

[Guide] Root Pixel 6 Android 12 with Magisk + Unlock/Lock Bootloader + More
Android Security Bulletin—January 2022
Pixel Update Bulletin—January 2022

Introduction
This Guide is for Pixel 6 owners that want to Root their phone, and enjoy the benefits of rooting it without installing a Custom ROM. However, for those that just can't live without a Custom ROM, take a look at 'Custom ROMs for Pixel 6'.

NEW

  1. Understand 5G network...
  2. With the Magisk Canary update to 23016, there is no longer a need to wipe or --disable verity -- disable verification
  3. Magisk Alpha (vvb2060)
  4. The differences between the different variants of Magisk
  5. Magisk Modules for Magisk Alpha/Canary


Update(s)

  1. Factory/OTA Images - Jan
  2. Magisk Canary - Magisk-23016 15Dec
  3. TWRP - Waiting for T.R.W.P. for Android 12
  4. SafetyNet - SafetyNetFix v2.2.1 (Zygisk) 22Dec
  5. SDK Platform-tools - r31.0.3 18Aug
  6. Custom ROMs[/INDENT]
  7. Custom Kernels[/INDENT]


  8. Custom ROMs
    a. ProtonAOSP[12] 01Nov


Disclaimer

  1. I assume no responsibility for the malfunctioning/bricking of your phone.
  2. 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 an item.

Prerequisites

  1. A Pixel 6 phone with an unlocked bootloader.
  2. The latest Android 12 Factory or OTA Image: "oriole" for Pixel 6

    Factory Image

    OTA Image
  3. A Computer with the latest SDK Platform-Tools: r31.0.3 installed.
  4. Important Notes:
    a. Update Platform Tools, regularly, for optimal performance.​


My Other Guides

Credits/Thanks/Recognitions

  1. Google - Android 12 factory/OTA images.
  2. @topjohnwu - Magisk.
  3. vvb2060 - Magisk alpha.
  4. Those I may have, inadvertently, forgotten.

~ ~ ~ INSTRUCTIONS ~ ~ ~

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. Settings > System > Advanced > Reset Options > Erase all data (factory reset)
    3. Log in
    4. Set up phone
  • Lock Bootloader

    1. Return the phone to Stock before locking the bootloader, failure to do so could 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.

Install/Update Factory Image keep data or wipe data

  • Important Note(s):
    1. Install Magisk Canary 23016
      Note: Tap 3 dot menu across from canary => Download, app-debug.apk
    2. Always verify you have the latest version of SDK Platform-Tools installed on your computer before installing the Factory Image: Pixel 6 - oriole.
    3. 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.
    4. Backup your data
    5. Download the latest Factory Image: Pixel 6 - oriole to your Computer.
    6. Extract the factory Image to a folder.
  • Flash Factory Image Keep Data

    • Open the folder you extracted the Factory Image to and Edit the flash-all.bat file with a file editor i.e., DroidEdit app.
      1. Change this line: fastboot -w update image-oriole-sq9d.999999.999.zip
      2. to this: fastboot update image-oriole-sq1d.999999.999.zip
      3. Note: If you do not remove the -w your internal storage will be wiped.
    • After, you have edited the flash-all.bat file. Copy/Move these files to the Platform-tools folder:
      1. bootloader-oriole-....img
      2. flash-all.bat
      3. image-oriole-....zip
      4. radio-oriole-....img
    • 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 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 Internal Storage.
    • Open the folder you extracted the Factory Image to and Copy/Move these files to the Platform-tools folder:
      1. bootloader-oriole-....img
      2. flash-all.bat
      3. image-oriole-....zip
      4. radio-oriole-....img
    • 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 Root/Reroot with Magisk and Pass SafetyNet, • Patching the boot.img - to root/reroot.

Root/Reroot with Magisk and Pass SafetyNet.

  • Android 12

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

    1. Do #6 - Extract boot.img
    2. Install Magisk Canary
      Note: Tap 3 dot menu across from canary => Tap Go to file => Download, app-debug.apk
    3. Open Magisk Canary App
    4. Set the Update Channel Canary.
    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 the patched boot.img file to your computer's Platform-tools folder or the folder that has fastboot.exe in it.
    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 Notes: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
      • Boot Safe Mode - Press Power Off button ==> Press Power Off until you see boot Safe Mode ==> Press Ok.
  • Pass Safety Net with SafetyNet Fix 2.2.1

    1. Download File(s)
    2. Install SafetyNet Fix 2.2.1
      • Open Magisk
      • Tap Modules icon
      • Tap Install from storage
      • Navigate to the SafetyNetFix file you downloaded
      • Tap the SafetyNetFix 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 and Enforce DenyList.
      • Tap Configure DenyList => Tap 3 Dot Menu => Check ✓ Show system apps => Check ✓ Google Play Store, Google Pay, etc.
      • Optional Scroll down to Superuser and enable Enable Biometric Authentication.
    4. Get Device Certified Clear Google Play Services, Google Play Store, Google Pay, etc. data
      • 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, etc.
      • reboot
      • Turn Airplane mode off
    5. Check Device Certification
      • Open Google Play Store app
      • Tap Menu - Circle top right
      • Tap Settings
      • Tap About
      • Check Play protect certification.

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.

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.

ADB Sideload


Extract/Flash boot.img

  • Extract boot.img

    1. Download the latest Factory image to your phone.
    2. Extract the Factory Image file (oriole-sp1d.999999.999-factory-99a9a99a.zip) to a folder.
    3. Open the folder and, extract the Image file (image-oriole-sp1d.999999.999.zip) into the folder.
    4. Copy the boot.img file to the computer's Platform-tools 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

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!

Custom ROMs

  • Need help with a Custom ROM?
    • First, read and follow the Installation Instructions. The installation instructions are in the OP.
    • Second, if you have a problem Installing it, Search the thread of the Custom ROM you are trying to install for a solution to problem: If you don't find a solution post your request for help on the thread.
  • ROMs
    1. Alpha/Beta

      • None
    2. Official

      • None
    3. Unofficial

Apps/Mods/Scripts/Tethering/Themes

T.W.R.P. Backup/Restore

  • Waiting for Android 12 T.W.R.P.
C:\Users\Derek>fastboot flash boot C:\Users\Derek\Desktop\magisk_patched-23016_zt99Y.img
target reported max download size of 261095424 bytes
sending 'boot' (65536 KB)...
OKAY [ 1.853s]
writing 'boot'...
FAILED (remote: partition (boot) not found)
finished. total time: 1.869s

This is the error i get. Even when trying the stock boot.img

What can i do to fix this?
 

Homeboy76

Senior Member
Aug 24, 2012
3,434
1,990
Google Pixel XL
Google Pixel 7 Pro
C:\Users\Derek>fastboot flash boot C:\Users\Derek\Desktop\magisk_patched-23016_zt99Y.img
target reported max download size of 261095424 bytes
sending 'boot' (65536 KB)...
OKAY [ 1.853s]
writing 'boot'...
FAILED (remote: partition (boot) not found)
finished. total time: 1.869s

This is the error i get. Even when trying the stock boot.img

What can i do to fix this?
I'm assuming you have the latest version of SDK Platform-tools r. 31.0.3 installed on your computer, there are no typing errors on the command fastboot..., USB debugging is enabled, and fastboot.exe is in this folder:
C:\Users\Derek\Desktop

Try opening Command Prompt in this folder:
C:\Users\Derek\Desktop
Then type:
fastboot flash boot magisk_patched-23016_zt99Y.img to flash it.
 

Nightf0x_007

Senior Member
Nov 5, 2012
701
75
After jan. Update my device when rebooting shows ypur device is corrupted before the unlocked bootloader screen warning is this normal? Wasnt there in dec. Update
 

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    [Guide] Root Pixel 6 with Magisk + Unlock Bootloader + Pass SafetyNet + More
    Android Security Bulletin—November 2022
    Pixel Update Bulletin—November 2022

    Introduction
    This Guide is for Pixel 6 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.
      • 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 an item.
    2. Prerequisites

    3. Update(s)

    4. NEW

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

      • @topjohnwu - Magisk.
      • vvb2060 - Magisk alpha.
      • 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. Settings > System > Advanced > Reset Options > Erase all data (factory reset)
        3. Log in
        4. Set up phone
      • Lock Bootloader

        1. Return the phone to Stock before locking the bootloader, failure to do so could 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 use @badabing2003 PixelFlasher (the link to it is in the Important Note(s) 2.) below.

      • Important Note(s):
        1. "Updating Pixel 6, Pixel 6 Pro, and Pixel 6a devices to Android 13 for the first time

          Warning: The Android 13 update for Pixel 6, Pixel 6 Pro, and the Pixel 6a contains a bootloader update that increments the anti-roll back version for the bootloader. This prevents the device from rolling back to previous vulnerable versions of the bootloader. After flashing an Android 13 build on these devices you will not be able to flash and boot older Android 12 builds. For developers who need to develop and test against an Android 12 environment, a special Developer Support Build that contains the bootloader update should be used.

          After taking an Android 13 update and successfully booting the device post update, an Android 12 build resides in the inactive slot (seamless updates for more information on slots) of the device. The inactive slot contains an older bootloader whose anti-rollback version has not been incremented. If the active slot is then flashed with a build that fails to boot, the fallback mechanism of seamless updates kicks in and the device tries to boot from the inactive slot. Since the inactive slot contains the older bootloader, the device enters an unbootable state.

          To avoid hitting this state, if you are flashing a Pixel 6, Pixel 6a, or Pixel 6 Pro device with an Android 13 build for the first time, please flash the bootloader partition to the inactive slot"...
        2. If you are uncomfortable mannually flashing the factory image. Try PixelFlasher by @badabing2003.
          Please post Comments/Discussions/Questions about the PixelFlasher on that thread.
        3. If you want to update to the Android 13 Factory/OTA image without wiping your phone and your phone is rooted. Open Magisk and delete all the modules or uninstall Magisk. Do Flash Factory Image Keep Data (below).
        4. Always verify you have the latest version of SDK Platform-Tools installed on your computer before installing the Factory Image: Pixel 6 - oriole.
        5. 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.
        6. 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
        7. Backup your data
        8. Download the latest Factory Image: Pixel 6 - oriole 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

        • Open the folder you extracted the Factory Image to and edit the flash-all.bat file to Upgrade to Android 13 or Update Android 13 with a text editor i.e., DroidEdit app (See Bold items below).

          Upgrade To Android 13 (First Time Installing Android 13)
          * * * S T A R T - E D I T * * *
          @Echo off

          PATH=%PATH%;"%SYSTEMROOT%\System32"
          fastboot flash bootloader bootloader-oriole-slider-9.9-9999999.img --slot all
          fastboot reboot-bootloader
          timeout /t 5 >nul
          fastboot flash radio radio-oriole-a9999a-999999-999999-a-9999999.img --slot all
          fastboot reboot-bootloader
          timeout /t 5 >nul
          fastboot -- skip-reboot update image-oriole-aa9a.999999.999.zip
          Note: I replaced the -w with -- skip-reboot to Keep Data.
          fastboot reboot-bootloader
          timeout /t 5 >nul
          fastboot --set-active=other
          timeout /t 10 >nul
          fastboot reboot-bootloader
          timeout /t 5 >nul
          fastboot update image-oriole-aa9a.999999.999.zip
          echo Press any key to exit...
          pause >nul
          exit
          * * * * E N D - Edit * * * *

          Update Android 13
          * * * S T A R T - E D I T * * *
          @Echo off

          PATH=%PATH%;"%SYSTEMROOT%\System32"
          echo Change active slot
          fastboot getvar current-slot
          fastboot --set-active=other
          fastboot reboot-bootloader
          ping -n 5 127.0.0.1 >nul
          fastboot getvar current-slot

          fastboot flash bootloader bootloader-oriole-slider-9.9-9999999.img
          fastboot reboot-bootloader
          timeout /t 5 >nul
          fastboot flash radio radio-oriole-a99999-999999-999999-a-9999999.img
          fastboot reboot-bootloader
          timeout /t 5 >nul
          fastboot update image-oriole-aa9a.999999.999.zip
          Note: I removed the -w to Keep Data.
          echo Press any key to exit...
          pause >nul
          exit
          * * * * * * E N D * * * * * *
        • After, you have edited the flash-all.bat file. Copy/Move these files to the Platform-tools folder:
          1. bootloader-oriole-....img
          2. flash-all.bat
          3. image-oriole-....zip
          4. radio-oriole-....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 Internal Storage.
        • Open the folder you extracted the Factory Image to and edit the flash-all.bat file with a text editor i.e., DroidEdit app (See Bold items below).

          Upgrade To Android 13 (First Time Installing Android 13)
          * * * S T A R T - E D I T * * *
          @Echo off
          PATH=%PATH%;"%SYSTEMROOT%\System32"
          fastboot flash bootloader bootloader-oriole-slider-9.9-9999999.img --slot all
          fastboot reboot-bootloader
          timeout /t 5 >nul
          fastboot flash radio radio-oriole-a9999a-999999-999999-a-9999999.img --slot all
          fastboot reboot-bootloader
          timeout /t 5 >nul
          fastboot -w update image-oriole-aa9a.999999.999.zip
          echo Press any key to exit...
          pause >nul
          exit
          * * * E N D - E D I T * * *
        • After, you have edited the flash-all bat file. Open the folder you extracted the Factory Image to and Copy/Move these files to the Platform-tools folder:
          1. bootloader-oriole-....img
          2. flash-all.bat
          3. image-oriole-....zip
          4. radio-oriole-....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.
      • @badabing2003 Google Pixel 6 PixelFlasher Support thread
    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 instruction to remove the Custom Kernel and return your phone to Stock. Additionally, if you installed Mod 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 (oriole-a9a9a.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-oriole-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 Notes: 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.
      • Pass Safety Net with SafetyNet Fix

        1. Download File(s)
        2. Install Displax/safetynet-fix-v2.3.1-MOD_2.0.zip
          • Open Magisk
          • Tap Modules icon
          • Tap Install from storage
          • Navigate to the Displax/safetynet-fix-v2.3.1-MOD_2.0.zip file you downloaded
          • Tap the Displax/safetynet-fix-v2.3.1-MOD_2.0.zip file
          • Tap the check mark (✓ at the bottom) to start the installation.
          • Note: You do not have to disable/remove SafetyNet Fix.
          • 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.
          • Do not 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 Store, Google Play Services, 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 & 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. Alpha/Beta

          • Waiting...
        2. Official

          • Waiting...
        3. Unofficial
    2. Mods
    3. T.W.R.P. Backup/Restore

      • Waiting for Android 13 T.W.R.P.
    5
    I have modified the OP to make it easier to use. It has been divided into three parts: Information, Instructions, and Other.
    Tip: Read the, entire, Information Part first, then the Instructions for the operation you want to preform i.e., Install Factory image: Read Install/Update Factory Image keep data or wipe data, etc.
    5
    Thank you both @Lughnasadh and @capntrips!

    What's odd is I did reflash my boot image thinking that would fix but it didn't, had to reflash anew from sideload.

    Thanks again for the info
    Yeah, sometimes flashing an old boot image (it will fail to boot) and then flashing a new boot image works. Sometimes sideloading an OTA works. Sometimes just waiting for the next monthly OTA works. It's a crazy thing with this Pixel 6 series and the changes that have come with it.
    4
    Update
    SDK Platform-tools - r33.0.3