Root Pixel 4 XL Android 10 (Q) Unlock/Lock Bootloader + Systemless ROOT
Android Security Buletin-August 2020
Pixel Update Bulletin—August 2020
Android Security Buletin-August 2020
Pixel Update Bulletin—August 2020
Introduction
- This Guide is for Pixel 4 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 4 XL'.
- This Guide also works for Pixel 4 owners: If, they download the Pixel 4 files.
NEW
- Gpay not working? Try this.
- Tulsadiver's ADB Magisk Module Mod Installer has a LINUX instaler.
- The best instuctions on how to Pass SafetyNet, i've ever read.
Update(s)
- Factory/OTA Images - 08/05
- Magisk Stable - Magisk-22.0 02/23
- Magisk Beta - Magisk-22.0 02/23
- Magisk Canary - Magisk-22001
- TWRP - twrp-3.5.0_10-1-coral.img/zip 01/02
- SafetyNet - SafetyNetFix v1.1.1 01/16
- SDK Platform-tools - r31.0.0 03/01
- Custom Kernels
- No Updated Kernels
- Custom ROMs
- Waiting
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 4 XL phone with an unlocked bootloader.
- The latest Android 10 (Q) Factory or OTA Image: "coral" for Pixel 4 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
- @topjohnwu - Magisk Canary
- Those I may have, inadvertently, forgotten.
Index
(NOTE: Numbers 1-13 are not steps, 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 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.
- 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 7 times or 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.
- Note: After unlocking your bootloader, you'll see a warning: You will see this warning until, you relock the bootloader.
- Return Phone to Stock
- Important: Do not relock your bootloader until you have returned the device to Stock..
- Backup your data/Internal storage
- Settings > System > Advanced > Reset Options > Erase all data (factory reset)
- Log in
- Set up phone
- Lock Bootloader (Google Pixel 4 XL)
- Return the phone to Stock before Locking the bootloader!
- 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 or until you see 'you are a developer'.
- Tap Back > Developer options and toggle OEM Unlock off.
- Unlock Bootloader
- Install/Update Factory Image keep or wipe data
- 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.
- Always verify you have the latest version of SDK Platform-Tools installed on your computer before installing the Factory Image: Pixel 4 XL - coral.
- If your phone is rooted and you have Modules installed and you want to 'Keep Data', remove them before you install the Factory Image:
Why? Some Modules need to be updated before use with a new Factory/OTA image because (sometime) Google makes changes to Factory/OTA images that break the Modules. - How to remove Magisk: Open Magisk App ==> Tap Uninstall == Tap Restore Images.
- If you get an error: when flashing the Factory image, try one of these options:
- Change the USB port to a non charging USB port.
- Change the USB cord to one that doesn't have the blue color head or use a USB C to C cable.
- Change Computers.
- 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?:
- Backup your data
- Download the latest Factory Image: Pixel 4 XL - coral to your Computer.
- Extract the factory Image to a folder.
- 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 -w from this command: fastboot -w update image-coral-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:
- bootloader-coral-....img
- flash-all.bat
- image-coral-....zip
- radio-coral-....img
- Open a Command Prompt on your computer in the Platform-tools folder ==> Boot fastboot mode on your phone ==> Connect the phone to the Computer.==> At the prompt type:
flash-all
and press enter. - Note: During the flashing you may notice the phone is in fastbootd mode that is a normal for Android 10 (Q).
- System will reboot when flashing is complete.
- Do #7 or #8 to root/reroot.
- Open the folder you extracted the Factory Image to and Edit the flash-all.bat file with a file editor i.e. Notepad. Remove -w from this command: fastboot -w update image-coral-aa9a.999999.999.zip
- Wipe Data
- Open the folder you extracted the Factory Image to and View the flash-all.bat file with a file editor i.e. Notepad. Verify the file has the -w in this command: fastboot -w update image-crosshatch-aa9a.999999.999.zip
Note: This will wipe your data and internal storage. - Copy/Move these files to the Platform-tools folder:
- bootloader-coral-....img
- flash-all.bat
- image-coral-....zip
- radio-coral-....img
- Open a Command Prompt on your computer in the Platform-tools folder ==> Boot fastboot mode on your phone ==> Connect the phone to the Computer.==> At the prompt type:
flash-all
and press enter. - Note: During the flashing you may notice the phone is in fastbootd mode that is a normal for Android 10 (Q).
- System will reboot when flashing is complete.
- Do #7 or #8 to root/reroot.
- Open the folder you extracted the Factory Image to and View the flash-all.bat file with a file editor i.e. Notepad. Verify the file has the -w in this command: fastboot -w update image-crosshatch-aa9a.999999.999.zip
- Important Note(s):
- ADB Sideload
- Stock Recovery
- Custom Recovery - TWRP
- Important notes:
- Charge your device.
- Enable USB Debugging on your phone.
- 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.
- T.W.R.P installed: Boot fastboot mode ==> use volume buttons up/down until you see Recovery mode ==> press power botton.
- 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!
- Important notes:
- Stock Recovery
- Extract/Flash boot.img
- Extract boot.img
- Download the latest Factory image to your phone.
- Use a File Explorer to extract the boot.img from the Factory Image.
- Extract the Factory Image file (coral-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
- Note: Flashing this file removes root.
- Open the folder you extracted the 'image 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.
- Boot fastboot mode
- Connect the phone to the Computer
- Open a Command Prompt and type the following command at the prompt:
Code:fastboot flash boot --slot all boot.img
- Reboot
- Extract boot.img
- Install T.W.R.P./Root/Reroot with Magisk and Pass SafetyNet.
- Important Note(s):
- 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_10-1-coral.img - Download to your computer
- twrp-installer-3.5.0_10-1-coral.zip - Download to your phone
- Magisk - Download to your phone
- The latest Magisk Beta/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_10-1-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.
- Tap Install select twrp-installer-3.5.0_10-1-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
- Install Modules (Optional)
- Note(s):
- Important Note(s):
- 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_10-1-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
- Install Modules (Optional)
- 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.
- To root use Magisk App 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 - install with Kernel Manager
- No updated Kernels
- Kernel Manager - Download to your phone
- Patching the boot.img
- Do #6 - Extract boot.img
- Install Magisk (Beta or Canary) 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 magisk_patched.img file to your computer's Platform-tools folder or the folder that has fastboot.exe in it.
- Boot fastboot mode (See #1B)
- Connect the phone to the Computer with USB cord.
- Open a Command Prompt (See #1A) in the folder you copied the magisk_patched.img to.
- Type
fastboot flash boot magisk_patched.img
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 Apps/Mods/Scripts/Tethering/Themes
- OTA Installation - Keep Root -- No Computer Needed
- Important Note(s):
- Set Magisk App Update Chanel/Update Magisk
- Set Magisk App Update Chanel
- 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 Chanel
- Custom ROMs for Pixel 4 XL
- Need help with a Custom ROM?
- Follow the Installation Instructions of the Developer 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.
- Custom ROMS
- Alpha/Beta
- Waiting...
- Official
- Waiting...
- Unofficial
- Waiting...
- Alpha/Beta
- Need help with a Custom ROM?
- Apps/Mods/Scripts/Tethering/Themes
- T.W.R.P. 3.5.0_10-1 Backup/Restore
Last edited: