[Guide] Root Pixel 3 XL Android 12

Search This thread

newkydawg

Senior Member
Attempted the update last night, when flashing Magisk Canary Patched boot.img, the touchscreen is non-responsive on boot.

Flashing the stock boot.img and the touchscreen works.

Tried flashing the full image (no -w) and OTA with same result both times. Tried switching between active slots as well, no dice.

Any ideas?

Had the same issues as you last night. Tried it again just a few minutes ago and it worked! This time when I installed and ran Magisk Manager, there was an update. Looks like TopJohnWu updated the canary files 7 hours ago. Magisk Manager is now 298 and the zip is 20425.
 

Infin8cyn

Member
Aug 3, 2009
17
1
I cannot get root/canary/Magisk to work on Android 11.

  • I was rooted running stock Android 10.
  • Installed Magisk Manager Canary (Forgot I had 20.4/7.51 Installed)
  • Unpacked boot.img and patched it with Canary.
  • Installed Android 11 by flashing the full (not OTA) (without -w)
  • Android 11 started
  • Rebooted to bootloader
  • Flashsed magisk_patched.img with "--slot all"
  • Android doesn't boot. I get the G logo with the bar below it, and I've left it for 40 minutes.
  • I get to the bootloader with PWR+Vol. DN
  • It says "Boot slot: b" & "No valid slot to boot".
  • If I flash the stock boot.img, it boots.
I can't get magisk/root installed. I'm unsure if that's because of having it installed previously or what it could be.
Since there isn't a recovery that works at the moment, I can't run the uninstaller.
 
Now just need to wait for GB for android 11 and I'll be very happy ?
 

Attachments

  • Screenshot_20200910-101027.jpg
    Screenshot_20200910-101027.jpg
    112.2 KB · Views: 142
  • Screenshot_20200909-211330.jpg
    Screenshot_20200909-211330.jpg
    113 KB · Views: 142

ultimatepichu

Senior Member
Mar 5, 2009
1,009
178
Hsinchu City
Xiaomi Mi 10 Ultra
I cannot get root/canary/Magisk to work on Android 11.

  • I was rooted running stock Android 10.
  • Installed Magisk Manager Canary (Forgot I had 20.4/7.51 Installed)
  • Unpacked boot.img and patched it with Canary.
  • Installed Android 11 by flashing the full (not OTA) (without -w)
  • Android 11 started
  • Rebooted to bootloader
  • Flashsed magisk_patched.img with "--slot all"
  • Android doesn't boot. I get the G logo with the bar below it, and I've left it for 40 minutes.
  • I get to the bootloader with PWR+Vol. DN
  • It says "Boot slot: b" & "No valid slot to boot".
  • If I flash the stock boot.img, it boots.
I can't get magisk/root installed. I'm unsure if that's because of having it installed previously or what it could be.
Since there isn't a recovery that works at the moment, I can't run the uninstaller.

I had the same question and have asked in Tulsadiver's thread. There was a solution offered but I have already started afresh. You can try it here.
 

ultimatepichu

Senior Member
Mar 5, 2009
1,009
178
Hsinchu City
Xiaomi Mi 10 Ultra
I tested this earlier. I do not believe this command does anything:
"adb wait-for-device shell magisk --remove-modules"

I don't have the phone on me, but the message was like "Unknown shell magisk"

my opinion is, if you have followed until that point 10, you could already disable or remove the module(s) that causes bootloop manually (by entering magisk manager app) right?
 

Reclaimer122

Member
Dec 27, 2010
36
3
Hartford, CT
Stupid question. So since the OTA method didn't work and I ended up with unrooted 11, then flashed a patched boot.img to get root back, how can I use the OTA update feature in the future? I believe Magisk is now missing a stock boot.img to revert to, correct? This happened back on 10 as well so I was never able to take OTAs and always had to sideload updates.
 

vlucchetti

Senior Member
Dec 3, 2009
666
127
Latrobe, PA
Little mixup when I tried OTA as I got steps out of order. Stupid of me as I had done it correctly in the past when it worked.

Regardless, I did the Magisk install to inactive slot first, then set/sys/sys up, then restore image. rebooted and was still on 10 but unrooted. Pulled out my saved patched-image, installed it and I was back to rooted 10.

Now the system update shows "restart now" as apparently it all downloaded. Guessing I should start the process again doing it the correct way and I believe I should be good and have 11.

Wanted to float the thought out there for feedback from the users. Or I can do the Canary Magisk install and update that way.
 

jjlane86

Member
Sep 1, 2014
48
3
So, funny story but related to my root...I flashed and setup the google account after flashing, only to realize I had extracted android 9 to the platform tools directory. Realized this, then just OTA to 10 and then OTA to 11 and rooted with canary. No issues though. Working great!
 
So stable does not work on 11?

Correct. Must use canary.

Unfortunately, I updated to 11 and all seemed good but I lost youtube vanced. Tried to reinstall it and it would not install. Tried hard reboot (power and vol-down) and the phone tried booting, went into recovery after some time. Then the phone started bootlooping and would not allow me to get into bootloader (it could get into bootloader and then the phone would either reboot with any button press (vol up/down or power, or after about 3-5 seconds). If I let the phone try to boot, I see the unlocked bootloader warning and then the Google name for a split second, and then the phone reboots. Not sure if they are related or if my battery might be failing.

Went out and got a 1+8 5G (sprint/t-mobile) as a new daily driver (since I need a phone)

Currently I have a new 3xl battery on order and the phone disassembled in my workshop. Hope to revive the phone but it could be that the ram is faulting/failing or the power circuitry has an error (blown cap?). Will find out in 10-15 days.

Don't underestimate how hard it is to disassemble this phone! Very difficult due to the glue/ip67 (68? Not sure).

Guess this message became more a *****-fest. Sorry about that.

Cheers,
B.D.
 

phoenixpb

Senior Member
Dec 18, 2010
103
22
Hi

I have used the OTA method
Uninstalled modules of magisk, unhide magisk, restored imgs, and unistalled magisk -> OK
I have rebooted the phone and installed the OTA -> OK
I have followed the point 9 -> OK

All went smoothly phone is in android 11 and rooted :D:D

Thanks a lot for the post.
 

jlokos

Senior Member
May 27, 2011
2,597
727
Willamette Valley
Hi

I have used the OTA method
Uninstalled modules of magisk, unhide magisk, restored imgs, and unistalled magisk -> OK
I have rebooted the phone and installed the OTA -> OK
I have followed the point 9 -> OK

All went smoothly phone is in android 11 and rooted :D:D

Thanks a lot for the post.

On my pixel-2-xl, I installed the Canary debug (over the stable magisk manager). It automatically updated and I was able to flash canary build. However, on my wife's 3xl, I tried the same method but it didn't work. Any suggestions?
 
fixed my boot loop.
Steps missing in OP for patching boot.img in this case since we need canary
Installed Canary but was patching boot.img before setting channel to canary which was causing boot loop
changed channel to canary first, patched boot.img and then flashed magisk_patched.img
Now everything is working fine.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Update
    Magisk Canary 24309
    1
    Thank you for the ongoing updates!!
  • 12
    [Guide] Root Pixel 3 XL Android 12 Unlock/Lock Bootloader + Install Stock Images/Systemless Root
    Android Security Bulletin—Feburary 2022
    Pixel Update Bulletin—Feburary 2022

    Introduction
    1. This Guide is for Pixel 3 XL 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

      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.
    2. Prerequisites

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

        OTA Image
      3. A Computer with the latest SDK Platform-Tools: r33.0.1 installed.
      4. Important Notes:
    3. NEW

    4. Update(s)

      1. Factory/OTA Images - 07Feb
      2. Magisk Alpha - edb76503-alpha 25May
      3. Magisk Beta - 24.3 10Mar
      4. Magisk Canary - app-release_8dfb30fe-24313 24May
      5. Magisk Stable - 24.3 10Mar
      6. TWRP - [RECOVERY] - TeamWin Recovery Project [CROSSHATCH] [OFFICIAL] 24Dec21
      7. SafetyNet - SafetyNetFix v2.1.3 (Riru) v2.2.1 (Zygisk) 22Dec
      8. SDK Platform-tools - r33.0.1 06Apr
      9. Custom Kernels
        Note: If you are using a Custom Kernel, please update using the method in the OP, Index, 4. Install/Update Factory Image keep data or wipe data, • Flash Factory Image Keep Data
        b. Elemental X - check the Elemental X Kernel Manager for updates​
      10. Custom ROMs
    5. My Other Guides
    6. Credits/Thanks/Recognitions

      1. bradical711 - Instructions to Pass Safety Net
      2. @sliding_billy - His help editing this thread.
      3. Those I may have, inadvertently, forgotten.

    ~ ~ ~ Part II - INSTRUCTION ~ ~ ~
    1. 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.
    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.
          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

        • 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 data or wipe data

      • Important Note(s):
        1. When doing a major upgrade i.e., Android 11 to Android 12: 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 (#4. Wipe Data).
        2. Always verify you have the latest version of SDK Platform-Tools installed on your computer before installing the Factory Image: Pixel 3XL - crosshatch.
        3. If your phone was rooted, and you want to 'Keep Data'. Do this first open Magisk ==> unhide Magisk App (if you hid it) ==> Disable/Remove all modules ==> then Uninstall Magisk - Restore images prior flashing the Factory image. Why? The changes in the New factory image may cause Magisk modules to fail. This will cause boot loops. Additionally, before Enabling/Installing the modules you Disabled/Removed check with the Dev of the module to ensure it was updated to work with the latest factory image.
        4. If you get an error while flashing, try one of these options:
          • Change the USB port to a non charging USB port.
          • Change the USB cord.
          • Change Computers.
        5. Backup your data
        6. Download the latest Factory Image: Pixel 3XL - crosshatch to your Computer.
        7. 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., Notepad. Remove the -w from this command: fastboot -w update image-crosshatch-aa9a.999999.999.zip
          Note: If you do not remove the -w your data and 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-crosshatch-....img
          2. flash-all.bat
          3. image-crosshatch-....zip
          4. radio-crosshatch-....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 and type: flash-all at the Command Prompt and press enter.
        • System will reboot when flashing is complete.
        • Do #8 Root/Reroot...
      • Flash Factory Image Wipe Data

        • This will wipe your phones Internal Storage.
        • Open the folder you extracted the Factory Image to and 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
        • 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.
        • Do #8 Root/Reroot...
    5. Take the OTA Update and Maintain Root

      • All the credit for this set of instructions goes to @topjohnwu for writing the instructions: Install Magisk to Inactive Slot , use Magisk Beta, Stable 24.3.
      • If you get an error while flashing, try one of these optins
        • Change the USB port to a non charging USB port.
        • Change the USB cord.
        • Change Computers.
      • If you phone bootloops
        • force Safe Mode by continually pressing volume down button during boot animation.
        • After the system boots into safe mode you can reboot your device to boot up normally (since all modules will be disabled).
        • Thanks @Typhus_ for the instructions to force Safe Mode.
    6. 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!
    7. 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
    8. Root/Reroot with Magisk and Pass SafetyNet.

      • 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
          or
          Magisk 24.1 Beta/Stable App - Under Downloads
        3. Open Magisk Beta/Canary/Stable App
        4. Set the Update Channel Beta/Canary/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 ✓ (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
          • 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.
          • 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.
    9. 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
    10. Install/Update Magisk Modules

      • Download Modules
      • Install Modules

        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
      • Update Modules

        1. Open Magisk
        2. Tap the Modules icon
        3. You, will see the Modules that have Updates.
        4. Tap the Module you want to update.
        5. Tap install.
        6. After it installs, tap the Disc Icon to save the install log.
        7. Tap Reboot
    ~ ~ ~ Part III - OTHER ~ ~ ~
    1. Custom ROMs

    2. Mods
    3. T.W.R.P. Backup/T.W.R.P Update
    3
    Hello Pixel Community,

    We have provided the monthly Android/Pixel update for December 2020. All supported Pixel devices running Android 11 will receive these software updates as part of the December 2020 update, which begins rolling out to users today. We encourage you to check your Android version and update to receive the latest features.

    Overview:

    • Software versions:
      • Global:
        • Pixel 3 (XL): RQ1A.201205.003
        • Pixel 3a (XL): RQ1A.201205.003
        • Pixel 4 (XL): RQ1A.201205.008
        • Pixel 4a: RQ1A.201205.008
        • Pixel 4a (5G): RQ1A.201205.011
        • Pixel 5: RQ1A.201205.011
      • Verizon:
        • Pixel 3 (XL): [Update: Rolling out week of 12/14]
        • Pixel 4a (5G): [Update: Rolling out week of 12/14]
        • Pixel 5: [Update: Rolling out week of 12/14]
      • AT&T:
        • Pixel 4 (XL): RQ1A.201205.008.A1
        • Pixel 4a (5G): RQ1A.201205.010
        • Pixel 5: RQ1A.201205.010

    3

    After, reading several threads and @Lughnasadh post, there are no special requirements to root Android 12 for the Pixel 4 XL or the Pixel 3 XL.​


    So, that means the instructions in the OP, Index, #7 are sufficient for rooting the Pixel 4XL and Pixel 3 XL phones.

    Thanks, Lughnasadh! :)
    3
    :) I hope you all have a Joyful Holiday season with your family and loves ones. :)

    ~ ~ ~ Stay safe ~ ~ ~
    2
    Did anyone tried using the patched.img provided by a user on the first page?, I don't want to waste data by downloading stock boot.img

    Hi,

    Don't use it, it is an old one. You want the stock January boot.img? There are two factory images this month: international / Verizon.

    Cheers...

    Sébastien.