[Guide] Root Pixel 3 XL Android 10.0 (Q)

Search This thread

Homeboy76

Senior Member
Aug 24, 2012
3,445
1,999
Google Pixel XL
Google Pixel 7 Pro
[Guide] Root Pixel 3 XL Android 11 (R) Unlock/Lock Bootloader + Install Stock Images/Systemless Root2021
Android Security Bulletin—June 2021
Pixel Update Bulletin—June 2021

Introduction
  1. This Guide is for Pixel 3 XL 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 3 XL'.
  2. This Guide also works for Pixel 3 owners: If, they download the Pixel 3 files.

New
  1. Android 12 Developer Preview - Beta 2
  2. CalyxOS
  3. GrapheneOS

Update(s)
  1. Factory/OTA Images - 06/07
  2. Magisk Stable - Magisk-23.0 05/12
  3. Magisk Beta - Magisk-23.0 05/12
  4. Magisk Canary - Magisk-23xxx
  5. TWRP - Waiting for Android 11 (Q) TWRP
  6. SafetyNet - SafetyNetFix v1.1.1 01/16
  7. SDK Platform-tools - r31.0.2 April
  8. Custom Kernels
    • ElementalX (Check his Kernel Manager for latest update.)
    • Kirisakura v3.0.8_R 06/11
  9. Custom ROMs

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 3 XL phone with an unlocked bootloader.
  2. The latest Android 11 (R) Factory or OTA Image: "crosshatch" for Pixel 3 XL
  3. Computer - With the latest SDK Platform-Tools: r31.0.2 installed.
  4. Important: Update Platform Tools, regularly, for optimal performance.

Other Pixel XL Guides
[Guide] Pixel 4 XL Android 11 (R)

Credits/Thanks/Recognitions
  1. @topjohnwu - Magisk Canary
  2. @sliding_billy - His help editing this thread.
  3. Those I may have, inadvertently, forgotten.

Index
(NOTE: Numbers 1-11 are not steps, they are individual sets of instructions).
  1. Open a Command Prompt/Boot Fastboot Mode/Boot Recovery

    • Open Command Prompt on Computer

      1. Option 1 - Open File Explorer, click the platform-tools folder, press shift, right click, and select open command prompt here.
      2. Option 2 - Open File Explorer, click the platform-tools folder, highlight the directory information in the address bar or click the folder (left side of address bar) to highlight it type cmd and press enter.
      3. Notes:
    • Boot fastboot mode:

      • 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.
  2. 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 (#1)
    • 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.
  3. 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.
      10. After unlocking your bootloader, every time you reboot you'll see a warning: You will see this warning until, you relock the bootloader.
      11. Important: Do not relock your bootloader until you have returned the device to Stock..
    • Return Phone to Stock

      • Backup your data/Internal storage
      • Settings > System > Advanced > Reset Options > Erase all data (factory reset)
      • Log in
      • Set up phone
    • Lock Bootloader

      1. Do not lock the bootloader until you have returned the phone to stock. Failure to do so causes bricked phones.
      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.
  4. Install/Update Factory Image keep or wipe data

    • Important Note(s):
      1. When doing a major upgrade i.e., Android 10 (Q) to Android 11 (R): I recommend doing a clean install. What is a clean install?:
        • Doing a Factory reset prior to installing, major, update.
        • Using flash-all.bat file with the -w (Wipe Data).
      2. Always verify you have the latest version of SDK Platform-Tools installed on your computer before installing the Factory Image: Pixel 3 XL - crosshatch.
      3. If your phone was rooted, and you want to 'Keep Data'. Do this first unhide Magisk App (if you hid it) then Uninstall Magisk - Restore Images prior flashing the Factory image. Why? The changes in the Factory image may cause Magisk modules to fail. This will cause boot loops.
      4. If you get an error:when flashing, try one of these options:
        • Change the USB port to a non charging USB port.
        • Change the USB cord.
        • Change Computers.
      5. Backup your data
      6. Download the latest Factory Image: Pixel 3 XL - crosshatch to your Computer.
      7. Extract the factory Image to a folder.
    • Flash Factory Image Keep Data

      • Open the folder with the extracted the Factory Image and Edit the flash-all.bat file with a file editor i.e., Notepad. Remove -wfrom this command: fastboot -w update image-crosshatch-aa9a.999999.999.zip
        Note: If you do not remove the -w your Internal Storage will be wiped.
      • Copy/Move these files to the Platform-tools folder:
        1. bootloader-crosshatch-....img
        2. flash-all.bat
        3. image-crosshatch-....zip
        4. radio-crosshatch-....img
      • At the Command Promp type: flash-all and press enter.
      • System will reboot when flashing is complete.
      • Do #7 to root/reroot.
    • Flash Factory Image Wipe Data

      • This will wipe your Internal Storage.
      • Open the folder with the extracted the Factory Image.
      • Copy/Move these files to the Platform-tools folder:
        1. bootloader-crosshatch-....img
        2. flash-all.bat
        3. image-crosshatch-....zip
        4. radio-crosshatch-....img
      • Open a Command Prompt on your computer in the Platform-tools folder.
      • At the Command Prompt type: flash-all and press enter.
      • System will reboot when flashing is complete.
      • Do #7 to root/reroot.
  5. ADB Sideload

    • Stock Recovery
    • Custom Recovery - TWRP

      • Important notes:
        1. Charge your device.
        2. Enable USB Debugging on your phone.
        3. Install the latest version of SDK Platform-tools on your computer.
      • Open a command prompt in the computer's ADB folder: the folder with ADB.exe in it.
      • Put the (flashable zip) file you want to sideload in the computer's ADB folder.Copy the Zip file you want to install on your device to the ADB folder.
      • Connect your device to your computer using a USB cable.
      • Boot T.W.R.P.
        1. T.W.R.P installed: Boot fastboot mode ==> use volume buttons up/down until you see Recovery mode ==> press power botton.
        2. T.W.R.P. not installed: Boot T.W.R.P: Put twrp.img file in the computer's ADB folder ==> open a command prompt in ADB folder ==> at the prompt type fastboot flash boot "Name of twrp file.img" without the quotation marks.
      • When T.W.R.P boots tap Advanced ==> ADB Sideload.
      • ✓ the wipe Dalvik cache box
      • Swipe to start
      • On your Computer: Enter the following command at the command prompt. adb sideload <filename.Zip> i.e., adb sideload myfile.zip
      • You will see the progress of the sideloaded file.
      • When the file finishes sidloading, reboot your device.
      • Done!
  6. Extract/Flash boot.img

    • Extract boot.img

      • Download the latest Factory image to your phone.
      • Extract the Factory Image file (crosshatch-pda1a.999999.999-factory-99a9a99a.zip) to a folder.
      • Open the folder and, extract the Image file (image-crosshatch-aa9a.999999.999.zip).
    • Flash boot.img

      1. Note: Flashing this file 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. At the Command Prompt type: fastboot flash boot --slot all boot.img
      6. Reboot
  7. Root/Reroot with Magisk and Pass SafetyNet.

      1. Important Notes:
        When doing a major upgrade i.e., Android 10 (Q) to Android 11 (R). I recommend doing a clean install. What is a clean install?
        • Doing a Factory reset prior to installing, major, update.
        • Using flash-all.bat file without removing the -w.
      2. If your phone was rooted. Do this first unhide Magisk App (if you hid it) then Uninstall Magisk - Restore Images. Why? The changes in the Factory image may cause Magisk modules to fail. This will cause boot loops.
    • Download files:

      1. Magisk App - Download to your phone
      2. Custom Kernels - Download to your phone - install with Kernel Manager
      3. Kernel Manager - Download to your phone
    • Patch the boot.img

      1. Do #6 - Extract boot.img
      2. Install Magisk (Beta, Canary or Stable) App
      3. Open Magisk App
      4. Depending on the version of Magisk App installed: Set the Update Channel to Beta, Canary or Stable.
      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 ✓
      9. Tap Let's Go
      10. When you see done, the boot.img has been patched (magisk_patched_xxxxx.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 (#1)
      14. Connect the phone to the Computer with USB cord.
      15. Open a Command Prompt (#1) 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
        • Boot Safe Mode - Press Power Off button ==> Press Power Off until you see boot Safe Mode ==> Press Ok == > wait for it to boot ==> Reboot.
    • Pass SafetyNet: MAGISK MODULE ❯ Universal SafetyNet Fix 1.1.0

      1. Download SafetyNetFix from the link above.
      2. Open Magisk Canary App
        • Tap Modules icon.
        • Tap Install from storage
        • navigate to the SafetyNetFix file
        • Hightlight the file (tap it)
        • Tap the check mark (✓) to start the installation.
        • After it installs tap the Save icon to save the log
        • Tap Reboot.
      3. Open Magisk Canary App
        • Tap the Setup icon.
        • Scroll down to Magisk - MagiskHide and enable it.
        • Tap back arrow => tap Superuser icon => tap MagiskHide => Scroll to the bottom of the page => Tap Search icon => Tap Show system apps (Under Filters) => check (✓): Google play services (com.google.android.gms).
        • Close Magisk Manager.
      4. Open Settings
        • Tap Apps & notifications
        • Tap see all 999 apps
        • Tap the three dot menu
        • Tap Show system
        • Scroll down to Google Play Store
        • Tap it
        • Tap Storage & cache
        • Tap Clear cache
        • Tap Clear storage
        • Exit settings
        • reboot
      5. Open Google Play Store app
        • Tap Menu
        • Tap Settings
        • Scroll down to Play protect certification
        • check for Device certification.
  8. Set Magisk App Update Channel/Update Magisk

    • Set Magisk App Update Channel

      • Open Magisk App > Tap menu icon > Settings > 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/MagiskManager/logs/install_log_
      7. Tap, Reboot
      8. Done
  9. Custom ROMs

  10. Mods/Scripts/Themes
  11. T.W.R.P. Backup/T.W.R.P Update

    • Waiting for Android 11 (R) T.W.R.P.
 
Last edited:

r3act

Senior Member
Dec 22, 2011
298
151
Sometimes @home
Why on earth would anyone go through all these steps AND lock their bootloader when just using flashall.bat with -w intact also wipes your entire phone?!
 

vette8t7

Member
Sep 23, 2010
25
0
@Homeboy76 did this work for you? Was getting ready to do a clean install and while researching what the delta of 19 and 20 was, I see talk of sensors not working?
 

ginfest

Senior Member
Hi,
Great guide, appreciate it.
I'm on Android 9 rooted with magisk. when I try to install Android 10 I get an error below. Latest platform tools, Bonito .20 Any ideas what is wrong? Flashed multiple time through the Pie security updates etc and never had an issue.
_________________________________________________________________________________
F:\platform-tools>flash-all
Sending 'bootloader_a' (8349 KB) OKAY [ 0.298s]
Writing 'bootloader_a' (bootloader) Flashing Pack version b4s4-0.2-5736883
(bootloader) xbl signature verify fail
FAILED (remote: 'Validate packed image fail')
fastboot: error: Command failed
Rebooting into bootloader OKAY [ 0.048s]
Finished. Total time: 0.051s
Sending 'radio_a' (73196 KB) OKAY [ 1.798s]
Writing 'radio_a' (bootloader) Flashing Pack version SSD:g670-00025-190805-B-5781381
(bootloader) Flashing partition modem_a
OKAY [ 0.298s]
Finished. Total time: 2.376s
Rebooting into bootloader OKAY [ 0.048s]
Finished. Total time: 0.051s
--------------------------------------------
Bootloader Version...: b1c1-0.1-5191736
Baseband Version.....: g670-00025-190805-B-5781381
Serial Number........: 8A5Y0F91G
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product' FAILED

Device product is 'crosshatch'.
Update requires 'bonito' or 'sargo'.

fastboot: error: requirements not met!
Press any key to exit...
_________________________________________________________________
 

Attachments

  • fastboot_error.jpg
    fastboot_error.jpg
    173 KB · Views: 865

krs360

Senior Member
Hi,
Great guide, appreciate it.
I'm on Android 9 rooted with magisk. when I try to install Android 10 I get an error below. Latest platform tools, Bonito .20 Any ideas what is wrong? Flashed multiple time through the Pie security updates etc and never had an issue.

........

Device product is 'crosshatch'.
Update requires 'bonito' or 'sargo'.

You've downloaded the wrong image. Are you on a 3a XL (Bonito) or regular 3 XL (Crosshatch)??

Download the correct image from here: https://developers.google.com/android/images
 
  • Like
Reactions: hitfeed3

ginfest

Senior Member
You've downloaded the wrong image. Are you on a 3a XL (Bonito) or regular 3 XL (Crosshatch)??

Download the correct image from here: https://developers.google.com/android/images

Oh **** what a dummy I am! I'm on a Pixel 3XL not 3a XL. Sorry, I'll try again

---------- Post added at 08:49 AM ---------- Previous post was at 08:17 AM ----------

Ok, reflashed the correct Crosshatch 0.20, flashed the Magisk patched .img et viola, Android 10 rooted and no loss of data!
Thanks for all the help.
 
  • Like
Reactions: swieder711

pr0adam

Senior Member
Mar 2, 2012
187
34
not to be that guy who asks for ETAs but any idea how long TWRP takes for a new version of android to come out? never really been around for a version release like this and just curious. waiting for TWRP to come out before i go through this process.
 

lawtalking

Senior Member
Sep 21, 2010
190
19
not to be that guy who asks for ETAs but any idea how long TWRP takes for a new version of android to come out? never really been around for a version release like this and just curious. waiting for TWRP to come out before i go through this process.

This twrp works

https://forum.xda-developers.com/showpost.php?p=80017781&postcount=1152

---------- Post added at 06:17 PM ---------- Previous post was at 06:16 PM ----------

Has anyone been able to edit build.prop? I have root, but cannot mount the build.prop w/r.
 

jmartin72

Senior Member
Feb 12, 2009
594
152
I'm not able to flash the 10 factory image. I can flash pie just fine, but it always gives an error when trying to push the system image. I can flash Pie just fine. Anyone else have this issue?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 32
    [Guide] Root Pixel 3 XL Android 11 (R) Unlock/Lock Bootloader + Install Stock Images/Systemless Root2021
    Android Security Bulletin—June 2021
    Pixel Update Bulletin—June 2021

    Introduction
    1. This Guide is for Pixel 3 XL 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 3 XL'.
    2. This Guide also works for Pixel 3 owners: If, they download the Pixel 3 files.

    New
    1. Android 12 Developer Preview - Beta 2
    2. CalyxOS
    3. GrapheneOS

    Update(s)
    1. Factory/OTA Images - 06/07
    2. Magisk Stable - Magisk-23.0 05/12
    3. Magisk Beta - Magisk-23.0 05/12
    4. Magisk Canary - Magisk-23xxx
    5. TWRP - Waiting for Android 11 (Q) TWRP
    6. SafetyNet - SafetyNetFix v1.1.1 01/16
    7. SDK Platform-tools - r31.0.2 April
    8. Custom Kernels
      • ElementalX (Check his Kernel Manager for latest update.)
      • Kirisakura v3.0.8_R 06/11
    9. Custom ROMs

    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 3 XL phone with an unlocked bootloader.
    2. The latest Android 11 (R) Factory or OTA Image: "crosshatch" for Pixel 3 XL
    3. Computer - With the latest SDK Platform-Tools: r31.0.2 installed.
    4. Important: Update Platform Tools, regularly, for optimal performance.

    Other Pixel XL Guides
    [Guide] Pixel 4 XL Android 11 (R)

    Credits/Thanks/Recognitions
    1. @topjohnwu - Magisk Canary
    2. @sliding_billy - His help editing this thread.
    3. Those I may have, inadvertently, forgotten.

    Index
    (NOTE: Numbers 1-11 are not steps, they are individual sets of instructions).
    1. Open a Command Prompt/Boot Fastboot Mode/Boot Recovery

      • Open Command Prompt on Computer

        1. Option 1 - Open File Explorer, click the platform-tools folder, press shift, right click, and select open command prompt here.
        2. Option 2 - Open File Explorer, click the platform-tools folder, highlight the directory information in the address bar or click the folder (left side of address bar) to highlight it type cmd and press enter.
        3. Notes:
      • Boot fastboot mode:

        • 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.
    2. 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 (#1)
      • 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.
    3. 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.
        10. After unlocking your bootloader, every time you reboot you'll see a warning: You will see this warning until, you relock the bootloader.
        11. Important: Do not relock your bootloader until you have returned the device to Stock..
      • Return Phone to Stock

        • Backup your data/Internal storage
        • Settings > System > Advanced > Reset Options > Erase all data (factory reset)
        • Log in
        • Set up phone
      • Lock Bootloader

        1. Do not lock the bootloader until you have returned the phone to stock. Failure to do so causes bricked phones.
        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.
    4. Install/Update Factory Image keep or wipe data

      • Important Note(s):
        1. When doing a major upgrade i.e., Android 10 (Q) to Android 11 (R): I recommend doing a clean install. What is a clean install?:
          • Doing a Factory reset prior to installing, major, update.
          • Using flash-all.bat file with the -w (Wipe Data).
        2. Always verify you have the latest version of SDK Platform-Tools installed on your computer before installing the Factory Image: Pixel 3 XL - crosshatch.
        3. If your phone was rooted, and you want to 'Keep Data'. Do this first unhide Magisk App (if you hid it) then Uninstall Magisk - Restore Images prior flashing the Factory image. Why? The changes in the Factory image may cause Magisk modules to fail. This will cause boot loops.
        4. If you get an error:when flashing, try one of these options:
          • Change the USB port to a non charging USB port.
          • Change the USB cord.
          • Change Computers.
        5. Backup your data
        6. Download the latest Factory Image: Pixel 3 XL - crosshatch to your Computer.
        7. Extract the factory Image to a folder.
      • Flash Factory Image Keep Data

        • Open the folder with the extracted the Factory Image and Edit the flash-all.bat file with a file editor i.e., Notepad. Remove -wfrom this command: fastboot -w update image-crosshatch-aa9a.999999.999.zip
          Note: If you do not remove the -w your Internal Storage will be wiped.
        • Copy/Move these files to the Platform-tools folder:
          1. bootloader-crosshatch-....img
          2. flash-all.bat
          3. image-crosshatch-....zip
          4. radio-crosshatch-....img
        • At the Command Promp type: flash-all and press enter.
        • System will reboot when flashing is complete.
        • Do #7 to root/reroot.
      • Flash Factory Image Wipe Data

        • This will wipe your Internal Storage.
        • Open the folder with the extracted the Factory Image.
        • Copy/Move these files to the Platform-tools folder:
          1. bootloader-crosshatch-....img
          2. flash-all.bat
          3. image-crosshatch-....zip
          4. radio-crosshatch-....img
        • Open a Command Prompt on your computer in the Platform-tools folder.
        • At the Command Prompt type: flash-all and press enter.
        • System will reboot when flashing is complete.
        • Do #7 to root/reroot.
    5. ADB Sideload

      • Stock Recovery
      • Custom Recovery - TWRP

        • Important notes:
          1. Charge your device.
          2. Enable USB Debugging on your phone.
          3. Install the latest version of SDK Platform-tools on your computer.
        • Open a command prompt in the computer's ADB folder: the folder with ADB.exe in it.
        • Put the (flashable zip) file you want to sideload in the computer's ADB folder.Copy the Zip file you want to install on your device to the ADB folder.
        • Connect your device to your computer using a USB cable.
        • Boot T.W.R.P.
          1. T.W.R.P installed: Boot fastboot mode ==> use volume buttons up/down until you see Recovery mode ==> press power botton.
          2. T.W.R.P. not installed: Boot T.W.R.P: Put twrp.img file in the computer's ADB folder ==> open a command prompt in ADB folder ==> at the prompt type fastboot flash boot "Name of twrp file.img" without the quotation marks.
        • When T.W.R.P boots tap Advanced ==> ADB Sideload.
        • ✓ the wipe Dalvik cache box
        • Swipe to start
        • On your Computer: Enter the following command at the command prompt. adb sideload <filename.Zip> i.e., adb sideload myfile.zip
        • You will see the progress of the sideloaded file.
        • When the file finishes sidloading, reboot your device.
        • Done!
    6. Extract/Flash boot.img

      • Extract boot.img

        • Download the latest Factory image to your phone.
        • Extract the Factory Image file (crosshatch-pda1a.999999.999-factory-99a9a99a.zip) to a folder.
        • Open the folder and, extract the Image file (image-crosshatch-aa9a.999999.999.zip).
      • Flash boot.img

        1. Note: Flashing this file 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. At the Command Prompt type: fastboot flash boot --slot all boot.img
        6. Reboot
    7. Root/Reroot with Magisk and Pass SafetyNet.

        1. Important Notes:
          When doing a major upgrade i.e., Android 10 (Q) to Android 11 (R). I recommend doing a clean install. What is a clean install?
          • Doing a Factory reset prior to installing, major, update.
          • Using flash-all.bat file without removing the -w.
        2. If your phone was rooted. Do this first unhide Magisk App (if you hid it) then Uninstall Magisk - Restore Images. Why? The changes in the Factory image may cause Magisk modules to fail. This will cause boot loops.
      • Download files:

        1. Magisk App - Download to your phone
        2. Custom Kernels - Download to your phone - install with Kernel Manager
        3. Kernel Manager - Download to your phone
      • Patch the boot.img

        1. Do #6 - Extract boot.img
        2. Install Magisk (Beta, Canary or Stable) App
        3. Open Magisk App
        4. Depending on the version of Magisk App installed: Set the Update Channel to Beta, Canary or Stable.
        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 ✓
        9. Tap Let's Go
        10. When you see done, the boot.img has been patched (magisk_patched_xxxxx.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 (#1)
        14. Connect the phone to the Computer with USB cord.
        15. Open a Command Prompt (#1) 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
          • Boot Safe Mode - Press Power Off button ==> Press Power Off until you see boot Safe Mode ==> Press Ok == > wait for it to boot ==> Reboot.
      • Pass SafetyNet: MAGISK MODULE ❯ Universal SafetyNet Fix 1.1.0

        1. Download SafetyNetFix from the link above.
        2. Open Magisk Canary App
          • Tap Modules icon.
          • Tap Install from storage
          • navigate to the SafetyNetFix file
          • Hightlight the file (tap it)
          • Tap the check mark (✓) to start the installation.
          • After it installs tap the Save icon to save the log
          • Tap Reboot.
        3. Open Magisk Canary App
          • Tap the Setup icon.
          • Scroll down to Magisk - MagiskHide and enable it.
          • Tap back arrow => tap Superuser icon => tap MagiskHide => Scroll to the bottom of the page => Tap Search icon => Tap Show system apps (Under Filters) => check (✓): Google play services (com.google.android.gms).
          • Close Magisk Manager.
        4. Open Settings
          • Tap Apps & notifications
          • Tap see all 999 apps
          • Tap the three dot menu
          • Tap Show system
          • Scroll down to Google Play Store
          • Tap it
          • Tap Storage & cache
          • Tap Clear cache
          • Tap Clear storage
          • Exit settings
          • reboot
        5. Open Google Play Store app
          • Tap Menu
          • Tap Settings
          • Scroll down to Play protect certification
          • check for Device certification.
    8. Set Magisk App Update Channel/Update Magisk

      • Set Magisk App Update Channel

        • Open Magisk App > Tap menu icon > Settings > 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/MagiskManager/logs/install_log_
        7. Tap, Reboot
        8. Done
    9. Custom ROMs

    10. Mods/Scripts/Themes
    11. T.W.R.P. Backup/T.W.R.P Update

      • Waiting for Android 11 (R) T.W.R.P.
    6
    A couple tips for those rooting with Magisk 19.4:
    • When you install Magisk Manager, make sure to go to settings and select the "Beta" channel (19.4) BEFORE patching your boot.img. Otherwise you'll patch the boot.img with 19.3 and Magisk will not be installed successfully.
    • If using AdAway, it will fail to build the host file successfully and give you a "not enough space" error message. To fix this, go to Magisk settings and click "Systemless hosts" and reboot. Upon reboot, you should be able to enable the AdAway hosts file and build it successfully.
    Happy rooting! :highfive:
    4
    I'm considering unrooting.

    What's the best route to do this?
    Unroot, just flash the original boot image to both slots should do it. It's in the guide.
    3
    Just wondering if during your other tries you ever used the "--slot all" command instead of doing the set active runaround. That worked when I rooted 10.

    fastboot flash boot --slot all magisk_patched.img

    Theoretically the --slot all should work. I had tried that initially, but something got messed up. Maybe it's just something at my end.
    Then I rebooted to system. Rebooted to bootloader, and then did the set active thing - just to be extra sure. That somehow worked.

    So yeah, I agree - the --slot all should work and should do the same thing of flashing the patched boot image on both slots. I just posted my steps in case someone wanted to try an alternative.
    3
    @Homeboy76 - What do you think about in the root instructions 9-J having it read "fastboot flash boot --slot all magisk_patched.img?"
    :good: I will update guide today:D