yashsingh1/xdaforums huggingface dataset:
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Update SafetyNet Fix

kdrag0n SafetyNet Fix V2.4.0

This version only supports Zygisk (Magisk 24 and newer).
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
If you are having problems passing SafetyNet with kdrag0n Mod

, use Displax's safetynet-fix v2.3.1-MOD_2.1.zip. It is a "fork" of kdrag0n safetynet-fix.
[Google Pixel 4 XL Guides, News, & Discussion] bsg411:
I guess we never got this last update huh? The oct update broke my wireless charging and I was hoping to get a fix for it but it never happened.
[Google Pixel 4 XL Guides, News, & Discussion] jljtgr:
There was an official image posted Feb 6th which seems to be the "last" one. The build numbers are very similar, so don't expect much to change.

Word from the wise, do NOT use the latest platform-tools version to flash on the Pxel 4 XL. (r34.0.0) It won't flash the current or old versions correctly.

Sending sparse 'super' 1/1 (4194303 KB) FAILED (Sparse file is too large or invalid)
fastboot: error: Command failed

Using platform-tools r33.0.3 works fine for the Oct/Feb system images.

Regarding broken wireless charging, I've had to use the trick of powering off the device, putting it on the wireless charger, waiting for it to report +1% charge in the bootloader charging app, then without removing it from the charger... power the device into the normal OS.
[Google Pixel 4 XL Guides, News, & Discussion] bsg411:
Wow... Thank you very much for that info. The last time I checked the google factory images site earlier this year it wasn't there. I may give it a try tomorrow before the Superbowl comes on. I'll be sure to use my old platform tools.... I think I have 33.0.3 as well. As far as the charging.... I never heard of the bootloader charging app. Where did you get that from?
[Google Pixel 4 XL Guides, News, & Discussion] jljtgr:
Maybe it's a bad term, but I consider anything before the OS loading screen to be the bootloader section. If you power off the device, then give it power somehow... it won't boot into the OS but instead a tiny charging app that does nothing but show the charge percentage. If you hold down the power button while it is in that tiny app, it will boot the OS normally.
[Google Pixel 4 XL Guides, News, & Discussion] bsg411:
Oh ok...i got you !! I'll give that a try too. So you only had to do that once and it wirelessly charged just fine since then ?
[Google Pixel 4 XL Guides, News, & Discussion] jljtgr:
It's more like it will stay fixed at least until the next device restart. Though I just did my first restart with the Feb patch and I didn't need to use that trick. (doesn't mean it's actually fixed)
[Google Pixel 4 XL Guides, News, & Discussion] bsg411:
It may not be fixed but that will get me by until the P8XL comes out. I missed wireless charging. However I have found that by keeping my phone off a charger overnight and just keeping the battery level between like 15%-90% seems like that battery lasts longer in a day/doesn't drain as fast.
[Google Pixel 4 XL Guides, News, & Discussion] bsg411:
After the February update, were you able to still get the Google pay/wallet to work? The latest safetynet fix is not working
[Google Pixel 4 XL Guides, News, & Discussion] jljtgr:
Sorry, I don't use it.
[Google Pixel 4 XL Guides, News, & Discussion] badabing2003:
Try USNF 2.3.1 Mod 3 .0 or USNF 2.4.0 MOD 1.1
[Google Pixel 4 XL Guides, News, & Discussion] bsg411:
I got it to work using the old safety net fix 2.2.1..... all the others didn't work. However I didn't know there was a 2.4.0 mod 1.1.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
SDK Platform-tools r. 33.0.3

https://xdaforums.com/t/pixelflashe...g-managing-pixel-phones.4415453/post-88141667
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Update Magisk Canary

app-release_e5641d5b-25208.apk

Notes:

Tap 3 dots (...) across from 10.8 MB, Tap Download

Will not hide Magisk

Magisk Canary 25206

app-release_831a398b-25206.apk
[Google Pixel 4 XL Guides, News, & Discussion] mydjtl:
So we can use pixel flasher instead of this rooting process?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
If you are uncomfortable using this root method, use Pixel Flasher. :-)
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Canary Update

app-release_2717feac-25209.apk

Notes:

Tap 3 dots (...) across from 10.x MB, Tap Download
[Google Pixel 4 XL Guides, News, & Discussion] Broken.exe:
My pixel 4xl it's on it's way, your guide is the reason I chose this phone for my needs, thank you for your amazing work keeping it alive all these years
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Thanks for the kind words. regrettably,

Febuary 2023 factory/OTA image may be the laat Stock images for the Google Pixel 4 XL.

This forum:

Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth has Custom ROMS with security updates you can use with your Google Pixel 4 XL. :)
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Canary

app-release_2717feac-25209.apk

Note: Not fixed!

https://xdaforums.com/t/magisk-general-support-discussion.3432382/post-88237343

https://xdaforums.com/t/pixelflasher-for-google-pixel-7-pro-support-thread.4505287/post-88240637
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Canary Update

app-release_981ccabb-25210.apk

Notes:

Tap 3 dots (...) across from 10.x MB, Tap Download
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Not another broken Magisk Canary release

Magisk Canary - app-release_981ccabb-25210.apk

breaks

all modules

:

25210 breaks module loading · Issue #6688 · topjohnwu/Magisk

Device: Pixel 7 Pro Android version: 13 QPR2 Magisk version name: v981ccabb Magisk version code: 25210 With the latest version, mounting all mounts fails saying No such file or directory, i.e. moun...

github.com
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Canary Fixed

Magisk Canary - app-release_981ccabb-25210.apk

https://github.com/topjohnwu/Magisk/issues/6688

https://github.com/topjohnwu/Magisk/pull/6690
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
SDK Platform-tools Update

SDK Platform-tools r34.0.0 and r34.0.1 are not working.

Use SDK Platform-tools r33.03.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Canary

These versions of Magisk Canary are all broken: 25207, 25208, 25209, and 25210.

The last working Magisk Canary 25206 - app-release.apk can be downloaded here.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
SDK Platform-tools

SDK Platform-tools r34.0.1 has been released.

There is a link in the OP, ~ ~ ~ Part I - INFORMATION ~ ~ ~, 2. Prerequisites, • A Computer with the latest SDK...
[Google Pixel 4 XL Guides, News, & Discussion] Broken.exe:
I'm just going to be using it for a specific task, so I will follow your steps provided for root and safety net pass which I need. Thank you once again
[Google Pixel 4 XL Guides, News, & Discussion] Broken.exe:
Just a quick beginner question.

To root my device with magisk, I just have to unlock bootloader, patch boot.img using magisk, then flash the new patched image using platform tools and fastboot commands provided in your steps, right? I'm not missing any extra steps in between?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
@Broken.exe,

Yes.

You are not missing anything if you are patching the stock boot.img that you extracted from the Febuary 2023 Factory image.

Note: If you use Magisk Canary to patch the boot.img, use version 25206 app-release.apk. There is a link to download 25206 at Post 370 (above]
[Google Pixel 4 XL Guides, News, & Discussion] Broken.exe:
Or could I extract it straight from my device using magisk app to zero the possibility of wrong image? Or that's not possible anymore?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
First, Re-read Post #374.

Second, what are you going to extract "straight from my device"?

Third, How are you going to extract

it

"using magisk app"?
[Google Pixel 4 XL Guides, News, & Discussion] Broken.exe:
My bad, I misread a guide I've followed long time ago for a different phone. I've got them all sorted out now.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
SDK Platform-tools

Several members of the XDA community have

written posts that SDK Platform-tools r34.0.1 is

broken

. Problem: fastbootd not working

Use SDK Platform-tools r33.0.3: https://xdaforums.com/t/guide-root-pixel-4-xl-with-magisk-android-13.4160441/post-88261763
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Canary Update

app-release_69529ac5-25211.apk

Notes:

Tap app-release.apk

Tap 3 dots (...) across from 10.9 MB, Tap Download

...[General] Bump minimum supported Android version to Android 6.0

Google Android 14 Codename is

'Android U' or 'Upside Down Cake'

...[MagiskPolicy] Update rules to support Android U...

...This fixes boot image patching issues on Android U preview...
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
:oops: Not

another broken

Magisk Canary

Notes:

Magisk Canary 25207, 25208, 25209 (some devices), 25210 and 25211 are broken.

Magisk 25211: Some, are reporting

Systemless host

is still not working in this thread:

Magisk General Support / Discussion - starting at Post #55137

Use Magisk Canary 25206

Tap

the 3 dot menu across from 5b2934603f

Tap

Go to file

Tap

app-release.apk

Tap

the 3 dot menu across from 10.9 MB

Tap

Download

<<Edit>> Fix for Module loading, System less Host is still broken.

Waiting for Magisk 26001.
[Google Pixel 4 XL Guides, News, & Discussion] TheDiabolicaL1:
Yeah, --slot all wrote to boot just fine exactly like you said above to both slot A and B but upon a reboot, like I said, my device was kicked back to fastboot after the G screen with the error "no valid slot to boot."
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
I was not challenging the validity of your statement.

It is not the first time nor will it be the last time members have had different results following/using the same procedure on their phones.

I was complementing you for documenting a solution to the problem.
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
In the Android 10 guide there was a solution to the --slot all bootloop. It was to reflash the stock boot image to both slots and try again. I always kept it in mind just in case I ended up bootlooping. Haven't had to yet but I figure it's going to be the first thing I try before starting over.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
That solution is also listed in this Guide #9. C. 20.
[Google Pixel 4 XL Guides, News, & Discussion] madmuthertrucker:
Oh, sorry I missed it. The answer is right there then. Us discussing it will raise awareness. I love this guide. I start every update with it.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Beta 21.0 released:

The Index has changed:

Removed - Install TWRP Root/Reroot with TWRP Pass Safety Net

Removed - Boot TWRP Root/Reroot with TWRP Pass Safety Net

Root/Reroot with Magisk Pass Safety Net is now #7

Why did I remove the T.W.R.P. instructions?

I did it for two reasons:

1. AFAIK, T.W.R.P. for Android 11 (R) Coral has not been released.

2. topjohnwu's

Note: The underlined text in the quote (Custom Recovery) is added to emphasize a particular point made by topjohnwu.
[Google Pixel 4 XL Guides, News, & Discussion] JJT211:
nm
[Google Pixel 4 XL Guides, News, & Discussion] bb709394:
Install two modules with Magisk Manager by following https://xdaforums.com/pixel-4-xl/how-to/xposed-discussion-thread-t3992607. I updated to 11, rooted with Magisk Manager 8.0, and installed these files. GPay works and I added my cc info.

The two files are: GPay SQLite Fix (Full Edition) and SQLite for Arm aarch64 devices via Magisk Manager. What I did was install GPay module, reboot phone, install SQLite module, reboot phone, setup GPay. The reboots may not be necessary, but I figured a few extra seconds to do it properly reduces the time required to troubleshoot. No need to try other methods as they are a pain and don't always work.

Edit: oops, sorry... just realized you are talking about SafetyNet and NOT GPay itself. I am of no help here....
[Google Pixel 4 XL Guides, News, & Discussion] Lughnasadh:
There are also a few kernels (along with their companion apps) now that change hardware attestation to make it basic to allow you to pass safetynet, including Artemis, CleanSlate & fsociety.
[Google Pixel 4 XL Guides, News, & Discussion] JJT211:
Magisk Canary is what we're supposed to use right?

Link is not working, and I cant find it anywhere

EDIT: Nevermind, I figured it out. Had to set update channel in Magisk and enter Canary link. See #8 of guide. Might I suggest you add that part before patching the boot image section?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Did you look at #7B? The Magisk Canary link is there and it is working.
[Google Pixel 4 XL Guides, News, & Discussion] cougar11:
everytime i flash patched boot img it doesnt boot. anyone know what im doing wrong?

thank you,
[Google Pixel 4 XL Guides, News, & Discussion] bb709394:
What do you mean -- doesn't boot anymore? If you follow OPs instructions, you will be able to root and boot. Are you using MM 8.0 which was just released yesterday and did you start from a clean slate by wiping your data which is recommended when flashing a major update (eg: 10 to 11)? After installing MM 8.0, ensure you set the channel to beta in MM settings before you patch your boot image.
[Google Pixel 4 XL Guides, News, & Discussion] Play!Ya:
I don't know how I got it worked after a couple of tries, followed all the combination of

fastboot flash boot magisk_patched.img --slot all

fastboot flash boot magisk_patched.img

fastboot flash boot boot.img --slot all

And it worked but I got stuck in bootloop because of EdExposed module and had to flash stock boot.img but the root is gone. Now I have tried the magisk_patched.img in all the combinations but it always gets stuck on G logo. Dont know what to do as I dont remember which steps worked for me the first time
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
What does it do? Please, post a screenshot of fastboot command results.

To get a screenshot with Android 11 (R): Press Power and Volume down buttons.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
- delete all magisk_patched.img.

- Start over

Note: You can only ROOT with the Beta or Canary versions of Magisk Manager.
[Google Pixel 4 XL Guides, News, & Discussion] Play!Ya:
Yes, I used the custom channel for canary and then used a re did the patching of boot.img. Then I tried flashing the patched image in both slots as well as only in slot a but it's getting stuck at G logo. I guess you're right, I'll have to start over.

Thank you so much for making this detailed guide. I'm sure by starting over it should work. I was trying to avoid re-copying of personal data to the phone.

Edit: Now that I have the unlocked bootloader so I guess I won't have to lose the data again.
[Google Pixel 4 XL Guides, News, & Discussion] cougar11:
I came from Android 10...removed -w so I can keep my files...I've tried patching boot img with stable/canary/v21 and when I flash the patched boot img...it gets stuck at the G logo with a running line below it.. doesn't go on from there...if I reboot...it goes straight to Fastboot and doesn't boot...not even the G logo...

Do I have to wipe/clean install phone to get it to boot/root?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
- Did you Install the Canary Magisk Manager?

- On the Canary Magisk Manager, the update channel should be set to Canary not Custom.

- What personal data?

Tip: Print #7 Then read and re-read it until you understand the procedure to root. Then use the printed guide (#7) to root: Check off each completed step.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Did you try either of the following:

- flashing the Stock boot.img to both slots:

fastboot flash boot boot.img --slot all

- Booting into Safe mode, Then rebooting?

If both of those fail: Yes, you have to wipe/clean install phone to get it to boot/root.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Canary Update

app-release_e2545e57-26001.apk

Notes:

Tap app-release.apk

Tap 3 dots (...) across from 10.x MB, Tap Download

Magisk Beta Update

Magisk-v26.0.apk
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Beta Update

Magisk-v26.1.apk

Magisk Canary Update

app-release_d0c93842-26101.apk

Notes:

Tap app-release.apk

Tap 3 dots (...) across from 10.x MB, Tap Download

Magisk Stable Update

Magisk-v26.1.apk
[Google Pixel 4 XL Guides, News, & Discussion] killahax:
When is twrp for android 13 coming.. ?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Please post your question on this thread:

TWRP Coral [Official] by bigbiff

The latest Google Pixel 4 XL T.W.R.P version:

TWRP for coral
[Google Pixel 4 XL Guides, News, & Discussion] benhick92:
Would anyone be able to walk me through flashing a custom kernel on stock android 13 rooted with magisk? I tried flashing a custom kernel on lineage but it didn't work so I want to make sure I know the steps before losing all my process. Can I just flash a kernel image with a kernel root command?
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
What

Custom Kernel

do you want to flash on Stock Android 13 rooted with magisk?

Why?

Each Custom Kernel Developer has their own set of instructions for flashing their kernel. Additionally, their Custom kernels are built to work with

specific

Operating System (OS).

What

Custom Kernel

are you trying to flash on lineageOS?

Are you trying to flash it on this lineageOS version?

[OFFICIAL] LineageOS 20 for the Google Pixel 4 XL by npjohnson

Did you read this?

Kernel Source:
[Google Pixel 4 XL Guides, News, & Discussion] benhick92:
I had tried previously stupidly. I'm not on lineage now. Just stock android 13 rooted with magisk.

Everything is working and passes safety net so I'm gonna stay here. But I wanted a custom kernel for better battery.
[Google Pixel 4 XL Guides, News, & Discussion] benhick92:
It's Kirisakura kernel
[Google Pixel 4 XL Guides, News, & Discussion] benhick92:
I'm 95 percent sure I can just flash the kernel zip in EX Kernel Manager. I'm just gonna wait till in home tonight though.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
@benhick92

If this is the kernel you are trying to flash on a custom ROM,

it may work

:

[Kernel][25.03.2023][4.14.311][A12][A13] Kirisakura 9.1.4 for Pixel 4/XL aka FLORAL[URL] by Freak07

Post 1

...Main Features:

... - Tested to work on custom ROMs

- Flashable via EXKM and FKM on a rooted system!

...Requirements

...- latest adb and fastboot binaries

Note: The latest

working

SDK Platform- tools is r33.0.3

...- latest stock rom

(custom roms can have issue, several users reported success when rooted with magisk 24.3 instead of latest)

Good luck!
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Update

SDK Platform Tools r. 34.0.1

fixed
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Update

I tested SDK Platform-tools r. 34.0.1 it is

not fixed

. There are still problems with fastbootd. Use SDK Platform-tools r. 33.0.3
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Canary Update

app-release_47d2d4e3-26102.apk

Notes:

Tap app-release.apk

Tap 3 dots (...) across from 10.x MB

Tap Download
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
SDK Platform-tools Update

SDK Platform-tools r. 34.0.3, was released May 22, 2023.

@badabing2003 reported a problem when using it.

https://xdaforums.com/t/platform-to...7-pro-cheetah-safetynet.4502805/post-88571575

@Lughnasadh, suggested a fix.

https://xdaforums.com/t/platform-to...7-pro-cheetah-safetynet.4502805/post-88571601

@badabing2003, confirmed the suggested fix works.

https://xdaforums.com/t/platform-to...7-pro-cheetah-safetynet.4502805/post-88571617

If you use Linux or Windows SDK Platform- tools r. 34.0.3. You must set the environment variable:

Linux

Windows

Note:

If you have any problems with SDK Platform-tools 34.0.3

. You can get SDK Platform-tools 33.0.3 here.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Update

XDA members are reporting more issues with SDK Platform-tools 34.0.3

Use SDK Platform-tools 33.0.3
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Update

[MODULE] [MOD] Universal SafetyNet Fix by Displax

v2.4.0-MOD_1.3

Fix "stat /sys/fs/selinux" access time reading. Also removed archaic MIUI cross-region shenanigans. Thanks to PR by aviraxp!

Ignore props changing on Xiaomi.eu. This fixes randomly attestation failings. So strange ROM...
[Google Pixel 4 XL Guides, News, & Discussion] davnc18:
Thx
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Canary Update - notes.md:

Download: app-release.apk
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Canary (a8c4a33e) (26103)

Is not working for everyone, it has some issues that need fixing:

Use, attached,

Magisk Canary app-release_47d2d4e3-26102.apk until it (26103) is fixed.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
UPDATE - July 5, 2023

<<See post #401>>
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
UPDATE - July 5, 2023 <<Revised>>

SDK Platform-tools r34.0.4

Notes:

Changelog see #3 below

This brave soul verified it is working with

Android 14 beta

.

:( Still use Platform-Tools r. 33.0.3 instead of the newest - Unlock bootloader / Root Pixel 7 Pro [Cheetah] / SafetyNet by roirraW "edor" ehT

<<Edited :( it's true - 33.0.3 >>
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
Magisk Canary Update

Magisk (d390ca2f) (26104).

Tap app-release.apk

Tap the three dot menu across from

Code

Blame

Tap Download

Magisk (d390ca2f) (26104)

Lots of code is migrated over to Rust!

[App] Properly preserve boot.img when patching Samsung firmware

with init_boot.img

[MagiskBoot] Directly handle AVB 1.0 signing and verification without

going through Java implementation

Diffs to v26.1

[MagiskBoot] Support extracting boot image from payload.bin

[MagiskBoot] Support cpio files containing character files

[MagiskBoot] Support listing cpio content

[MagiskBoot] Directly handle AVB 1.0 signing and verification without

going through Java implementation

[Daemon] Make daemon socket a fixed path in MAGISKTMP

[resetprop] Support printing property context

[resetprop] Support only printing persistent properties from storage

[resetprop] Properly support setting persistent properties bypassing

property_service

[MagiskSU] Support -g and -G options

[MagiskSU] Support switching mount namespace to PID with -t

[App] Support patching boot image from ROM zips

[App] Properly preserve boot.img when patching Samsung firmware

with init_boot.img

© 2023 GitHub, Inc.
[Google Pixel 4 XL Guides, News, & Discussion] Homeboy76:
<<Edited>>

Update Displax/safetynet-fix Mod forked from kdrag0n/safetynet-fix

Changelog: v2.4.0-MOD_2.0

Fix KernelSU support. You still need "ZygiskOnKernelSU".

Fix WiFi calling on some devices (and maybe other related issues) by moving changing ro.product.first_api_level from global namespace to GMS only.

Pass MEETS_STRONG_INTEGRITY[. By default you need device that launched with Android 13+ or custom ROM that manipulate with ro.product.first_api_level (>= 33 / or null / or not present).

If you want to play with it more complex - use separate "-STRONG" build. NOTE: Various system issues are possible on "-STRONG" build! (Fixed by Google)

Displax's v2.4.0-MOD_2.0 was Fixed by Google.

Use Displax's v2.4.0-MOD_1.3....