[Guide] Root Pixel XL Android 11 (R) Unlock/Lock Bootloader + Install Custom ROMS + Update Magisk/Systemless Root
Introduction
This Guide is for Google Pixel XL owners that want to Install/Flash Custom ROMs, and enjoy the benefits of rooting it. The Guide is divided into three parts: Information, Instructions, and Other.
~ ~ ~ Part I - INFORMATION ~ ~ ~
- Disclaimers
- 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.
- Prerequisites
- A Pixel XL phone with an unlocked bootloader.
- An Android 11 (R) Custom ROM(s) (Update(s) 9. below).
- A Computer with the latest working SDK Platform-tools r. 34.0.3 installed.
- Important Notes:
- If you use the Linux or Windows version of SDK Platform- tools r. 34.0.3 you must set the environment variable - See Note(s) for instructions on setting the enviroment Variable
- If you have any problems with SDK Platform-tools 34.0.3. You can get SDK Platform-tools 33.0.3 here.
- Before installing SDK Platform-tools, check for older versions of fastboot on your computer: Open a Command prompt and type
fastboot --version
at the prompt. If a adb/fastboot is found delete the folder containing them. Also, check the path environment for paths to them and remove it. - Update Platform Tools, regularly, for optimal performance.
- Need Google's USB Drivers for your Pixel Phone?
- NEW
- "...make a 100% clean install of ANY Magisk version or fork without PC or TWRP."
Magisk General Support / Discussion
This is the place for general support and discussion regarding "Public Releases", which includes both stable and beta releases. All information, including troubleshoot guides and notes, are in the Announcement Threadforum.xda-developers.com
- Displax's latest SafetyNet Fix, a "fork" of kdrag0n safetynet-fix.
- "...make a 100% clean install of ANY Magisk version or fork without PC or TWRP."
- Updates
- Magisk Alpha - app-release_ae9d270a-alpha-26201.apk 28 Aug
- Magisk Beta - Magisk v26.3.apk 4 Sep
- Magisk Canary - app-release_d4e552d0-26301.apk 4 Sep
- Magisk Cygisk - Click Pages 5 for installation Instructions.
- Magisk Delta - app-release
- Magisk Stable - Magisk v26.3.apk 4 Sep
- TWRP - TWRP Android 9 for marlin
Waiting for T.W.R.P. for Android 11 (R). (Q) - SafetyNet - Displax's safetynet-fix-v2.4.0-MOD_1.3-...zip
- SDK Platform-tools - r34.0.3 May 22, 2023
- Custom Kernels
- My other guides
- Credits/Thanks/Recognitions
- @topjohnwu - Magisk
- Those I may have, inadvertently, forgotten.
(The Instructions listed below are not steps, they are individual sets of instructions.)
- Open a Command Prompt/Boot Bootloader/Boot Recovery
- Open a 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 cmd and press enter.
- 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.
- 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.
- Open a Command Prompt on Computer
- Test ADB (Android Debug Bridge)/fastboot
- ADB
- Enable USB Debugging - Tap Settings > System > About Phone > Developer Options. Enable USB Debugging.
- Open a Command Prompt on your computer.
- Type this at the prompt to test ADB.
adb version
It should return a version number for ADB.
- fastboot
- Enable USB Debugging - Tap Settings > System > About Phone > Developer Options. Enable USB Debugging.
- Open a Command Prompt on your computer.
- Boot Bootloader
- Connect the phone to the Computer with USB cord.
- Type this at the prompt and press enter to test fastboot.
Code:fastboot devices
- ADB
- Unlock Bootloader/Return Phone to Stock/Lock Bootloader
- Unlock Bootloader
- Backup your data/Internal storage
- Activate Developer Options: Tap Settings > System > About Phone > Tap Build Number 7 times or until you see you're a Developer.
- Tap back > Developer Options and toogle OEM Unlock on and, toggle USB Debugging on.
- Boot Bootloader
- Connect the phone to the Computer with USB cord.
- Open a Command Prompt on your computer and type
fastboot flashing unlock
and press enter.
This will erase all user data from the device! - You should see a request for confirmation on your phone, use the volume keys to scroll and the power key to select.
- Allow the process to complete and then type
fastboot reboot
at the Command Prompt and press enter. - 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
- Backup your data/Internal storage
- Settings > System > Advanced > Reset Options > Erase all data (factory reset)
- Log in
- Set up phone
- Lock Bootloader
- Important: Do not relock your bootloader until you have returned the device to Stock..
- Boot bootloader
- Open a Command Prompt and type this at the Prompt:
fastboot flashing lock
- You should see a request for confirmation on your phone, use the volume keys to scroll and the power key to select.
- Allow the process to complete, then type this at the Command Prompt:
fastboot reboot
- Set up your phone.
- 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.
- Unlock Bootloader
- Install/Flash Custom ROM with @badabing2003 PixelFlasher
- Install/Update Magisk Modules
- Download Modules
- Install Modules from Storage
- Open Magisk
- Tap the Modules icon
- Tap Install from storage
- Navigate to the folder with the Module you want to install.
- Tap the Module to highlite it and tap Select.
- After it installs, tap the Disc Icon to save the install log.
- Tap Reboot
- Install Modules from Fox2Code/FoxMagiskModuleManager
- Open Fox2Code/FoxMagiskModuleManager
- Tap the Modules icon
- Locate the Module you want to install
- Tap Install
- After it installs, tap the Disc Icon to save the install log.
- Tap Reboot
- Update Modules
- Open Fox2Code/FoxMagiskModuleManager
- You, will see the Modules that have Updates.
- Tap the Module you want to update.
- Tap install.
- After it installs, tap the Disc Icon to save the install log.
- Tap Reboot
- Download Modules
- Custom ROMs for Pixel XL
- Need help with a Custom ROM?
- 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.
- 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.
- 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
- Need help with a Custom ROM?
- Themes, Apps, and Mods
- Other: TWRP Backup
- TWRP Android 9 for marlin
- Waiting for T.W.R.P. for Android 11 (R).
Last edited: