[Guide] Root Pixel XL Android 11 (R)

Search This thread

X4c3

Member
Jul 4, 2020
21
0
Do #7 if you want to install twrp.
- Using twrp-installer-3.3.1-0-marlin.zip and twrp-3.3.1-0-marlin.img

Do #8 if you want to Boot (Temporarily install) twrp.
- Using twrp-3.3.1-0-marlin.img
Did not work for me, I first boot to twrp-3.3.1-0-marlin.img using fastboot boot command then flashed twrp-installer-3.3.1-0-marlin.zip on TWRP. After reboot to system, I tried to goto recovery but it just reboot me back to system. Im using stock android 10 the last build, thanks for the help though.
 

Homeboy76

Senior Member
Aug 24, 2012
3,169
1,728
Google Pixel XL
Did not work for me, I first boot to twrp-3.3.1-0-marlin.img using fastboot boot command then flashed twrp-installer-3.3.1-0-marlin.zip on TWRP. After reboot to system, I tried to goto recovery but it just reboot me back to system. Im using stock android 10 the last build, thanks for the help though.
@X4c3
Read the post (2 post) above this one and make sure you are using the latest SDK Platform-tools r31.0.2.
 
Last edited:

Homeboy76

Senior Member
Aug 24, 2012
3,169
1,728
Google Pixel XL
Ok 3.3.1.3 will be my last try before finally giving up on twrp, also i noticed that it unroot my device whenever I flashed TWRP.

Once you get twrp installed, you can flash Magisk:
- Patch the boot.img with Magisk Canary app-debug_23001.apk
- Rename the Magisk patched.img file extension zip and flash it with twrp.
 
Last edited:

Homeboy76

Senior Member
Aug 24, 2012
3,169
1,728
Google Pixel XL
OP Updated
Index, • Open Command Prompt on Computer

What changed and Why?

The Option to open powershell was removed.
While it is still true you can open a command prompt in powershell: 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.

Typing ./fastboot devices, ./flash-all, etc. no longer works.

I do not know why or when it stopped working.

My guess is one of the Windows 10 updates changed something in powershell.
 
Last edited:
  • Like
Reactions: Lughnasadh

Homeboy76

Senior Member
Aug 24, 2012
3,169
1,728
Google Pixel XL
OP Updated
Index, • Open a Command Prompt on Computer

What changed and Why?

The Option to open powershell was restored.

I made a mistake. :(

I forgot to enable USB debugging before booting fastboot mode (bootloader) on my phone.

After, I corrected my mistake, I opened a powershell command prompt: Opened File Explorer ==> clicked the platform-tools folder ==> clicked the folder icon (left side of address bar) to highlight it typed powershell and pressed enter.

Then I typed ./fastboot devices at the powershell command prompt and pressed enter. It worked.
 
Last edited:
  • Like
Reactions: Lughnasadh

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    [Guide] Root Pixel XL Android 11 (R) Unlock/Lock Bootloader + Install Custom ROMS + Update Magisk/Systemless Root
    Security Bulletin—July 2021

    Introduction
    This Guide is for Google Pixel XL owners that want to Root their phone, enjoy the benefits of rooting it. The Guide is divided into three parts: Information, Instructions, and Other.

    ~ ~ ~ Part I - INFORMATION ~ ~ ~
    1. Disclaimers

      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 XL phone with an unlocked bootloader.
      2. Android 11 (Q) Custom ROM (Index #6 below).
      3. A Computer with the latest SDK Platform-Tools: r33.0.1 installed.
      4. Important Notes:
    3. Updates

      1. Magisk Alpha - 71e9c044-alpha 06May
      2. Magisk Beta - 24.3 10Mar
      3. Magisk Canary - app-release_8dfb30fe-24313 24May
      4. Magisk Stable - 24.3 10Mar
      5. SafetyNet - SafetyNetFix v2.1.3 (Riru) v2.2.1 (Zygisk) 22Dec
      6. TWRP - Waiting for T.R.W.P. for Android 10 (Q)
      7. SDK Platform-tools - r33.0.1 06Apr
      8. Custom Kernels
        • None...
      9. Custom ROM(s) - Android 11 (R)
        • crDroid v7.14 [UnOfficial][11]
        • [OFFICIAL] LineageOS 18.1 for the Google Pixel XL Nightly
    4. NEW

    5. My other guides
    6. Credits/Thanks/Recognitions

      1. @topjohnwu - Magisk
      2. Those I may have, inadvertently, forgotten.
    ~ ~ ~ Part II - INSTRUCTIONS ~ ~ ~
    1. Open a Command Prompt/Boot Bootloader/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 ADB (Android Debug Bridge)/fastboot

      • ADB
        1. Enable USB Debugging - Tap Settings > System > About Phone > Developer Options. Enable USB Debugging.
        2. Open a Command Prompt on your computer.
        3. Type this at the prompt to test ADB.
          adb version
          It should return a version number for ADB.
      • fastboot
        1. Enable USB Debugging - Tap Settings > System > About Phone > Developer Options. Enable USB Debugging.
        2. Open a Command Prompt on your computer.
        3. Boot Bootloader
        4. Connect the phone to the Computer with USB cord.
        5. Type this at the prompt and press enter to test fastboot.
          Code:
          fastboot devices
          It should return your device serial number.
    3. Unlock Bootloader/Return Phone to Stock/Lock Bootloader

      • Unlock Bootloader

        1. Backup your data/Internal storage
        2. Activate Developer Options: Tap Settings > System > About Phone > Tap Build Number 7 times or until you see you're a Developer.
        3. Tap back > Developer Options and toogle OEM Unlock on and, toggle USB Debugging on.
        4. Boot Bootloader
        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.
          This will erase all user data from the device!
        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.
          Note: After unlocking your bootloader, you'll see a warning: Your device software can't be checked for corruption. Please lock the bootloader. You will see this warning until, you relock the bootloader.

          Important: 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. Important: Do not relock your bootloader until you have returned the device to Stock..
        2. Boot bootloader
        3. Open a Command Prompt and type this at the Prompt: fastboot flashing lock
        4. You should see a request for confirmation on your phone, use the volume keys to scroll and the power key to select.
        5. Allow the process to complete, then type this at the Command Prompt: fastboot reboot
        6. Set up your phone.
        7. Enable Developer Options: Settings > System > About phone > Tap Build number 7 times or until you see'You are a Developer. Tap Back > Developer options and toggle OEM Unlock off.
    4. 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.
    5. 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!
    6. 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 for Pixel XL

    2. Mods
    3. Other: TWRP Backup

    2
    Well I'm kind of making progress. Let me tell you what I did... I flashed a factory image of the latest one Android 10...after the flash it began to bootloop once again... I button combo into fastboot and went ahead and locked the bootloader... Chose reboot and every time it boots it boots right back into stock recovery...I factory reset it 3 to 5 times, reboot and once again reboots right back to stock recovery.. I took some pictures of the recovery logs in recovery...I am really adamant about fixing this issue as I have heard that a lot of people are experiencing it.. take a look at my pictures homeboy. to my surprise I am able to go back into fastboot and lock and unlock the bootloader at will. After looking at the pictures what do you think that the issue is?
    I admire your tenacity to get your Google Pixel fixed.

    I am not a Google Pixel technician, so I cannot help you fix your Google Pixel. My guide is for a Google Pixel XL operation not maintenance.

    Maybe your best resource is Google search.
    1. Google Pixel - XDA Developers Forums
    2. Welcome to the Google Pixel Help Community
    3. Fix a Pixel phone that's restarting or crashing
    4. Google Pixel Forum

    Have a nice day! :)
    2
    hi guys I am not new to modding phones. However it has been a long time for me. I did have my 6p running on lineage for a while. But then I got the pixel xl and have had pixels ever since. I have not had a need to root or modd them. I currently have the 4xl and my wife has the 3a xl so I have this pixel xl sitting around. I want to get back into modding a little bit. I just need some guidance.
    Currently I have downloaded the latest sdk for windows I will need a little assistance with that for example how do I put adb and fastboot into the root directory so I dont have to go through typing all the file paths in. I also downloaded the latest stock .img so I have a clean install if anything goes crazy.
    Now I need to know where to start. I assume unlocking the bootloader is the same as the 6p. But after that do I install twrp then use that for magisk to get root? Once I have those questions answered I can probably take it from there. I would like to try out different roms and kernels and other mods. Sorry for the noob questions I just want to get it right. I always learn stuff on this fourm and thats why I love it.
    Start by reading the guide: Introduction, Disclaimers, Update(s), Prerequisites, and Index (Numbers 1 to 11).
    Why?
    ...how do I put adb and fastboot into the root directory so I dont have to go through typing all the file paths in.
    - There is a link in Prequisites c. (Need help installing or using SDK Platform-tools) that describes editing your Path Variable.

    "Now I need to know where to start. I assume unlocking the bootloader is the same as the 6p."
    - Assume nothing, several people have bricked their phone(s) assuming. Read #3 in the guide.

    "But after that do I install twrp then use that for magisk to get root?"
    - T.W.R.P. does not work with Android 10 to root: Read #9 to root.

    There is no need to apologize for the "noob questions". Everyone on XDA was a "noob" at some point in their life.
    2
    :) I hope you all have a Joyful Holiday season with your family and loves ones. :)

    ~ ~ ~ Stay safe ~ ~ ~
    2
    Hey, first off thanks for the guide. I have been experiencing the same boot issue that a few others have. I am on the latest version of everything, android sdk, latest factory image, latest magisk (tried both stable and canary). I can patch the boot.img with magisk and after i flash the magisk_patched.img, i reboot the phone and it sticks on the google "G" with the progress bar underneath it. I am on the same build number as the one I downloaded ending in 007.A1, using the same boot.img from it. When it hangs up, I can flash the same boot.img that I used magisk to patch and reboot the phone and it is back to normal and goes right to the lock screen. I could be wrong, but it appears that my issue is with the boot.img being patched with magisk somehow. Any advice or help is appreciated, thanks.

    edit: When it sticks on bootloop, i can still use a command prompt to "adb reboot fastboot" and then flash the stock boot.img and it boots normal.

    Were you rooted on the September factory image?
    Did you fastboot flash boot --slot all magisk_patched.img?
    SDK Platform-tools r29.0.5?
    Read this it might help.