yashsingh1/xdaforums huggingface dataset:
[Google Pixel 4 XL Guides, News, & Discussion] v12xke:
Congrats. This guide is one of the best. I would start HERE. There's a little trick that seems to trip up a lot of newcomers. First, you have to enable "Sytemless Hosts" in Magisk settings. REBOOT, then launch the app. You will find support and the dev here on XDA. Next I would look for a good kernel manager. EXKM has an excellent battery manager, allows some tweaking, and dev is fantastic. Battery life is why you started this exercise, right? Titanium Backup is at the PlayStore HERE. You need to buy the Pro key to unlock batch backup/restore among other features. You can PM me if you would like to discuss more.
[Google Pixel 4 XL Guides, News, & Discussion] appro77:
Thanks for the guide Homeboy76. All working great. Is there a guide on how to install monthly updates and retain or reinstate root?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
[MENTION=4069911]appro77[/MENTION]

Install Monthly updates & Retain Root:

- Do #7 D

Install Monthly updates & Reinstate Root:

- Do #4 and #7 A-C
[Google Pixel 4 XL Guides, News, & Discussion] Vantskruv:
Hmm, I cannot find step #7 (is it another source you are referring to than to the first post?).

I have been trying to find a good procedure to do the OTA updates, but still I need to download the full image of 2Gb everytime and doing in it my own way. I do not know how to extract and modify the boot.img from the OTA-image files.

This is how I am doing it, but before posting it, in step 11, should I flash the magisk_boot.img with the command:

$ fastboot flash boot --slot all boot.img

instead of

$ fastboot flash boot boot.img

??

I am unable to post my procedure here because of character-limit in this forum, but I have attached the procedure as a txt file.
[Google Pixel 4 XL Guides, News, & Discussion] appro77:
My December Android 11 update doesn't seem to want to install using the usual method. I understand how to retain root by first disabling Magisk using the usual update method but that's not going to work for me.

If I disable Magisk first then sideload the update through the stock recovery, I'm thinking that will force me to reboot and I'll then need to go through the whole root procedure again. Is that correct?
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
I didn't see the part about unchecking modules and uninstalling magisk in the update & re root section. Did you take that out? I still did it out of habit, too chicken not too. Just curious.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Yes, I replaced it with #4 Important Notes 3.

Uninstalling Magisk/Restore Image removes all modules.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Did you try #7 OTA Installation?
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
Try flashing the factory image -w. It works pretty good. If things don't go well you are in a good position to fix it. I know it seems like a pain to reroot magisk every time, but it goes pretty fast.
[Google Pixel 4 XL Guides, News, & Discussion] GravityNinja:
I've been through these directions a dozen times and I'm still at a loss as to how to apply the update. There is not a "D" under #7 period. The OTA update is not the same file structure as the factory image so that doesn't apply at all. Anyone?
[Google Pixel 4 XL Guides, News, & Discussion] Lughnasadh:
What exactly are you trying to update from and to?

Do you want to keep your data or do a clean flash?

Do you know how to use fastboot?
[Google Pixel 4 XL Guides, News, & Discussion] GravityNinja:
Hey, Lug. Yes, I know how to use fastboot. I've been rooting and using custom ROMs for years but never without the TWRP safety net. Somehow, I managed to inadvertently leave the automatic updates on and last night, I believe the December update was installed. This morning, the screen had no status bar and unresponsive navbar.

I tried updating the boot loader but I'm guessing the couple of Magisk modules I have might be the cause. I'm about to try flashing the updated December factory image without the "-w" and see if that works. If not, I'll have to start over.
[Google Pixel 4 XL Guides, News, & Discussion] GravityNinja:
BTW, the original error (for posterity) was after reboot, "Pixel is starting..."
[Google Pixel 4 XL Guides, News, & Discussion] Lughnasadh:
Ok. That should work. Before reinstalling Magisk, or even before flashing the Dec. factory image I would suggest to remove all magisk mods first. I know that there were some SystemUI changes in the December update so any mods that affect that may play havoc with your phone.
[Google Pixel 4 XL Guides, News, & Discussion] GravityNinja:
I didn't know there was a way to remove Magisk modules from fastboot. How do you do that?
[Google Pixel 4 XL Guides, News, & Discussion] Lughnasadh:
Oh, I didn't mean from fastboot. I meant uninstalling them in Magisk Manager before flashing the factory image.

But if you are in a situation where you can't get into your phone due to a magisk mod, you can boot up in safe mode, which will temporarily disable the modules, and then delete them in /data/adb
[Google Pixel 4 XL Guides, News, & Discussion] GravityNinja:
Thanks, Lug!
[Google Pixel 4 XL Guides, News, & Discussion] GravityNinja:
UPDATE: If you're a bonehead like me and you inadvertently left auto-updates on, the December patch was likely installed last night or will be soon. Luckily, my Magisk modules didn't cause any issues after applying the following:

Download the latest factory image (December 5, 2020).

Edit flash-all and remove the "-w".

Run flash-all in bootloader.

Extract the boot image from the zip file.

Copy it to your phone once you've rebooted.

Open Magisk and patch the boot image.

Reboot to bootloader and flash the modified image.

Reboot. You're done.
[Google Pixel 4 XL Guides, News, & Discussion] Lughnasadh:
Glad you got it going (y) . This is what I do every month. Of course, I disable a few Magisk Mods which modify the SystemUI (some need to be updated by the developer after an update) and Substratum overlays first.
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
I'm finding it in #4 subsection 3. I uncheck the modules in magisk, reboot, then uninstall magisk (restore images). Then flash factory image -w. It's been keeping me out of trouble.
[Google Pixel 4 XL Guides, News, & Discussion] WhiteReign:
First off great work here. Always love to see people spelling it out for us noobs.

On a Pixel 4XL

I am using PixelDust ROM 11

I do get boot loop when trying to root. Did every thing as asked but for some reason it doesn't like me. Could I have missed something? Any help would be great!
[Google Pixel 4 XL Guides, News, & Discussion] GravityNinja:
Check out #18.

"Important Notes: If your phone boot loops try one of the following options:

Flash the 'stock' boot.img to both slots: [JCODE]fastboot flash boot boot.img --slot all[/ICODE]

Boot Safe Mode - Press Power Off button ==> Press Power Off until you see boot Safe Mode ==> Press Ok."
[Google Pixel 4 XL Guides, News, & Discussion] Lughnasadh:
@Homeboy76 Just wanted to give you a heads up. With the latest Magisk Beta (21.2) that came out yesterday, the patched output file is no longer named "magisk_patched.img". He added a suffix to the name so each time you patch the stock boot image a different output name will result. Thought you might want to modify #7 to address this change (y)
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Done, thanks for the tip.:p
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
This is why I follow this thread. It keeps me out of trouble. But now I wonder what it will be called. I suppose I could patch one and find out. I'm going to have to do it in about 6 days anyway, I will find out then.
[Google Pixel 4 XL Guides, News, & Discussion] Lughnasadh:
It will be magisk_patched.xxxxxxx.img. The xxxxx suffix will change every time you patch your boot image, even if patching the same boot image.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Thanks, OP updated.:)
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Did you read #9 - Need help with a Custom ROM?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
@GravityNinja thanks for the info about this thread, good looking out. :)
[Google Pixel 4 XL Guides, News, & Discussion] MrNameGuySir1:
Question, is this working after the latest update? Looks like maybe it was Jan 5th?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
If you are referring to patching the boot.img.

Yes.

if not what are you asking about?
[Google Pixel 4 XL Guides, News, & Discussion] MrNameGuySir1:
I meant the original post, rooting my pixel 4xl. I forgot to turn off auto updates and just now saw this post
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
ok.

So, you took the OTA update and lost root?
[Google Pixel 4 XL Guides, News, & Discussion] MrNameGuySir1:
Oh, no, I've never rooted this phone before. I just recently wanted to root to install lineage os or graphene, but I was wondering if this root method was still working after the latest OTA cuz this was posted in September
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
What was posted in September?
[Google Pixel 4 XL Guides, News, & Discussion] MrNameGuySir1:
This root guide... It was posted in September 8th of 2020.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Original post date, Last edited/updated: Today at 8:27 AM
[Google Pixel 4 XL Guides, News, & Discussion] MrNameGuySir1:
Oh .. okay, I'm sorry, I'm not super familiar with XDA, just wanted to make sure I could still root after the latest OTA lol
[Google Pixel 4 XL Guides, News, & Discussion] loonix:
I had to install Universal SafetyNet Fix by @kdrag0n (in addition to props config)in order to pass SafetyNet. I think it's pretty much required going forward.
[Google Pixel 4 XL Guides, News, & Discussion] TechShelter:
Disregard - I misread the instructions. Thank you Homeboy76 for the quick correction.

I have not been able to to successfully patch the bootloader. If I'm overlooking something obvious, I apologize.

On my laptop, I extracted bootloader-coral-c2f2-0.3-6863466.img from the latest factory image coral-rq1a.210105.003-factory-9e688c2f.zip and pushed it to the Download folder on my phone. I first tried using Magisk Manager v8.0.7. I clicked Magisk ⍗ Install followed by 🞊 Select and Patch a File  and choose the bootloader image.When the installation progress screen appears, it has an error:

! Unsupported/Unknown image format

I have tried switching to the latest Magisk Manager canary version (0646f48e - 21407), but I get the same error. I tried instead using the bootloader-*.img from the December coral-rq1a.201205.008.a1-factory-cef8db11.zip, same error. I've verified SHA256 of the images. I've extracted the bootloader on a pc (linux) and pushing it to the phone, I've tried extracting the bootloader locally on the phone.

What am I doing wrong?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
You

do not patch the bootloader.img

, you patch the boot.img:

7. Root/Reroot with

Magisk

and

Pass SafetyNet

- Patching the boot.img
[Google Pixel 4 XL Guides, News, & Discussion] BenedictArnoldPalmer:
Seriously, thanks Homeboy76.

The last device I rooted was an iphone 3 when they were still new, so I expected to be a bit lost doing this.

The guide was great. No problems at all following along to root my Pixel 4 XL.
[Google Pixel 4 XL Guides, News, & Discussion] holmesmalone:
I used this guide to root my 4xl yesterday. It went well until it booted to home screen. The screen was unresponsive to touch. Buttons worked. How is that even possible?

Flashed the factory boot.img and restarted. Working touchscreen, but of course no root.
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
Sounds like an issue with magisk. Are you running the canary version? Latest platform tools? Also 3rd party launchers have been a little glitchy.
[Google Pixel 4 XL Guides, News, & Discussion] holmesmalone:
Thanks, this helped. Mission accomplished.
[Google Pixel 4 XL Guides, News, & Discussion] flash713:
I run sudo ./flash-all.sh on Ubuntu and it stops here on Dev preview 3 every time for me on my coral..
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Did you try unpluging the PC and repluging

it?

Is your USB cable pluged into a charging USB port?

Are you using an A to C USB cable or a C to C USB cable?
[Google Pixel 4 XL Guides, News, & Discussion] flash713:
Switched cables and it worked. Duurrrr on my end. 😂🤣 Tks!!!
[Google Pixel 4 XL Guides, News, & Discussion] RBEmerson:
I just encountered a notice that Google will be putting out an OTA this month. The big item, as best I can figure out, is it plugs a couple of nasty places for nasty people to do nasty things to (in our case) the 4XL.

I assume that, because of rooting, OTA's won't work and/or make a mess for rooting.

Recommendations for "all of the above"?

-------

I continue to get notices that there's an update to Magisk. Can I take that update without risking losing root and/or everything on the phone (FDR equivalent)?
[Google Pixel 4 XL Guides, News, & Discussion] Lughnasadh:
If you want to update while keeping root instead of re-rooting you can follow this guide... https://xdaforums.com/t/update-keep...stock-boot-dtbo-images.4271817/#post-84954497

Otherwise unroot, update, and re-root.

Yes you can update Magisk without losing root.
[Google Pixel 4 XL Guides, News, & Discussion] blink8533:
What options did you use for props config, I'm using termux, but I don't know the things to pick. I don't want to break my phone. I got to the Magiskhide props config screen, just don't know what to pick.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
MagiskHide Props Config By Didgeridoohan...
[Google Pixel 4 XL Guides, News, & Discussion] Flyview:
Hey, thanks for this kernel and guide! I'm at the last step, trying to flash it through EX Kernel Manager, but when I go to flash and navigate to the directory with the zip, it doesn't show any files. In fact, no directories show any files in EX KM. Has anyone come across this?
[Google Pixel 4 XL Guides, News, & Discussion] Lughnasadh:
I think there is a problem with EX Kernel Manager and showing files. A few other people have mentioned this (I cannot see the files either) and flar said to uninstall and reinstall but at least one person reported that this didn't work (I haven't tried this). I've just been using FK Manager to flash kernels.
[Google Pixel 4 XL Guides, News, & Discussion] crixley:
I wonder if the new 12 beta is rootable?
[Google Pixel 4 XL Guides, News, & Discussion] crixley:
Worked like a charm
[Google Pixel 4 XL Guides, News, & Discussion] Tyrany:
Hello i'm facing a strange problem, im on beta 1, using latest platfomr tools, and have bootloader unlocked+debugging, but when i try to flash the boot

sending 'boot' (65536 KB)...
OKAY [ 1.509s]
writing 'boot'...
FAILED (remote: Failed to write to partition Not Found)
finished. total time: 1.663s

any advice please?
[Google Pixel 4 XL Guides, News, & Discussion] crixley:
You aren't in fastbootd vs regular fastboot are you?
[Google Pixel 4 XL Guides, News, & Discussion] Tyrany:
Regular fastboot, what is that command?
[Google Pixel 4 XL Guides, News, & Discussion] crixley:
adb reboot bootloader

then fastboot flash boot filename
[Google Pixel 4 XL Guides, News, & Discussion] HipKat:
Hmmmm, now that I finally paid my (Verizon) Pixel XL 4 off. can I get it unlocked to I can finally go back to rooting my phone?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
I don't think Verizon will unlock the bootloader. They should

unlock the Carrier lock

, when you ask them to unlock it.

It doesn't hurt to ask them to unlock the bootloader.
[Google Pixel 4 XL Guides, News, & Discussion] biTToe:
Has anyone tried Android Flash Tool for this (flash.android.com)?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
I don' t use it but it should work if your browser is Chrome or Edge: Android Flash Tool
[Google Pixel 4 XL Guides, News, & Discussion] biTToe:
Ok,

So... if I use Android Flash Tool to install 11.0.0 (RQ2A.210505.002, May 2021)

then all I have left to do is:

6. Extract/Flash

boot.img

Do I need to fastboot flash boot --slot all boot.img or is that taken care of with AFT?​

7. Root/Reroot with

Magisk

and Pass SafetyNet.

...Enjoy

Am i missing anything?

Or should I not be lazy and do it the old fashioned way?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
The Instructions (Flashing your device) are located in the Android Flash Tool thread (see my post above for the link).

I prefer the Old fashion way (#4 'Keep data'). :)
[Google Pixel 4 XL Guides, News, & Discussion] biTToe:
I'll be coming from 10 (QQ2A.200305.003)

dirty flash that?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
No!

I'm not saying it cannot be done without complications, but I recommend doing a clean install.

"An Ounce Of Prevention Is Worth A Pound Of Cure".
[Google Pixel 4 XL Guides, News, & Discussion] biTToe:
yeah... I'd rather have a happy experience.

Maybe I'll even get a kilo of cure!
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
:rolleyes: Deleted!
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
OP Updated

Index

,

• Open a Command Prompt on Computer

What changed and Why?

The Option to open powershell was restored.

I made a mistake. :(

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

After, I corrected my mistake, I opened a

powershell command prompt

: Opened File Explorer ==> clicked the platform-tools folder ==> clicked the folder icon (left side of address bar) to highlight it typed powershell and pressed enter.

Then I typed ./fastboot devices at the powershell command prompt and pressed enter. It worked.
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
You had me scared for a while there. It had worked for me with August but I was worried about it. I thought that Android developers wouldn't buy windows if they couldn't flash. So I was hoping that it would be fixed. It turned out to be a a reminder instead. I think we have all done something similar.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Added: 4. Install

Riru

,

Riru-LSPosed

Magisk modules and

XPrivacy Lua

to

Index

, 7. Root/Reroot with

Magisk

and Pass SafetyNet., •

Pass SafetyNet

Thanks ReservedName
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
I did this and passed safety net. I am not play protect certified. Is that the desired result? It seems all my Google stuff is working.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Did you clear Google Play Services data?
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
Yes. I have tried several times. I might have to start from scractch.

Oh yes. I'm going to start from a fresh install and go slower. Read directions well. One thing that I didn't get is the modules where you say save icon to log. I don't know how to do that. But I still should have already been play protect certified. Also I couldn't install Saftey net with out riru first. Safety net 2.1.0.
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
I got it! Thing drove me nuts. GPay working too. I was almost afraid to try it.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Pass SafetyNet with Magisk Alpha:

See OP,

New
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
I did a clean install of the latest update and Amazon wasn't working right and YouTube history is not being saved. I got Amazon fixed it was Adaway. But YouTube history is still not working. There is a fix around here somewhere, I did it before, but forgot what. Can anybody point me in the right direction? Thanks.

Edit: I got it. It's ad blocker again. Just needed to whitelist them.
[Google Pixel 4 XL Guides, News, & Discussion] 100kaa:
Hi guys, I am trying now to return my phone to stock, to lock bootloader and to use it like it was when I bought it.

Return the phone to Stock before locking the bootloader,

failure to do so could brick your phone

so here is just to do Hardreset, and setup my phone, and I have done this

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

did also this

4. You should see a request for confirmation on your phone, use the volume keys to scroll and the power key to select.

this also

5. Allow the process to complete, then type this at the Command Prompt: fastboot reboot

here gets tricky, after this I get message that there is no operating system, but somehow I can get to fastboot.

to get system to boot again, I have to type in fastboot flashing unlock, and then I need to go again through setup phase. Of course after unlocking it, I receive message on booting that bootloader is unlocked and I can

not add card to gpay, and also OTA is not working :(

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.

I hope, I did not overcomplicate it trying to explain, please help on how to remove all of this :(
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
If your bootloader is unlocked, and you can boot bootloader/fastboot mode.

Do # 4. Install/Update Factory Image keep or wipe data, •

Flash Factory Image Wipe Data

.

Then do # 3. Unlock Bootloader/Return Phone to Stock/Lock Bootloader
[Google Pixel 4 XL Guides, News, & Discussion] 100kaa:
I have read few posts last night, searching for the solution, and you and few more guys are amazing. the patience you have with us newbies is amazing :)

thanks a lot!
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
I updated to October passed safety net but am not play certified. This is burning me out what am I doing wrong here.
[Google Pixel 4 XL Guides, News, & Discussion] Lughnasadh:
Try clearing cache & data from Play Store and rebooting. It may take a while for it to show up as certified.
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
Ud da man! That did it. I cleared play services and pay but not the store. Thanks.
[Google Pixel 4 XL Guides, News, & Discussion] pa.pn2:
Is rooting Android 12 with stable magisk actually possible? or do i need the beta or canary version?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Wait a few days before rooting. Why? There is a new procedure for rooting Android 12 (S). I am working on a update to # 7.
[Google Pixel 4 XL Guides, News, & Discussion] pa.pn2:
ok im in no hurry. what you mean with #7?
[Google Pixel 4 XL Guides, News, & Discussion] Lughnasadh:
Yes, it's fine. I've been using Stable version 23.0 since the first beta was released and am currently using it on yesterdays official release of Android 12 stable. Everything is fine for me.

People on other Pixels, specifically the Pixel 5 (and maybe others) have reported that they have to disable dm-verity (and maybe another thing or two) before rooting or it will just land you in the bootloader when trying to boot. However, on my Pixel 4 XL I did not have to do anything. Just patched the boot image as usual and everything is fine for me.

Of course, your mileage may vary.
[Google Pixel 4 XL Guides, News, & Discussion] pa.pn2:
I can confirm it worked. I just have struggle with YouTube music. It doesn't play any music anymore..
[Google Pixel 4 XL Guides, News, & Discussion] techbeck:
Tried the alpha. When I try to install the fix. says installation failed. Ideas?

Never mind... Had to install the riru module
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
After, reading several threads and @Lughnasadh post, there are no special requirements to root Android 12 for the Pixel 4 XL or the Pixel 3 XL.​

So, that means the instructions in the OP,

Index

, #7 are sufficient for rooting the Pixel 4XL and Pixel 3 XL phones.

Thanks, Lughnasadh! :)