[Guide] ROOT Pixel 3 XL Android 9.0.0 (Pie) Unlock/Lock Bootloader + Install Stock Images/Custom kernels/TWRP Recovery/Systemless Root
August 2019 Security Patch
August 2019 Security Patch
Introduction
- 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'.
- This Guide also works for Pixel 3 owners: If, they download the correct files for their phone.
Update(s)
- Factory/OTA Images - 09/03
- Magisk Stable - Magisk-22.0 02/23
- Magisk Beta - Magisk-22.0 02/23
- Magisk Canary - Magisk-22001
- TWRP - twrp-3.5.0_9-0-crosshatch.img/zip 12/28
- SafetyNet - SafetyNetFix v1.1.1 01/16
- SDK Platform-tools - r31.0.0 03/01
- Custom Kernels
- No Updated Custom Kernels
- Custom ROMs
- No Updated Custom ROMS
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 3 XL phone with an unlocked bootloader.
- The latest Android 9.0.0 (Pie) Factory or OTA Image: "crosshatch" for Pixel 3 XL
- Factory Image
- OTA Image
- Computer - With the latest SDK Platform-Tools: r31.0.0 installed.
- Important: Update Platform Tools, regularly, for optimal performance.
Other Guides
Credits/Thanks/Recognitions
- Heisenberg RETIRED FORUM MODERATOR - He set the standard for creating, detailed, Guides.
- Those I may have, inadvertently, forgotten.
Index
(NOTE: These are not steps 1-12, they are individual sets of instructions).
- Open a Command Prompt/Boot Fastboot Mode/Boot Recovery
- Open Command Prompt on Computer
- Option 1 - Open File Explorer, click the platform-tools folder, press shift, right click, and select open command prompt here.
- 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.
- Notes:
- If your computer only has 'open powershell here' in the context menu. Use option 2.
- If you do not want to open a Command Prompt every time you want to use fastboot, add the path to the Platform-tools folder to Windows environment variables.
- 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.
- Open Command Prompt on Computer
- Test fastboot
- Enable Developer Options - Tap Settings > About phone > Build number 7 times. 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.
- Unlock Bootloader/Return Phone to Stock/Lock Bootloader
- Unlock Bootloader
- This will erase all user data from the device!
- Backup your data
- Activate Developer Options: Tap Settings > About Phone > Tap Build Number until you see you are a Developer. Tap back > System > Advanced > Developer Options. Enable OEM Unlock and, USB Debugging.
- Boot fastboot mode
- Connect the phone to the Computer with USB cord.
- Open a Command Prompt on your computer and type
fastboot flashing unlock
and press enter. - 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.
- After unlocking your bootloader, you'll see a warning: You will see this warning until, you relock the bootloader.
- 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..
- This will erase all user data from the device!
- Boot fastboot mode
- 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
- Enable Developer Options: Settings > About phone > Tap Build number 7 times. Until you see 'you are a developer'.
- Tap Back > Developer options and toggle OEM Unlock off.
- Unlock Bootloader
- Install Factory Image keep or wipe data
- Important Notes:
- Install the latest version of SDK Platform-Tools on your computer before you start installing the factory image.
- Backup your data
- Download the appropriate Factory Image: "crosshatch" for Pixel 3 XL to your Computer.
- Extract the factory Image to the platform-tools folder or the folder that has fastboot in it.
- Keep Data
- Open the folder you extracted the Factory Image to and Edit the flash-all.bat file to remove -w from this command: fastboot -w update image-crosshatch-aa9a.999999.999.zip
- If you do not remove the -w your internal storage will be erased.
- After, you have edited the flash-all.bat file. Copy/Move these files to the Platform-tools folder:
- bootloader-crosshatch-....img
- flash-all.bat
- image-crosshatch-....zip
- radio-crosshatch-....img
- Boot fastboot mode
- Connect the phone to the Computer with USB cord.
- Open a Command Prompt in the Platform-tools folder on your computer.:
- Type
flash-all
at the Command Prompt and press enter. - Reboot
- Do #7, #8 or #9 to root.
- Wipe Data
- Open the folder you extracted the Factory Image to and Verify the flash-all.bat file has the -w in this command: fastboot -w update image-crosshatch-aa9a.999999.999.zip
- This will erase internal storage.
- After, you have verified the flash-all.bat file has the -w. Copy/Move these files to the Platform-tools folder:
- bootloader-crosshatch-....img
- flash-all.bat
- image-crosshatch-....zip
- radio-crosshatch-....img
- Boot fastboot mode
- Connect the phone to the Computer with USB cord.
- Open a Command Prompt in the Platform-tools folder on your computer.:
- Type
flash-all
at the Command Prompt and press enter. - Reboot
- Do #7, #8 or #9 to root.
- Important Notes:
- ADB Sideload
- Stock Recovery
- Custom Recovery TWRP
- Setup
- -- On Your Phone
- The latest T.W.R.P. Custom Recovery
- Enable USB debugging
- -- On Your Computer
- Put the file you want to sideload in the Platform-tools folder.
- -- On Your Phone
- Sideload
- -- On Your Phone
- Boot fastboot mode
- Use Volume Up/Down until you see Recovery mode
- When twrp boots, tap Advanced
- Tap ADB Sideload.
- -- On Your Computer
- At the Command Prompt type:
adb sideload <filename>.zip
- Ex., adb sideload example.zip
- At the Command Prompt type:
- -- On Your Phone
- When the install is finished, reboot system.
- Setup
- Stock Recovery
- Extract/Flash boot.img
- Extract boot.img
- Use a File Explorer to extract the boot.img from the Factory Image.
- 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
- Flashing this file removes root.
- Open the folder you extracted the 'image file' to and copy the boot.img file to the platform-tools or to the folder that has fastboot in it.
- Boot fastboot mode
- Connect the phone to the Computer
- Open a Command Prompt and type the following command at the prompt:
fastboot flash boot --slot all boot.img
- Reboot
- Extract boot.img
- Install T.W.R.P./Root/Reroot with Magisk and Pass SafetyNet.
- Important notes:
- Set Pin before installing TWRP: Settings > Security & location >Screen lock > Pin
- Backup your data
- Download files - The listed files are used with #7, and #8.
- T.W.R.P
- twrp-3.5.0_90-0-crosshatch.img - Download to your computer
- twrp-installer-3.5.0_90-0-crosshatch.zip - Download to your phone
- Magisk App - Download to your phone
- The latest Magisk Beta, or Stable zip. - Download to your phone
- The latest Magisk Canary - Download to your phone
- Custom Kernels - Download to your phone
- No Updated Custom Kernels
- Kernel Manager - Download to your phone
- T.W.R.P
- Boot fastboot mode
- Connect the phone to the Computer with USB cord.
- Copy twrp-3.5.0_90-0-coral.img to the platform-tools folder or folder that has fastboot in it and rename it twrp.img.
- Open a Command Prompt in the Platform-tools folder on your computer.
- At the Command Prompt type:
fastboot boot twrp.img
and press enter. - When TWRP boots, disconnect the phone from computer.
- If requested, swipe to allow modifications.
- Tap Install select twrp-installer-3.5.0_90-0-coral.zip, Swipe Slider to install
- Reboot Recovery
- Root/Reroot
- Note(s):
- If you are rerooting, tap Install, select Magisk's uninstaller.zip, Swipe the slider to install.
- Some Custom Kernels can be updated by flashing via Kernel Manager without losing root. Check the Custom Kernel thread (OP - Installation/Instructions) to find out which Custom Kernels.
- With Custom Kernel (Optional)
- No Updated Custom Kernels
- Without Custom Kernel
- Tap Install, select Magisk Beta/Canary/Stable zip.
- Swipe Slider to Install
- Reboot System
- Note(s):
- Important notes:
- Boot T.W.R.P./Root/Reroot with Magisk and Pass SafetyNet.
- Backup your data
- Download files - See #7 - Skip the twrp-installer
- Boot fastboot mode
- Connect the phone to the Computer with USB cord.
- Copy twrp-3.5.0_90-0-coral.img to the platform-tools folder or folder that has fastboot in it and rename it twrp.img.
- Open a Command Prompt on your computer.
- At the Command Prompt type:
fastboot boot twrp.img
and press enter. - When TWRP boots, disconnect the phone from computer.
- If requested, swipe to allow modifications.
- Root/Reroot
- Note: If you are rerooting, tap Install, select the latest Magisk's uninstaller.zip, Swipe the slider to install.
- With Custom Kernel (Optional)
- No Updated Kernels
- Without Custom Kernel
- Tap Install, select Magisk-Beta/Canary/Stable zip.
- Swipe Slider to Install
- Reboot System
- Root/Reroot with Magisk and Pass SafetyNet.
- Important Note(s):
- 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.
- Obtaining ROOT using the Magisk Beta, Canary or stable App to patch the Stock boot.img.
- 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?
- Download files:
- Magisk App - Download to your phone
- Custom kernels - Download to your phone
- None
- Kernel Managers - Download to your phone
- Patching boot.img
- Do #6 - Extract boot.img
- Install Magisk (Beta, Canary or Stable) App
- Open Magisk App
- Depending on the version of Magisk App installed: Set the Update Channel to Beta, Canary or Stable.
- Tap Install (next to Magisk)
- Tap, Select and Patch a File
- Select the boot.img file you extracted from the latest factory image.
- Tap the ✓ (Check Mark)
- Tap Let's Go
- When you see done, the boot.img has been patched (magisk_patched_xxxxxx.img), and stored in the download folder.
- The phone will reboot.
- Copy the patched boot.img file to your computer's Platform-tools folder or the folder that has fastboot.exe in it.
- Boot fastboot mode (#1)
- Connect the phone to the Computer with USB cord.
- Open a Command Prompt (#1) in the folder you copied the patched boot.img to.
- Type
fastboot flash boot "name of patched boot".img
without the quote marks at the Prompt and press enter. - Type
fastboot reboot
at the Prompt and press enter. - 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.
- Flash the 'stock' boot.img to both slots:
- Pass SafetyNet: #12 Mods - Magisk
- Important Note(s):
- Set Magisk App Update Chanel/Update Magisk
- Set Magisk App Update Channel - Stable/Beta/Canary/Custom
- Open Magisk App > Tap menu icon > Settings > Update Channel > Select Stable, Beta Canary or Custom.
- Update Magisk
- When Magisk App notifies you of an update:
- Tap install.
- Select, Direct Install (Recommended)
- When it finishes installing
- Tap, Save Log
- Log location: /storage/emulated/0/MagiskManager/logs/install_log_...
- Tap, Reboot
- Done!
- Set Magisk App Update Channel - Stable/Beta/Canary/Custom
- Custom ROMs for Pixel 3 XL
- Need help with a Custom ROM?
- Follow the Installation Instructions in the OP of the Custom ROM you are trying to install.
- If you have a problem Installing the ROM, Search the thread of the Custom ROM you want to install for solutions to problem before posting a request for help on their thread.
- ROMS
- Alpha/Beta
- None
- Official
- None
- Unofficial
- None
- Alpha/Beta
- Need help with a Custom ROM?
- Mods
- Magisk
- Audio_Compatibility_Patch...
- Audio_Modification_Library...
- ViPER4Android_FX...
- [MODULE] MagiskHide Props Config - SafetyNet, prop edits, and more - v5.3.6 by Didgeridoohan
- MAGISK MODULE ❯ Universal SafetyNet Fix 1.1.0
- Tulsadiver's
- Magisk
- Other: TWRP Backup/TWRP
- To Internal Storage
- Boot Recovery
- When twrp boots, tap Backup and select Partitions to backup
- Boot
- System Image
- Data
- Tap Select Storage ==> internal storage
- Tap ok
- Swipe Slider to backup
- Your backup will be stored in /Storage/TWRP/...
- To OTG-USB Storage
- Boot Recovery
- When twrp boots, tap Backup and select Partitions to backup
- Boot
- System Image
- Data
- Insert USB-OTG
- Tap Select Storage ==> OTG-USB
- Tap ok
- Swipe Slider to backup
- Your backup will be stored in /Storage/TWRP/...
- To Internal Storage
Last edited: