Levovo TB-X606F Rooting Issue - General Questions and Answers

I have a Levovo Tab M10 FHD Plus TB-X606F running android 10.
After having the device for several months and reading everything I coul dfind on rooting it or previous versions. I decided to attempt. (Note: I have route plenty of phone and tablets before)
Steps and Results
Enable USB debugging
Install Magisk 8.0.7
Download Factory ROM
Copy boot.img to device via adb
Run Magisk and patch img.
Copy patched img to PC via ADB
fastboot flashing unlock (fasboot oem unlock erros)
fastboot boot patched_boot.img
Sending 'boot.img' (32768 KB) OKAY [ 1.512s]
Booting OKAY [ 0.063s]
Finished. Total time: 2.807s
Device rebooted on its own.
Rebooted into fastboot.
fastboot flash boot_a patched_boot.img
fastboot: error: cannot get boot partition size
fastboot flash boot_b patched_boot.img
fastboot: error: cannot get boot partition size
fastboot flash boot patched_boot.img
Sending 'boot' (32768 KB) OKAY [ 1.158s]
Writing 'boot' OKAY [ 0.445s]
Finished. Total time: 1.621s
DeviceDevice reboots on its own and boot loops
Use SP Flash Tool to reinstall factory image.
Device boots normally.
Use SP Flash to flash patched boot image.
Device boot loops.
Thoughts? Looks to me that the patched boot.img is invalid. Not sure how to verify or how else to get patched boot.img.

I also tried
fastboot boot patched_boot.img
Device reboots twice and then comes up with stock boot.img.

snickle said:
...
fastboot flash boot patched_boot.img
Sending 'boot' (32768 KB) OKAY [ 1.158s]
Writing 'boot' OKAY [ 0.445s]
Finished. Total time: 1.621s
DeviceDevice reboots on its own and boot loops
...
Thoughts? Looks to me that the patched boot.img is invalid. Not sure how to verify or how else to get patched boot.img.
Click to expand...
Click to collapse
Try installing Magisk using TWRP.
The patched boot.img method is only usually used when TWRP is unavailable.
Make sure you flash the stock boot.img (or the whole stock ROM) before installing TWRP and Magisk.

Got it working using canary version of magisk manager.

Hi, i just wanted to share the exact steps i took to root this tablet.
Funnily enough (for me at least), this was the easiest android device i've rooted out of all the ones i've previously owned. Thanks in part to OP of this thread!
The tablet i have is the following version:
TB-X606F_S300429_211101_BMP
unlock bootloader preparations
1. on tablet: go to Settings->System->About and press "Build number" 7 times to enable Developer Options.
2. go to Settings->System->DeveloperOptions.
3. Turn on: "OEM unlocking" and "USB debugging".
flash/root/recovery preparation
1. install latest: https://developer.android.com/studio/releases/platform-tools#downloads
2. install MTK_Android_USB_Driver
3. download TWRP for Lenovo Tab M10 Plus x606 (put it in the platform-tools directory)
4. reboot computer
5. run CMD command in the platform-tools directory:
fastboot flashing unlock
6. accept the conditions on the tablet screen
7. turn off tablet
8. turn on tablet into recovery mode with: Vol Up + Vol Down + Power (hold steady for several seconds after it vibrates)
9. choose "boot into bootloader" in the menu = now youre in fastboot mode
10. connect USB cable to computer
11. run CMD commands (wait for each commadn to finish ffirst of course):
fastboot flash recovery [TWRP you downloaded].img
fastboot --disable-verification flash vbmeta vbmeta.img
fastboot reboot recovery
now youre in TWRP again:
1. finish the decryption in TWRP. (same pin as regular android encryption pin code if you chose one before)
2. do NOT keep read only
3. go to backup tab and make a backup (boot, system, vendor, data)
4. advanced wipe -> wipe "data"
Time to flash root/magisk
1. download Magisk-v23.0.apk
2. rename to zip
3. place the zip in tablet storage via USB cable
4. go to "install" in TWRP
5. select the magisk zip
6. flash magisk
7. reboot into system
8. enable installation of untrusted apk sources in android settings
9. start magisk manager just to check that things are OK
10. download root checker and verify root
11. reboot tablet a bunch of times to see that root is sticking
12. enable developer options again [for some reason it resets this during the flashing/wiping from above steps]

skribb said:
Hi, i just wanted to share the exact steps i took to root this tablet.
Funnily enough (for me at least), this was the easiest android device i've rooted out of all the ones i've previously owned. Thanks in part to OP of this thread!
The tablet i have is the following version:
TB-X606F_S300429_211101_BMP
unlock bootloader preparations
1. on tablet: go to Settings->System->About and press "Build number" 7 times to enable Developer Options.
2. go to Settings->System->DeveloperOptions.
3. Turn on: "OEM unlocking" and "USB debugging".
flash/root/recovery preparation
1. install latest: https://developer.android.com/studio/releases/platform-tools#downloads
2. install MTK_Android_USB_Driver
3. download TWRP for Lenovo Tab M10 Plus x606 (put it in the platform-tools directory)
4. reboot computer
5. run CMD command in the platform-tools directory:
fastboot flashing unlock
6. accept the conditions on the tablet screen
7. turn off tablet
8. turn on tablet into recovery mode with: Vol Up + Vol Down + Power (hold steady for several seconds after it vibrates)
9. choose "boot into bootloader" in the menu = now youre in fastboot mode
10. connect USB cable to computer
11. run CMD commands (wait for each commadn to finish ffirst of course):
fastboot flash recovery [TWRP you downloaded].img
fastboot --disable-verification flash vbmeta vbmeta.img
fastboot reboot recovery
now youre in TWRP again:
1. finish the decryption in TWRP. (same pin as regular android encryption pin code if you chose one before)
2. do NOT keep read only
3. go to backup tab and make a backup (boot, system, vendor, data)
4. advanced wipe -> wipe "data"
Time to flash root/magisk
1. download Magisk-v23.0.apk
2. rename to zip
3. place the zip in tablet storage via USB cable
4. go to "install" in TWRP
5. select the magisk zip
6. flash magisk
7. reboot into system
8. enable installation of untrusted apk sources in android settings
9. start magisk manager just to check that things are OK
10. download root checker and verify root
11. reboot tablet a bunch of times to see that root is sticking
12. enable developer options again [for some reason it resets this during the flashing/wiping from above steps]
Click to expand...
Click to collapse
What ADB driver did you use? I cant get a good driver to load in Windows.

@be_the_shooter
Not 100% sure but I think it was Universal ADB Driver 1.0.4 from ClockworkMod. I'm on win7 x64.

Related

[GUIDE][BOOTLOADER,TWRP, ROOT]Lenovo TAB3 8/TB3-850F

This guide, for the Lenovo Tab 3 8" (TB3-850F), has 3 purposes:
1. Unlocking your bootloader;
2. Installing TWRP custom recovery;
3. Attaining superuser privileges (root) of the stock OS.
NOTE:
I can attest & confirm that this method has worked 100% on at least 7 devices of my own. Please read and re-read the instructions carefully before proceeding. If you follow this tutorial exactly as delineated, you should have no adverse issues in unlocking your bootloader, flashing custom recovery, or achieving systemless root of the stock Android OS.
MENTIONS & THANKS:
Based on XDA Senior Member @Hemphiz's groundbreaking root and custom recovery for this device, I am now revising this thread wth improved step-by-step instructions based on members' feedback and experiences. Thanks @Hemphiz for your research, assimilation of necessary files, and for breaking ground on this tablet. Thanks also for your granting me ownership of the thread. Your contributions are greatly appreciated by many. Thanks to the great @Chainfire for his flashable systemless rooting script. Thanks to @jemmini for compiling TWRP for this tablet. Finally, thanks to the many members who have tested this guide and provided much needed input & user experience.
DISCLAIMER: As always, please be reminded of the risk involved with flashing a custom recovery and/or attempting to attain superuser privileges of your Android OS. I will not be held responsible for devices bricked or otherwise rendered inoperable as a result of this thread. You assume full responsibility for any good or bad which may result from proceeding any further. However, with that having been said, I will provide any and all support possible. Read and follow the foregoing steps thoroughly and carefully prior to proceeding. NOTE: THIS GUIDE IS INTENDED ONLY FOR THE LENOVO TAB 3 8"/TB3-850F.
REQUIREMENTS:
1. Minimal ADB & Fastboot v1.4 (or newer) Windows Installer;
2. Windows PC or laptop (Mac may be used; however this guide is intended for Windows 7 and newer operating systems);
3. Official Lenovo USB Device Driver v1.1.21;
4. TWRP v3.0.1 for the TB3-850F;
5. ADB Driver Installer for Windows;
6. SuperSU v2.82-SR5 flashable zip.
(All files, drivers & utilities for this process are available in the below download link)
DOWNLOAD LINK: https://drive.google.com/folderview?id=1l-YN5aXmjDF3O1bHxFHVIxLKuvd847Q9
INSTRUCTIONS:
1. First and foremost, unlocking the bootloader is necessary. Also, this step is a good place to make some requisite preparations. Power on your Tab 3 and select SETTINGS once booted up. Go to ABOUT DEVICE, find BUILD NUMBER, and tap it 7 or 8 times until DEVELOPER OPTIONS is enabled. In DEVELOPER OPTIONS, tick OEM UNLOCKING and USB DEBUGGING. On your PC, install the Minimal ADB & Fastboot utilities, the ADB Driver Installer, and the Lenovo USB Driver Installer. Connect your Tab 3 to your PC with the supplied (or quality equivalent) OEM charging/syncing cable. Open a command window in your ADB/Fastboot directory, by holding SHIFT and right clicking in the desired path. In the command window, type: adb devices & press RETURN. If your device is connected properly, the command window will display a string of numbers/letters, which represent your device's serial number. If your serial number does not appear in the window, try changing USB ports, change syncing cables, or try reinstalling the ADB Drivers. Once properly connected, type adb reboot bootloader & press RETURN. Your tablet should boot into Fastboot Mode, which will be displayed in white bold letters on your device's display once complete. Once in Fastboot Mode, type fastboot oem unlock & press RETURN. Your device will prompt you to press Volume Up to proceed with unlocking the bootloader, or Volume Down to cancel the process. WARNING: UNLOCKING THE BOOTLOADER AUTOMATICALLY INITIATES A FACTORY DATA RESET. YOU WILL LOSE ANY UNSAVED VIDEOS, MUSIC, PERSONAL FILES, ETC.
2. Now that your bootloader is unlocked, you are ready to flash TWRP. Download the twrp.img file from my link and save it to your PC in the ADB/Fastboot path/directory. Also, save a copy of the file on your device's internal storage or external micro SD card. Since your device underwent a factory data reset, you will again need to enable DEVELOPER OPTIONS & tick OEM UNLOCKING & USB DEBUGGING as you did in Step 1. When you have done this, again open a command window, ensure a proper connecion, & type adb reboot bootloader & press RETURN. Once in Fastboot Mode, type fastboot boot twrp.img & RETURN. EXTREMELY IMPORTANT NOTE: this device's boot image is secured with dm-verity. Leave the /system partition as read-only when prompted by TWRP. Mounting /system as read/write at this point will result in a boot loop. Flashing SuperSU, as outlined in Step 3, will patch dm-verity and fix this.
From the TWRP main menu, select INSTALL, select the image file option in the bottom right of the screen, navigate to the location where you saved twrp.img in device storage or external storage, and commence the installation. Be certain and correctly choose "recovery" when prompted by TWRP. Now select REBOOT, then RECOVERY. Your TWRP custom recovery should now be successfully installed on your device's /recovery partition.
3. Now, it is time to root this tablet. Download & save a copy of the SuperSU v2.82-SR5 zip file to the tablet's internal or external storage. In TWRP main menu, select INSTALL & navigate to the saved SuperSU zip. Commence with installation. Systemless root mode will unpack, modify, repack and flash the patched boot image. Once done, reboot system. Your Android OS should now have full systemless root, and the /system partition may now safely mount as read/write.
TROUBLESHOOTING:
In the event your device becomes stuck in a bootloop, or is otherwise failing to boot into the OS, the following is a link to my stock firmware images thread for this device. NOTE: the following link will be beneficial only if your device successfully boots into Recovery/Fastboot mode. This link provides stock partition images of /boot, /recovery, /logo & /system. Typically, flashing the stock boot & system images will get you up & running again, and will restore the Android OS to stock condition.
https://forum.xda-developers.com/an...o-tab-3-8-tb3-850f-android-6-0-t3593043/page5
In the unfortunate event that you encounter a brick (your device fails to boot into the OS or Recovery Mode), please visit @r&xp's thread on unbricking your device & restoring it to factory stock condition. Members using his thread be sure to thank @r&xp. His collection of necessary files & comprehensive instructions has saved many, many bricked tablets. https://forum.xda-developers.com/android/help/lenovo-tab-3-8-tb3-850f-unbrick-root-t3598727
What is your software version?
Mine is TB3-850F_160412
i have a pending 51MB update ,do i complete all updates or ignore them and root?
Also whats the procedure to unroot if i want to get the updates later?
viv_jen said:
What is your software version?
Mine is TB3-850F_160412
i have a pending 51MB update ,do i complete all updates or ignore them and root?
Also whats the procedure to unroot if i want to get the updates later?
Click to expand...
Click to collapse
Look for build number. It's usally best to determine things. I'm on TB3-850F_S100030_161209_ROW
I took the latest OTA before flashing twrp else ota will fail due to the recovery being modified. For unroot there's an option in Superssu to unroot. I would personally create a full backup via twrp before rooting, so you can revert to it if you wish
this bricked my tablet
nox13666 said:
this bricked my tablet
Click to expand...
Click to collapse
Well you must've done something wrong. It's pretty much fool proof
Hemphiz said:
Well you must've done something wrong. It's pretty much fool proof
Click to expand...
Click to collapse
Great thread. OP's instructions & downloads work flawlessly. Thank you @Hemphiz
Thanks for the guide
Thanks for the guide!
Everything works but when I reboot into recovery I just get the dead android with no command under him..
I tried two times with same result Fastboot reports twrp flashes ok
Any ideas?
Thanks
Xecsc said:
Thanks for the guide!
Everything works but when I reboot into recovery I just get the dead android with no command under him..
I tried two times with same result Fastboot reports twrp flashes ok
Any ideas?
Thanks
Click to expand...
Click to collapse
Not to hijack the OP's thread but here are my thoughts. The dead Android indicates that TWRP did not successfully flash to your /recovery partition. Sounds like stock recovery is still installed. First, place a copy of twrp.img on your device's internal storage or on an external micro SD. Try this: instead of typing the command "fastboot flash recovery twrp.img", type " fastboot boot twrp.img" (assuming your twrp file is named twrp.img. If it isn't, rename it twrp.img for simplicity purposes). This command will temporarily boot your device into TWRP recovery. From the main menu on TWRP, select INSTALL. In the bottom right of the screen, select the option for "img" files. Navigate to where you stored "twrp.img" and select it. Install it to "RECOVERY" when prompted. Once it flashes, select REBOOT then select RECOVERY. Your device should now successfully boot into TWRP recovery.
MotoJunkie01 said:
Not to hijack the OP's thread but here are my thoughts. The dead Android indicates that TWRP did not successfully flash to your /recovery partition. Sounds like stock recovery is still installed. First, place a copy of twrp.img on your device's internal storage or on an external micro SD. Try this: instead of typing the command "fastboot flash recovery twrp.img", type " fastboot boot twrp.img" (assuming your twrp file is named twrp.img. If it isn't, rename it twrp.img for simplicity purposes). This command will temporarily boot your device into TWRP recovery. From the main menu on TWRP, select INSTALL. In the bottom right of the screen, select the option for "img" files. Navigate to where you stored "twrp.img" and select it. Install it to "RECOVERY" when prompted. Once it flashes, select REBOOT then select RECOVERY. Your device should now successfully boot into TWRP recovery.
Click to expand...
Click to collapse
I was running into the same issue after flashing twrp.img via fastboot, it kept coming up with no command when booting into recovery. Followed MotoJunkies advice and booted into twrp.img instead of flashing and installed it that way, now my device is rooted. Thank you Hemphiz and MotoJunkie.
MotoJunkie01 said:
Not to hijack the OP's thread but here are my thoughts. The dead Android indicates that TWRP did not successfully flash to your /recovery partition. Sounds like stock recovery is still installed. First, place a copy of twrp.img on your device's internal storage or on an external micro SD. Try this: instead of typing the command "fastboot flash recovery twrp.img", type " fastboot boot twrp.img" (assuming your twrp file is named twrp.img. If it isn't, rename it twrp.img for simplicity purposes). This command will temporarily boot your device into TWRP recovery. From the main menu on TWRP, select INSTALL. In the bottom right of the screen, select the option for "img" files. Navigate to where you stored "twrp.img" and select it. Install it to "RECOVERY" when prompted. Once it flashes, select REBOOT then select RECOVERY. Your device should now successfully boot into TWRP recovery.
Click to expand...
Click to collapse
Thanks worked perfect!
this did not work for me. now my tablet is in boot loop. keeps going to team win. trying to trying to mount storage and then back to the regular boot. over and over.
figgenhoffer said:
this did not work for me. now my tablet is in boot loop. keeps going to team win. trying to trying to mount storage and then back to the regular boot. over and over.
Click to expand...
Click to collapse
Hmmm. Did you execute "fastboot oem unlock" first to unlock your bootloader? It sounds as though you are saying TWRP installed correct? When you try to boot into the OS, you are getting reverted back to TWRP?
i did that. i had teamwin recovery. then installed the superuser.zip and it keeps looping
figgenhoffer said:
i did that. i had teamwin recovery. then installed the superuser.zip and it keeps looping
Click to expand...
Click to collapse
I see. The superuser zip is likely the culprit. Which one did you use? Did you use the one in the link? Here is a link for the stock boot.img for this device. Install it in fastboot mode by typing "fastboot flash boot boot.img". Try booting after flashing the stock boot image and also try reinstalling the boot script.https://drive.google.com/file/d/0B7-zQU1VihD3ZGZBRzU1Nm1PYjA/view?usp=drivesdk
Note: you will need to rename the downloaded file to " boot.img"
Thanks for the guide. Tried to do this on the Lenovo TAB3 10 Business, but no success
I can connect using the tools and enter into fast boot
When I flash, it seems successful, but after shutdown, start with power, volume buttons, I don't see the TWRP, but instead a kind of test app
When i use the other method to boot into the twrp, the Lenovo, boots normal, not into TWRP
Any ideas?
smouge said:
Thanks for the guide. Tried to do this on the Lenovo TAB3 10 Business, but no success
I can connect using the tools and enter into fast boot
When I flash, it seems successful, but after shutdown, start with power, volume buttons, I don't see the TWRP, but instead a kind of test app
When i use the other method to boot into the twrp, the Lenovo, boots normal, not into TWRP
Any ideas?
Click to expand...
Click to collapse
When you initially connect your Tab3 to PC and open a command window, did you execute both recognition tests? "adb devices" and "fastboot devices"? I am just curious as to whether your device is being recognized by both the fastboot and the adb platforms. Please try this and let me know.
This i what I with Lenovo Tab3 10 business
>adb devices
List of devices attached
8HSKCMT4PJIZ9HDZ device
>adb reboot bootloader
>fastboot devices
8HSKCMT4PJIZ9HDZ fastboot
At this moment, on the Lenovo Android you only see a smaal line at the bottom: =>FASTBOOT mode...
The fastboot does nt deisplay errors, but after the following command, the tablet just boots in the normal Android. On the Android device I also saw quickly the message "USB transferring OK" before booting
>fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 1.192s]
booting...
OKAY [ 0.073s]
finished. total time: 1.269s
---------- Post added at 09:20 AM ---------- Previous post was at 09:03 AM ----------
On the Lenovo TAB3 10 Business I can also do the following:
Holding Vol up + Power when off and then releasing power when you see the Lenovo logo will bring up the following menu:
Select Boot Mode:
[VOLUME_UP to select. VOLUME_DOWN is OK.]
[Recovery Mode]
[Fastboot Mode]
[Normal Boot] <<==
With the recovery mode I see the following:
Android Recovery
Lenovo/LenovoTB3-X70L/TB3-X70L
6.0/MRA58K/TB3-X70L_S000020_170209_ROW
user/release-keys
Use volume up/down and power.
Reboot system now
Reboot to bootloader
Apply update from ADB
Apply update from SD card
Wipe data/factory reset
Wipe cache partition
Backup user data
Restore user data
Root integrity check
Mount /system
View recovery logs
Power off
smouge said:
This i what I with Lenovo Tab3 10 business
>adb devices
List of devices attached
8HSKCMT4PJIZ9HDZ device
>adb reboot bootloader
>fastboot devices
8HSKCMT4PJIZ9HDZ fastboot
At this moment, on the Lenovo Android you only see a smaal line at the bottom: =>FASTBOOT mode...
The fastboot does nt deisplay errors, but after the following command, the tablet just boots in the normal Android. On the Android device I also saw quickly the message "USB transferring OK" before booting
>fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 1.192s]
booting...
OKAY [ 0.073s]
finished. total time: 1.269s
---------- Post added at 09:20 AM ---------- Previous post was at 09:03 AM ----------
On the Lenovo TAB3 10 Business I can also do the following:
Holding Vol up + Power when off and then releasing power when you see the Lenovo logo will bring up the following menu:
Select Boot Mode:
[VOLUME_UP to select. VOLUME_DOWN is OK.]
[Recovery Mode]
[Fastboot Mode]
[Normal Boot] <<==
With the recovery mode I see the following:
Android Recovery
Lenovo/LenovoTB3-X70L/TB3-X70L
6.0/MRA58K/TB3-X70L_S000020_170209_ROW
user/release-keys
Use volume up/down and power.
Reboot system now
Reboot to bootloader
Apply update from ADB
Apply update from SD card
Wipe data/factory reset
Wipe cache partition
Backup user data
Restore user data
Root integrity check
Mount /system
View recovery logs
Power off
Click to expand...
Click to collapse
Chances are the twrp isn't compatible with your device. Although the hardware all looks the same. Problem is my knowledge with Android development isn't that great. I simply read in my spare time. The twrp I found for this device on a previous xda thread, but it was more of a Q&A so I made this guide to simplify things for people. I do know that the original twrp was made here http://4pda.ru/forum/index.php?showforum=583
Worked great for me thanks. Had a few problems off at first but managed to get it done. First boot did take a little while but after that all is great

[Guide] Root Pixel 3 XL Android 10.0 (Q)

[Guide] Root Pixel 3 XL Android 11 (R) Unlock/Lock Bootloader + Install Stock Images/Systemless Root2021
Android Security Bulletin—June 2021
Pixel Update Bulletin—June 2021​
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 Pixel 3 files.
New
Android 12 Developer Preview - Beta 2
Factory Images: Downloads for Google Pixel 06/09
OTA Images: Apply a device OTA image 06/09
CalyxOS
GrapheneOS
Update(s)
Factory/OTA Images - 06/07
Magisk Stable - Magisk-23.0 05/12
Magisk Beta - Magisk-23.0 05/12
Magisk Canary - Magisk-23xxx
TWRP - Waiting for Android 11 (Q) TWRP
SafetyNet - SafetyNetFix v1.1.1 01/16
SDK Platform-tools - r31.0.2 April
Custom Kernels
ElementalX (Check his Kernel Manager for latest update.)
Kirisakura v3.0.8_R 06/11
Custom ROMs
[ROM][11][OFFICIAL] lineage-18.1 for Pixel 3/XL (blueline/crosshatch) - Nightly by razorloves
[OFFICIAL][11]ScorpionROM v4.x 05/04
Disclaimer
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 11 (R) Factory or OTA Image: "crosshatch" for Pixel 3 XL
Factory Image
11.0.0 (RQ3A.210605.005, Jun 2021)
Which one should I use?
OTA Image
11.0.0 (RQ3A.210605.005, Jun 2021)
Which one should I use?
Computer - With the latest SDK Platform-Tools: r31.0.2 installed.
Important: Update Platform Tools, regularly, for optimal performance.
Other Pixel XL Guides
[Guide] Pixel 4 XL Android 11 (R)
Credits/Thanks/Recognitions
@topjohnwu - Magisk Canary
@sliding_billy - His help editing this thread.
Those I may have, inadvertently, forgotten.
Index
(NOTE: Numbers 1-11 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.
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.
After unlocking your bootloader, every time you reboot you'll see a warning: 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
Do not lock the bootloader until you have returned the phone to stock. Failure to do so causes bricked phones.
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.
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 with the -w (Wipe Data).
Always verify you have the latest version of SDK Platform-Tools installed on your computer before installing the Factory Image: Pixel 3 XL - crosshatch.
If your phone was rooted, and you want to 'Keep Data'. Do this first unhide Magisk App (if you hid it) then Uninstall Magisk - Restore Images prior flashing the Factory image. Why? The changes in the Factory image may cause Magisk modules to fail. This will cause boot loops.
If you get an error:when flashing, try one of these options:
Change the USB port to a non charging USB port.
Change the USB cord.
Change Computers.
Backup your data
Download the latest Factory Image: Pixel 3 XL - crosshatch to your Computer.
Extract the factory Image to a folder.
Flash Factory Image Keep Data
Open the folder with the extracted the Factory Image and Edit the flash-all.bat file with a file editor i.e., Notepad. Remove -wfrom this command: fastboot -w update image-crosshatch-aa9a.999999.999.zip
Note: If you do not remove the -w your Internal Storage will be wiped.
Copy/Move these files to the Platform-tools folder:
bootloader-crosshatch-....img
flash-all.bat
image-crosshatch-....zip
radio-crosshatch-....img
At the Command Promp type: flash-all and press enter.
System will reboot when flashing is complete.
Do #7 to root/reroot.
Flash Factory Image Wipe Data
This will wipe your Internal Storage.
Open the folder with the extracted the Factory Image.
Copy/Move these files to the Platform-tools folder:
bootloader-crosshatch-....img
flash-all.bat
image-crosshatch-....zip
radio-crosshatch-....img
Open a Command Prompt on your computer in the Platform-tools folder.
At the Command Prompt type: flash-all and press enter.
System will reboot when flashing is complete.
Do #7 to root/reroot.
ADB Sideload
Stock Recovery
Full OTA Images for Nexus and Pixel Devices - Updating instructions
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!
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
Note: Flashing this file removes root.
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.
Boot fastboot mode
Connect the phone to the Computer
At the Command Prompt type: fastboot flash boot --slot all boot.img
Reboot
Root/Reroot with Magisk and Pass SafetyNet.
Important Notes:
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.
If your phone was rooted. Do this first unhide Magisk App (if you hid it) then Uninstall Magisk - Restore Images. Why? The changes in the Factory image may cause Magisk modules to fail. This will cause boot loops.
Download files:
Magisk App - Download to your phone
Magisk Beta/Stable App
Magisk Canary App
Custom Kernels - Download to your phone - install with Kernel Manager
Important: Unless otherwise directed by Kernel Developer, Flash the Kernel after Magisk.
[Kernel][11.06.2021][4.9.272] Kirisakura_R 3.0.8 for Pixel 3/XL aka Bluecross by Freak07
Kernel Manager - Download to your phone
EX Kernel Manager
Patch the 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 ✓
Tap Let's Go
When you see done, the boot.img has been patched (magisk_patched_xxxxx.img), and stored in the download folder.
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: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 == > wait for it to boot ==> Reboot.
Pass SafetyNet: MAGISK MODULE ❯ Universal SafetyNet Fix 1.1.0
Download SafetyNetFix from the link above.
Open Magisk Canary App
Tap Modules icon.
Tap Install from storage
navigate to the SafetyNetFix file
Hightlight the file (tap it)
Tap the check mark (✓) to start the installation.
After it installs tap the Save icon to save the log
Tap Reboot.
Open Magisk Canary App
Tap the Setup icon.
Scroll down to Magisk - MagiskHide and enable it.
Tap back arrow => tap Superuser icon => tap MagiskHide => Scroll to the bottom of the page => Tap Search icon => Tap Show system apps (Under Filters) => check (✓): Google play services (com.google.android.gms).
Close Magisk Manager.
Open Settings
Tap Apps & notifications
Tap see all 999 apps
Tap the three dot menu
Tap Show system
Scroll down to Google Play Store
Tap it
Tap Storage & cache
Tap Clear cache
Tap Clear storage
Exit settings
reboot
Open Google Play Store app
Tap Menu
Tap Settings
Scroll down to Play protect certification
check for Device certification.
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
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
Custom ROMs
Need help with a Custom ROM?
Read and follow the Installation Instructions. The installation instructions are in the OP.
If you have a problem Installing the ROM, Search the thread of the Custom ROM you are trying to install for a solution to problem: If you don't find a solution post your request for help on the thread.
ROMs
Alpha/Beta
None
Official
[ROM][OFFICIAL][Android 11]ScorpionROM v4.x[Google Pixel 3/XL][Blueline/Crosshatch] by NepoRood
ROM][11][OFFICIAL] lineage-18.0 for Pixel 3/XL (blueline/crosshatch) by razorloves
Unofficial
None
Mods/Scripts/Themes
Tulsadiver's Mods
Android 10 ADB Installer-Zip Installer, creates magisk module by Tulsadiver
Android 10 Accents Mod by Tulsadiver
Others
[MODULE] MagiskHide Props Config - SafetyNet, prop edits, and more - v5.3.6 by Didgeridoohan
[Substratum][Magisk]Pixel Launcher Editor for P3XL by eg1122
[MOD][MAGISK][ANDROID 11] Addon Features for Pixel Devices - Pixel 3 XL Thread
T.W.R.P. Backup/T.W.R.P Update
Waiting for Android 11 (R) T.W.R.P.
Why on earth would anyone go through all these steps AND lock their bootloader when just using flashall.bat with -w intact also wipes your entire phone?!
@Homeboy76 did this work for you? Was getting ready to do a clean install and while researching what the delta of 19 and 20 was, I see talk of sensors not working?
I always appreciate using your guide(s). Thanks a lot!
guide works, thanks for helping me root android 10 on first day of official release
I've Magisk patched the boot.img using the Canary build and flashed.... it's been stuck on the bootscreen for about 20 minutes. Is this normal? How long should I leave it?
Has anyone gotten Adaway working?
Hi,
Great guide, appreciate it.
I'm on Android 9 rooted with magisk. when I try to install Android 10 I get an error below. Latest platform tools, Bonito .20 Any ideas what is wrong? Flashed multiple time through the Pie security updates etc and never had an issue.
_________________________________________________________________________________
F:\platform-tools>flash-all
Sending 'bootloader_a' (8349 KB) OKAY [ 0.298s]
Writing 'bootloader_a' (bootloader) Flashing Pack version b4s4-0.2-5736883
(bootloader) xbl signature verify fail
FAILED (remote: 'Validate packed image fail')
fastboot: error: Command failed
Rebooting into bootloader OKAY [ 0.048s]
Finished. Total time: 0.051s
Sending 'radio_a' (73196 KB) OKAY [ 1.798s]
Writing 'radio_a' (bootloader) Flashing Pack version SSD:g670-00025-190805-B-5781381
(bootloader) Flashing partition modem_a
OKAY [ 0.298s]
Finished. Total time: 2.376s
Rebooting into bootloader OKAY [ 0.048s]
Finished. Total time: 0.051s
--------------------------------------------
Bootloader Version...: b1c1-0.1-5191736
Baseband Version.....: g670-00025-190805-B-5781381
Serial Number........: 8A5Y0F91G
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product' FAILED
Device product is 'crosshatch'.
Update requires 'bonito' or 'sargo'.
fastboot: error: requirements not met!
Press any key to exit...
_________________________________________________________________
Looks like I screwed it up. Now it boots to the spinning G than back to Fastboot - "no valid slot to boot". Now what?
Reflashed Pie, all set -phone boots up. Now to figure out how to get to Android 10.
ginfest said:
Hi,
Great guide, appreciate it.
I'm on Android 9 rooted with magisk. when I try to install Android 10 I get an error below. Latest platform tools, Bonito .20 Any ideas what is wrong? Flashed multiple time through the Pie security updates etc and never had an issue.
........
Device product is 'crosshatch'.
Update requires 'bonito' or 'sargo'.
Click to expand...
Click to collapse
You've downloaded the wrong image. Are you on a 3a XL (Bonito) or regular 3 XL (Crosshatch)??
Download the correct image from here: https://developers.google.com/android/images
krs360 said:
You've downloaded the wrong image. Are you on a 3a XL (Bonito) or regular 3 XL (Crosshatch)??
Download the correct image from here: https://developers.google.com/android/images
Click to expand...
Click to collapse
Oh **** what a dummy I am! I'm on a Pixel 3XL not 3a XL. Sorry, I'll try again
---------- Post added at 08:49 AM ---------- Previous post was at 08:17 AM ----------
Ok, reflashed the correct Crosshatch 0.20, flashed the Magisk patched .img et viola, Android 10 rooted and no loss of data!
Thanks for all the help.
not to be that guy who asks for ETAs but any idea how long TWRP takes for a new version of android to come out? never really been around for a version release like this and just curious. waiting for TWRP to come out before i go through this process.
Homeboy76 said:
OP
Click to expand...
Click to collapse
Great write up! Thank you! I would suggest adding "--slot all" command to the magisk instructions. Root wasn't appearing to be working for me until I added that in.
pr0adam said:
not to be that guy who asks for ETAs but any idea how long TWRP takes for a new version of android to come out? never really been around for a version release like this and just curious. waiting for TWRP to come out before i go through this process.
Click to expand...
Click to collapse
This twrp works
https://forum.xda-developers.com/showpost.php?p=80017781&postcount=1152
---------- Post added at 06:17 PM ---------- Previous post was at 06:16 PM ----------
Has anyone been able to edit build.prop? I have root, but cannot mount the build.prop w/r.
lawtalking said:
This twrp works
https://forum.xda-developers.com/showpost.php?p=80017781&postcount=1152
---------- Post added at 06:17 PM ---------- Previous post was at 06:16 PM ----------
Has anyone been able to edit build.prop? I have root, but cannot mount the build.prop w/r.
Click to expand...
Click to collapse
even though it says its for blueline(pixel 3) and we are on crosshatch(pixel 3xl)?
I'm not able to flash the 10 factory image. I can flash pie just fine, but it always gives an error when trying to push the system image. I can flash Pie just fine. Anyone else have this issue?
jmartin72 said:
I'm not able to flash the 10 factory image. I can flash pie just fine, but it always gives an error when trying to push the system image. I can flash Pie just fine. Anyone else have this issue?
Click to expand...
Click to collapse
Are you getting an error saying that you need to use fastbootd?
airmaxx23 said:
Are you getting an error saying that you need to use fastbootd?
Click to expand...
Click to collapse
No it doesn't say that. I'd have to do it again to get the exact wording, but it makes my phone boot to some screen that says fastboot up at the top
pr0adam said:
even though it says its for blueline(pixel 3) and we are on crosshatch(pixel 3xl)?
Click to expand...
Click to collapse
Yes. The code paths are the same, so it works. Used it myself.
lawtalking said:
Yes. The code paths are the same, so it works. Used it myself.
Click to expand...
Click to collapse
Are you using just the .img each time or flashing an installer after?

[Guide] Root Pixel 4 XL Android 10 (Q)

Root Pixel 4 XL Android 10 (Q) Unlock/Lock Bootloader + Systemless ROOT
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
10.0.0 (QQ3A.200805.001, Aug 2020)
OTA Image
10.0.0 (QQ3A.200805.001, Aug 2020)
Computer - With the latest SDK Platform-Tools: r31.0.0 installed.
Important: Update Platform Tools, regularly, for optimal performance.
Other Guides
[Guide] Root Pixel 4 XL Android 11 (R)
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.
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.
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.
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.
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.
ADB Sideload
Stock Recovery
Full OTA Images for Nexus and Pixel Devices - Updating instructions
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!
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
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
EX Kernel Manager
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)
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.
Download files:
Magisk App - Download to your phone
Magisk Beta/Stable App
Magisk Canary App
Custom kernels - Download to your phone - install with Kernel Manager
No updated Kernels
Kernel Manager - Download to your phone
EX Kernel Manager
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.
Pass SafetyNet: #12 Apps/Mods/Scripts/Tethering/Themes
OTA Installation - Keep Root -- No Computer Needed
OTA Installation
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!
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...
Apps/Mods/Scripts/Tethering/Themes
MAGISK MODULE ❯ Universal SafetyNet Fix 1.1.0
T.W.R.P. 3.5.0_10-1 Backup/Restore
https://forum.xda-developers.com/t/twrp-coral-official.4111017/post-82764097
Great write up...as always. Is there an way to update security patches and keep root?
State.of.mind said:
Great write up...as always. Is there an way to update security patches and keep root?
Click to expand...
Click to collapse
Not really if you use factory images.
https://forum.xda-developers.com/pixel-4-xl/how-to/november-factory-images-t3997383/post80784067
Edit: nevermind
Badger50 said:
Not really if you use factory images.
https://forum.xda-developers.com/pixel-4-xl/how-to/november-factory-images-t3997383/post80784067
Click to expand...
Click to collapse
I guess it depends on what Factory Image information is needed.
State.of.mind said:
Great write up...as always. Is there an way to update security patches and keep root?
Click to expand...
Click to collapse
Thank you!
No, but look at # 9C
How do you know what November security patch to choose? When I go on the factory website there are three different versions of the update.
---------- Post added at 08:18 AM ---------- Previous post was at 08:15 AM ----------
State.of.mind said:
How do you know what November security patch to choose? When I go on the factory website there are three different versions of the update.
Click to expand...
Click to collapse
Never mind. I used this link to figure it out: https://support.google.com/pixelphone/thread/18553639?hl=en Hopefully it helps someone else
So this may be a dumb question but, does accepting an OTA relock the boot loader?
fredgar75 said:
So this may be a dumb question but, does accepting an OTA relock the boot loader?
Click to expand...
Click to collapse
No, but you must be Stock to accept the OTA, unless you do the Magisk OTA Installation.
State.of.mind said:
How do you know what November security patch to choose? When I go on the factory website there are three different versions of the update.
---------- Post added at 08:18 AM ---------- Previous post was at 08:15 AM ----------
Never mind. I used this link to figure it out: https://support.google.com/pixelphone/thread/18553639?hl=en Hopefully it helps someone else
Click to expand...
Click to collapse
I guess you didn't see the description of the Factory/OTA at the end of the download Factory/OTA links in 'Prerequisites'.
Will this work on the Verizon Pixel 4 XL??
SAMCR02018 said:
Will this work on the Verizon Pixel 4 XL??
Click to expand...
Click to collapse
If the bootloader is unlocked, it will work.
Homeboy76 said:
If the bootloader is unlocked, it will work.
Click to expand...
Click to collapse
That I know ok can the Verizon version get the BL unlocked?
SAMCR02018 said:
That I know ok can the Verizon version get the BL unlocked?
Click to expand...
Click to collapse
AFIK there is no method of unlocking the bootloader of a Verizon Pixel 4 XL after you activate it.
This thread suggest a possibility of unlocking A Verizon Pixel 4 XL bootloader if done before you activate it.
https://forum.xda-developers.com/pixel-4-xl/how-to/root-instructions-verizon-pixel-4-xl-t3990767
[deleted]
Factory/OTA Images - Dec 2019
Does someone have December boot.img? Ater updating got into bootloop, flashing previous magisk boot image with fastboot didn't worked
Can anyone definitively tell me whether re-locking the bootloader will wipe any data on the Pixel 4 XL? Thanks in advance!
fronc said:
Can anyone definitively tell me whether re-locking the bootloader will wipe any data on the Pixel 4 XL? Thanks in advance!
Click to expand...
Click to collapse
Yes....it definitely will! All of it!
Factory images are up. Does anyone know which one is for which?

Rooting CLT-L29 (P20 Pro) UK with EMU 9.1.0.381 and Magisk (and TWRP if you want)

P20 Pro with EMUI 9.1 (9.1.0.381 c782e11r1p11 clt-l29) and root!! But it only lasts until a reboot according to Magisk
Note with the latest Magisk I still cannot get root to persist after a reboot. (v20.4 20400)
Rooting without TWRP Recovery
Terms
Recovery Image= an image which runs on your phone to facilitate recovery, we are looking to patch it with a magisk binary
Stock Firmware = the OS installed on your phone by the manufacturer/network operator (branding). We aren't looking to replace this, but we do need to extract a file from the version you currently have
Stock Recovery = the recovery image installed with the P20 'eRecovery'
Recovery RAMdisk - This is where the recovery image is flashed. Alternative locations are the bootloader or the recovery partition. None of these work with EMUI 9.1
Commands are in italics
Prerequisites
adb binary
fastboot binary
Phone is backed up (unlocking the bootloader will factory reset and erase all data/apps)
Phone is plugged in and showing with 'adb devices'
You have a bootloader code
0. Unlock your bootloader
adb reboot bootloader
Once in fastboot mode type
fastboot oem unlock <unlock code>
Let the process finish.
1. Extract stock recovery image (RECOVERY_RAMDIS.img) from the Stock Firmware using Huawei Update Extractor
Get Stock Firmware for your version from :https://pro-teammt.ru/en/online-firmware-database/
Get Huawei Update Extractor from https://forum.xda-developers.com/showthread.php?t=2433454
Get the RECOVERY_RAMDIS.img file using these instructions https://www.theandroidsoul.com/extract-huawei-firmware-update-app
Rename the RECOVERY_RAMDIS.img file something logical based on your EMUI version e.g. I've renamed mine RECOVERY_RAMDIS_9_1_0_381_STOCK.img
2. Using Magisk Manager app, patch the stock recovery image extracted in Step 1
Get Magisk Manager and install the APK (IT's NOT on the Play Store (despite being called the same name)
Magisk Manager is available here. I would suggest installing a stable version or you maybe risking a boot loop.
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337
or google for it. This forum blocks the URL for some reason.
Once you have installed the APK...
Tap 'Install' next to 'Magisk is not installed' .
Tap 'Install' again
Tap 'Select and Patch a File', then choose the file RECOVERY_RAMDIS_9_1_0_381_STOCK.img (or whatever you called it)
3. Copy the patched recovery image file Magisk just created to your PC
(Magisk will tell you where it put it, generally in your 'Downloads' folder)
4. Flash the Patched Recovery Image using fastboot mode
Note not possible to flash the boot or recovery with Magisk/TWP on EMUI 9+ you have to flash recovery_ramdisk
adb reboot bootloader
fastboot flash recovery_ramdisk RECOVERY_RAMDIS_9_1_0_381_PATCHED.img
(replace RECOVERY_RAMDIS_9_1_0_381_PATCHED.img file with whatever you called it)
NOW read step 5. Get ready and then...
fastboot reboot
5.This step is very important l!
As soon as you issue the reboot command and the screen goes blank, you will need to press and hold volume up and power buttons simultaneously for a few seconds.
When you're doing this, unplug the USB cable. As soon as you see the Huawei logo, release BOTH keys
You will see the unlock warning, but if you did it right, you will not see instructions on the screen telling you what to press to continue etc
If you see instructions telling you to press a key combination to continue, you didn't do it right and will need to start again at step 4 after the phone reboots.
6. Check Root with Magisk Manager/Another root tool
TWRP
You can also flash TWRP using the version at https://dl.twrp.me/charlotte/ or
Alternative: Install Magisk from TWRP? search google for "install-twrp-recovery-root-huawei-p20-pro" to find a link from the custom droid
Just replace the file in step 4 with the .img file from that URL
You can only flash TWRP or MAGISK. I've not been able to load the Magisk (optained from the Magisk Manager) through TWRP as the internal storage is not accessible
and OTG storage doesn't seem to be accessible either.
I am not 100% sure how this works as magisk occupies the recovery_ramdisk just like twrp:
Connect your phone to the PC (while it’s in TWRP) mode.
In TWRP, go to ‘Advanced’ and enable ‘ADB Sideload’.
Then, enter the following command on PC: adb sideload Magisk-v20.3.zip
Boot Lockup
If you experience a boot lockup (especially when trying to boot to recovery with power + vol up) you can do an adb reboot and boot with holding vol up
This will open EMUI erecovery and you can then choose reboot to boot normally to the system.
It all worked for me, for CLT-L09. And even keeping root after rebooting. With standard Magisk 20.4.

[Guide] Root Pixel 4 XL with Magisk Android 13

[Guide] Root Pixel 4 XL With Magisk Android 13
Android Security Bulletin—Feburary 2023
Pixel Update Bulletin—Feburary 2023​
Introduction
This Guide is for Pixel 4 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 ~ ~ ~
Disclaimer
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.
A Computer with the latest working SDK Platform-tools 33.0.3 installed.
Important Notes:
a. 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.​
b. Update Platform Tools, regularly, for optimal performance.​
c. 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 Thread
forum.xda-developers.com
Update(s)
Magisk Alpha - app-release_709f25f6-26101.apk 12 Apr
Magisk Beta - Magisk v26.1.apk 11 Apr
Magisk Canary - app-release_a8c4a33e-26103.apk 23 Jun
Magisk Cygisk - Click Pages 5 for installation Instructions.
Magisk Delta -
app-release
Magisk Stable - Magisk v26.1.apk 11 Apr
SafetyNet - Displax's SafetyNet Fix, v2.4.0-MOD_1.3 17Jun
SDK Platform-tools 33.0.3 Aug 2022
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
Google Pixel 4 XL ROMs, Kernels, Recoveries, & Other
My Other Guides
Pixel 7 Pro
Pixel 6
Pixel 5
Pixel 4a (5G)
Pixel 3 XL
Pixel 1 XL
Credits/Thanks/Recognitions
bradical711 - Instructions to Pass Safety Net
Those I may have, inadvertently, forgotten.
~ ~ ~ Part II - INSTRUCTIONS ~ ~ ~
(The Instructions listed below are not steps, they are individual sets of instructions.)
Open a Command Prompt/Boot Fastboot Mode/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.
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.
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
Return the phone to Stock before locking the bootloader, failure to do so could brick your phone
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.
(NEW) Make Both Slots Bootable: Manually, Flash the OTA Image to Both Slots - One bootable and rooted, the other slot bootable without root.
Before you start
Backup your data
Make sure that there is no pending OTA update, by going to Settings > About phone > System updates, which should say Your system is up to date.
Download the latest Factory and OTA image for your device.
Verify the checksum of the Factory and OTA image. The last portion of the filename is the first 8 digits of its SHA-256 checksum; the full SHA-256 checksum is shown next to the download link.
Extract the boot/init_boot.image from the Factory image:
Extract the Factory Image file that you downloaded (coral-a9a9a.999999.999-factory-99a9a99a.zip) into a folder.
Open the folder you extracted the Factory image to and extract the Image file (image-coral-aa9a.999999.999.zip) into a folder. The stock boot/init_boot.img file should be in this folder.
Patch the boot/init_boot.img:
Open the Magisk Alpha/Beta/Canary/Delta/Stable App
The Update Channel should be set to Alpha/Beta/Canary/Delta/Stable, depending on the version you installed.
Tap Install (next to Magisk)
Tap, Select and Patch a File
Select the boot/init_boot.img file you extracted from the factory image.
Tap the ✓ (Check Mark)
Tap Let's Go
When you see done, the boot/init_boot.img has been patched (magisk_patched_xxxxxx.img), and is stored in the download folder.
Reboot
Copy/Move the magisk_patched....img file to your computer's Platform-tools folder or the folder that has fastboot.exe in it:
Boot Recovery mode
With the device powered on and USB debugging enabled, type: adb reboot recovery
If you're unable to use adb to reboot into recovery, you can use the key combination for your device: Press and hold Volume Down button, then press and hold Power button then use the Volume Down/Up button to select the Recovery option from the menu.
The device is now in recovery mode an Android logo with red exclamation mark should be on the screen.
Access the recovery menu:
Hold the Power button and press Volume button up once. The recovery text menu will appear.
Enter sideload mode:
Select the Apply update from ADB option from the recovery text menu
Run the following command: adb devices check that your device shows up with "sideload" next to its name.
Sideload the OTA zip file
Connect the phone to the PC via USB cable
On the phone: boot bootloader/fastboot mode
On the PC:
Open a command prompt in the SDK Platform-tools folder.
Type:
adb sideload coral-ota-tq3a.230605.012-f32168af.zip and press enter.
Once sideloading finishes, reboot the phone by choosing Reboot system now option on the The recovery text menu.
Sideload the OTA zip file to the other slot and Root it.
Boot Recovery mode
With the device powered on and USB debugging enabled, type: adb reboot recovery
If you're unable to use adb to reboot into recovery, you can use the key combination for your device: Press and hold Volume Down button, then press and hold Power button then use the Volume Down/Up button to select Recovery option from the menu.
The device is now in recovery mode an Android logo with red exclamation mark should appear on screen.
Access the recovery menu:
Hold the Power button and press Volume up button once.
The recovery text menu will appear.
Enter sideload mode:
Select the Apply update from ADB option on the recovery text menu.
[*]Sideload the OTA zip file
Connect the phone to the PC via USB cable
On the phone: boot bootloader/fastboot mode
On the PC:
Open a command prompt in the SDK Platform-tools folder.
Type: adb sideload coral-ota-tq3a.230605.012-f32168af.zip at the prompt and press enter.
Once sideloading finishes, choose Reboot system now option on the The recovery text menu.
Flash boot/init_boot.img to root
On the phone: Boot bootloader/fastboot mode
Connect the phone to the Computer with USB cord.
On the PC:
Open a Command Prompt in the SDK Platform-tools folder.
Type: fastboot flash boot/init_boot magic_patched....img at the Prompt and press enter.
Type: fastboot reboot at the Prompt and press enter.
Disconnect the phone from the PC.
Notes:
This slot is bootable and rooted. The other slot is bootable without root.
Check that the other slot is bootable and not rooted
On the Phone: Boot bootloader/fastboot mode
Connect the phone to the PC via USB cable
On the PC:
Open a command prompt in the SDK Platform-tools folder.
Type: fastboot --set-active=other at the prompt and press enter.
Type: fastboot reboot and press enter.
Disconnect the phone from the PC.
To return to the other slot that is bootable and rooted
On the Phone: Boot bootloader/fastboot mode
Connect the phone to the PC via USB cable
On the PC:
Open a command prompt in the SDK Platform-tools folder.
Type: fastboot --set-active=other at the prompt and press enter.
Type: fastboot reboot and press enter.
Disconnect the phone from the PC.
Done!
ADB Sideload
Stock Recovery
Full OTA Images for Nexus and Pixel Devices - Updating instructions
Custom Recovery TWRP
Waiting for Android 11 (R) T.W.R.P
Flash boot.img
Flashing the boot.img removes root.
Copy/Move 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:
fastboot flash boot --slot all boot.img
Reboot
Pass SafetyNet with Magisk module.
Pass Safety Net with SafetyNet Fix Magisk Module
Download File(s)
Displax's latest SafetyNet Fix, a "fork" of kdrag0n safetynet-fix.
These are the NEW Magisk Module repositories:
Androidacy Module Manager
Androidacy Module Manager - Releases
Androidacy Download Center
This is the old Magisk Module repository:
https://github.com/Fox2Code/Fox Magisk Module Manager
Install Displax's safetyNet Fix
Open Magisk
Tap Modules icon
Tap Install from storage
Navigate to the Displax's SafetyNet Fix file you downloaded.
Tap the Displax's SafetyNet Fix 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.
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.
Enable Denylist
Tap Configure DenyList => Tap 3 Dot Menu => Check ✓ Show system apps => Check ✓ Google Play Store, Google Pay, Google Wallet etc.
(Optional) Scroll down to Superuser and enable Enable Biometric Authentication.
Get Device Certified
Turn Airplane mode on
Open Settings
Tap Apps & notifications
Tap see all...
Tap three dot menu
Tap Show system
Scroll to Google Play Store
Tap Storage and Cache
Tap Clear storage
Note: Repeat the 3 steps above for any app that needs Device Certification i.e., Google Play Services, Google Pay, Google Wallet, etc.
reboot
Turn Airplane mode off
Check Device Certification
Open Google Play Store app
Tap Menu - Circle top right
Tap Settings
Tap About
Check Play protect certification
It may take 24 hours for Device Certification to be updated.
Note: If after completeting Get Device Certified and Check Device Certification you've waited 24 hours your Device is not Certifed or your Device is Certified and certain Google Store apps (Google Pay, NetFliks, etc.) are not working. Use the Play Integrity API Checker app or the TB Checker - Safetynet and Root app to verify you are passing Play Integrity.
Set Magisk App Update Channel/Update Magisk
Set Magisk App Update Channel
Open Magisk App > Tap Settings icon > 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/Download
Tap, Reboot
Done!
Install/Update Magisk Modules
Download File(s)
Displax's latest SafetyNet Fix, a "fork" of kdrag0n safetynet-fix.
These are the NEW Magisk Module repositories:
Androidacy Module Manager
Androidacy Module Manager - Releases
Androidacy Download Center
This is the old Magisk Module repository:
https://github.com/Fox2Code/Fox Magisk Module Manager
LSposed Releases
Shamiko Releases
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 Androidacy Module Manager
Open Androidacy Module Manager
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 Androidacy Module Manager
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
~ ~ ~ Part III - OTHER ~ ~ ~
Custom ROMs
Need help with a Custom ROM?
If 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 or Try installing it with PixelFlasher, a GUI tool for flashing / updating / rooting / managing Pixel phones..
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
Google Pixel 4 XL ROMs, Kernels, Recoveries, & Other
Themes, Apps, and Mods
Google Pixel 4 XL Themes, Apps, and Mods
T.W.R.P. Backup/Restore
Waiting for Android 13 T.W.R.P.
U da man Homeboy76. Really appreciate all the work you did putting this together. Thanks.
fastboot flash boot magisk_patched.img.--slot all
i have to remove the period after the patched.img. if not i get a no such file in directory
mikepopo99 said:
fastboot flash boot magisk_patched.img.--slot all
i have to remove the period after the patched.img. if not i get a no such file in directory
Click to expand...
Click to collapse
:good:
Worked like a charm for me. I did a clean a clean install. No issues. Just like flashing a monthly update.
Bootlooping
no matter what I do I keep bootlooping. I'm doing everything on the instructions list. IM trying to root android 11 on my pixel 4 xl. I just flashed the update with the flash all and wiped everything. But when i try to root it gets stuck at the google logo. i have the Magisk Canary Channel installed and patched the boot image and everything. I get the no valid slot to boot in the bootloader.
mikepopo99 said:
no matter what I do I keep bootlooping. I'm doing everything on the instructions list. IM trying to root android 11 on my pixel 4 xl. I just flashed the update with the flash all and wiped everything. But when i try to root it gets stuck at the google logo. i have the Magisk Canary Channel installed and patched the boot image and everything. I get the no valid slot to boot in the bootloader.
Click to expand...
Click to collapse
Curious
- SDK Platform-tools r 30.0.4?
- What slot did the September 2020 Factory image flash to?
I'm not sure what slot. But yes I am using the newest platform tools. How can I check. I just did the flash all script from Google and did a clean install.
mikepopo99 said:
I'm not sure what slot. But yes I am using the newest platform tools. How can I check. I just did the flash all script from Google and did a clean install.
Click to expand...
Click to collapse
Check: Boot fastboot mode (#1 in the guide) see boot slot.
Best guide on xda.
I just wonder: Can I flash Android 11 on top of Android 10 and keep my data (by removing -w) or is it recommended to clean flash Android 11?
Utini said:
Best guide on xda.
I just wonder: Can I flash Android 11 on top of Android 10 and keep my data (by removing -w) or is it recommended to clean flash Android 11?
Click to expand...
Click to collapse
I recommend clean flashing.
Utini said:
Best guide on xda.
I just wonder: Can I flash Android 11 on top of Android 10 and keep my data (by removing -w) or is it recommended to clean flash Android 11?
Click to expand...
Click to collapse
I would never try to tell anyone which way is the correct way since opinions vary. Having said that, I updated without the -w and have had zero problems thus far. However, I would take all necessary precautions as usual:
1. Update your platform-tools.
2. Remove/disable all magisk modules.
3. Remove your face unlock before starting.
4. You'll need to be on the latest canary magisk if you want to root.
5. If you patch your boot.img, make sure the finished image is 32.55 mb. I personally patch the new boot.img before even starting the update process so it's ready to go.
Again, this is how I like to update my device, and is not the be all end all method that others may like to use. Best of luck to you no matter which method you may choose to use. :good:
Badger50 said:
I would never try to tell anyone which way is the correct way since opinions vary. Having said that, I updated without the -w and have had zero problems thus far. However, I would take all necessary precautions as usual:
1. Update your platform-tools.
2. Remove/disable all magisk modules.
3. Remove your face unlock before starting.
4. You'll need to be on the latest canary magisk if you want to root.
5. If you patch your boot.img, make sure the finished image is 32.55 mb. I personally patch the new boot.img before even starting the update process so it's ready to go.
Again, this is how I like to update my device, and is not the be all end all method that others may like to use. Best of luck to you no matter which method you may choose to use. :good:
Click to expand...
Click to collapse
A second opinion is good.
Any tricks to getting Safetynet to pass? I did a clean install and build updated everything and safetynet is still failing.
Thanks all.
great guide! i almost messed up bad when i flashed first time it froze up and stalled i realised my ssd main drive ran out of space. freed up some space and retried and all worked great! (its a lot bigger than i thought when installing)
Great guide. Boot image is patched and flashed on Android 11.
I can't pass SafetyNet however. Is anyone on Android 11 and passing? Any tips?
madmaverickmatt said:
Any tricks to getting Safetynet to pass? I did a clean install and build updated everything and safetynet is still failing.
Thanks all.
Click to expand...
Click to collapse
ucantescape1992 said:
Great guide. Boot image is patched and flashed on Android 11.
I can't pass SafetyNet however. Is anyone on Android 11 and passing? Any tips?
Click to expand...
Click to collapse
Safetynet
https://forum.xda-developers.com/apps/magisk/module-magiskhide-props-config-t3789228
Post deleted!
So, I've been out of the flashing game for a long minute but I had to do something about all the ads I was getting. Blockada seemed to work okay but always left something to be desired. I missed Adaway, so....
I had a hard time getting Magisk installed in Android 11 on my Pixel 4xl. I followed this well written tutorial to a tee but when I flashed magisk_patched.img to boot, then "fastboot reboot," it would kick me back to fastboot after the "G" screen and spit out the error "no valid slot to boot." Three times in a row after clean flashing the factory image too!
I did end up getting it working. What I ended up doing was instead of "fastboot flash boot magisk_patched.img --slot all" I "fastboot flash boot magisk_patched.img" and for whatever reason that seemed to work.
I did not take the OTA update if it matters. I had intended to wipe the device with a clean install of Android 11, then Magisk (just for ad blocker) from the get so, I'm guessing slot b wasn't used? I'm honestly not really sure how it works.
Even then though, I had some trouble getting the order right from flashing the factory image to being rooted, so this is also what I found.
First, unlock the bootloader of your device, then clean install Android 11 and get it set up. Download Magisk manager canary, then adb push the boot.img from your computer to your device. Use Magisk manager to patch it, then adb pull magisk_patched.img back to your computer. From there, fastboot flash boot your magisk_patched.img and you're golden. Fastboot reboot should put you back in to Android and then Magisk manager will recognize root.
I had tried several times to use a boot.img I had already patched some days earlier but it never seemed to work. It would boot okay, once I figured out not to "--slot all," but Magisk would never recognize it was rooted unless Magisk manager patched it and I flashed that particular patched file. If I tried to flash any other patched file, Magisk manager wouldn't recognize root. Even recently patched boot.img's that were flashed to the device (not the days old one I had pre-prepped) wouldn't work. Magisk manager only seemed to recognize patched boot.img's that were made by it in that particular install. If I tried to use a boot.img from any other Magisk Manager install it wouldn't recognize it. Weird? I dunno, but, I got it up and running!
Thanks Homeboy76 for making this tutorial. Without it I would have been lost. :good:
TheDiabolicaL1 said:
...I did end up getting it working. What I ended up doing was instead of "fastboot flash boot magisk_patched.img --slot all" I "fastboot flash boot magisk_patched.img" and for whatever reason that seemed to work... :good:
Click to expand...
Click to collapse
@TheDiabolicaL1
Thanks for the kind words.
Glad you got it working and, thanks for posting this information: fastboot flash boot magisk_patched.img
It provides an alternative method of flashing the magisk_patched boot.img for the members getting boot loops.
However, fastboot flash boot magisk_patched.img --slot all does work without boot loops:
C:\android-sdk_windows\image-coral-rp1a.200720.009\platform-tools_r30.0.4-windows>fastboot flash boot magisk_patched.img --slot all
Sending 'boot_a' (33336 KB) OKAY [ 0.234s]
Writing 'boot_a' OKAY [ 0.326s]
Sending 'boot_b' (33336 KB) OKAY [ 0.234s]
Writing 'boot_b' OKAY [ 0.335s]
Finished. Total time: 2.509s

Categories

Resources