yashsingh1/xdaforums huggingface dataset:
[Google Pixel 5 Guides, News, & Discussion] jawonder:
I downloaded the latest Factory image for my device from google's website , extracted the boot.img and flashed it vi fastboot and rebooted system which work now. I then got the updated magisk apk for my device, add the boot.img i use from the factory image to my device via PC then use magisk to patch that boot.img . Transfer that patched boot.img to my PC put it in the folder i use adb and fastboot from then reboot to bootloader and flashed it via fastboot.

Phone booted up fine after and i got root.
[Google Pixel 5 Guides, News, & Discussion] subzerorabee:
Weird, I did the same, but whenever I flash the patched boot image I get bootloop. Magisk 22 canary here. Can't figure it out.

I even tried to disable the modules, still no luck.

Thanks for your reply tho.
[Google Pixel 5 Guides, News, & Discussion] joeyfong:
*deleted*
[Google Pixel 5 Guides, News, & Discussion] fkofilee:
Same here - Flash March Update - Boots fine.

Patch Boot.img and flash to the device and it just boots to recovery saying Data is corrupt *_*

I assume Magisk is potentially an issue here.
[Google Pixel 5 Guides, News, & Discussion] KAPABLE-K:
I just did a clean install yesterday and everything works fine for me.
[Google Pixel 5 Guides, News, & Discussion] fkofilee:
Its a Magisk Module Causing it.
[Google Pixel 5 Guides, News, & Discussion] RBEmerson:
The QD1YQ is the Google Store version of the P5.

Is there any chance of unlocking the bootloader with the OEM option greyed out?
[Google Pixel 5 Guides, News, & Discussion] sidhaarthm:
Anyone from the UK updated to the March release? Did you use build RQ2A.210305.007 or .006 ?
[Google Pixel 5 Guides, News, & Discussion] jackowy:
Everything went fine, thanks for the tutorial.

It seems i cant get Google Pay to work, as you can see it says "not set up" with that crossed nfc tag.

NFC is activated, play services and google pay cleared cache, safetynet says "sucess, evalType basic". Opening from long pressing the power button it says "hold near reader".

Is there anything i missed? Its not just Paypal (which worked before), its all my cards...
[Google Pixel 5 Guides, News, & Discussion] RBEmerson:
PS G:\Pixel5\XDA\sdk> .\fastboot devices
09091FDD4006RD fastboot
PS G:\Pixel5\XDA\sdk> .\fastboot flashing unlock
FAILED (remote: 'flashing unlock is not allowed')
fastboot: error: Command failed

The devices result makes sense - the serial number is right, and it's in fastboot

It's the unlock that fails.

The bottom of the phone's display says: "Enter reason: combo key"

Kinda makes me think I need a magic key (duh).

Am I as out of luck with rooting as this exchange, following the how-to, says?
[Google Pixel 5 Guides, News, & Discussion] RBEmerson:
Checked the IMEI - clean and no carrier association. It's considered unlocked, but I assume that just means it's not, for example, a VZW-only device.
[Google Pixel 5 Guides, News, & Discussion] Sh0X31:
Do i just need the bypass fix or hide connfig props + bypass fix?

I flashed factory image from April and than I flashed patched boot.img. After I flashed props choose pixel 3a and 11. Than I reboot & flash the fix but still can't bypass
[Google Pixel 5 Guides, News, & Discussion] Raz0Rfail:
You only need the magisk module universal safetynet fix.

Go to the first post and go trough all instructions described at:

"For Safetynet you have to do the following steps"...

And I recommend to uninstall the props module to switch the device-fingerprint, because at the moment it isn't needed for the p5.

Regards :)
[Google Pixel 5 Guides, News, & Discussion] Sh0X31:
I had uninstall it and install the Modul the universal safetynet fix but still no bypass. I also clear play service & store data.
[Google Pixel 5 Guides, News, & Discussion] Raz0Rfail:
Have you enabled magiskhide in magisk settings?

Then you have to switch to the superuser tab and go into the new menu magiskhide.

Inside you click on google play services and it should collapse out and then you click the hook and every item for Google play services should be hooked.

I recommend to hook every google app which you have installed.

After you marked the needed apps reboot phone and check again safetynet.
[Google Pixel 5 Guides, News, & Discussion] valunthar:
I'm still unable to pass safetynet despite following the steps above, however part of this may be due to the fact that I'm also running lineage os on it. Are the steps different for that rom?
[Google Pixel 5 Guides, News, & Discussion] Raz0Rfail:
Nope same steps, I'm using LOS 18.1 as well.

Install magisk 22.1, install safetynet fix from github link, enable magisk hide and inside disable google play services and other google services.

Currently you can't check safetynet inside magisk app, you get Safetynet API error. Just install another safetynet check app like safetynet test:

SafetyNet Test - Apps on Google Play

SafetyNet device compatibility test

play.google.com
[Google Pixel 5 Guides, News, & Discussion] ticrandall:
Well. That would of been great info 14 pages ago! Kept testing in Magisk and it failed, testing with another app passes! Thank you for that info!
[Google Pixel 5 Guides, News, & Discussion] valunthar:
That was the missing piece, I was relying on Magisk's safetynet check rather than an alternative. Using the third party check passed. Thank you
[Google Pixel 5 Guides, News, & Discussion] XNine:
YOU BEAUTIFUL HUMAN BEING YOU!

I was smacking my head as I just got my P5 yesterday and rooted it. Couldn't figure out why banking apps were opening but safetynet failing in Magisk. I was coming here to see what the hell I did wrong and lo and behold, your answer was right! THANK YOU THANK YOU THANK YOU!
[Google Pixel 5 Guides, News, & Discussion] Raz0Rfail:
I added this topic on first post.
[Google Pixel 5 Guides, News, & Discussion] swayjd:
Currently passing SafetyNet but still can't use Google Pay.

I am able to add a Card (usually not possible with Root) but can't enable NFC - "Phone doesn't meet security requirements".

In the Play app, no problems with Play Protect and Play Protect certification shows Device is certified.

Any ideas?
[Google Pixel 5 Guides, News, & Discussion] jackowy:
Try this https://xdaforums.com/t/working-magisk-with-google-pay-as-of-gms-17-1-22-on-pie.3929950/
[Google Pixel 5 Guides, News, & Discussion] lvbel248:
Thanks for your tutorial but magisk manager i don't like it at all i keep getting errors
[Google Pixel 5 Guides, News, & Discussion] swayjd:
Appreciate the reply, didn't work for me though.

I kept digging on this. Seems like clearing storage for the Google Services Framework did the trick. Guides only mention Pay and Play I think.

It's working now.
[Google Pixel 5 Guides, News, & Discussion] RBEmerson:
Magisk keeps nagging me to update it. Mostly to shut the thing up, can I do the update without breaking root and/or risk having to do a full-on reset?

Or... is there a way to do "go away and never come back"? Unless there's some voodoo spell that needs to be fixed, I'm at "if it ain't broke, don't fix it", Can't name when or if I've every so much as opened the app.

I guess somewhat related, it there a way to shut up the "oooohhhh - you're rooted!!!" message just before booting up from a cold start or restart? Not a high priority thing, just "yeah, yeah, yeah - I know that" annoyance.

FWIW my phone's been working like a charm. Happy happy joy joy!
[Google Pixel 5 Guides, News, & Discussion] GTDarthYoda:
Did you try clearing the data for Google pay? I think I did that with mine and it worked.

Might have had to clear google services as well.
[Google Pixel 5 Guides, News, & Discussion] digger16309:
That can be turned off in the app settings menu.
[Google Pixel 5 Guides, News, & Discussion] nostromo12:
There is an ugly bootloader screen with annoying text that the bootloader is unlocked.

Has somebody a nice screen for the pixel 5 I could flash instead?

Which is the ADB command for flashing that screen?

Does it survive an security update?
[Google Pixel 5 Guides, News, & Discussion] Raz0Rfail:
There is no way to change this behavior. Live with it or lock the bootloader.
[Google Pixel 5 Guides, News, & Discussion] Raz0Rfail:
Info: I have updated the first post, if you have issues with safetynet.
[Google Pixel 5 Guides, News, & Discussion] fludi:
Hi there,

I rooted my Pixel using Raz0Rfails instructions, now I have a strange issue. My GPS ist completely off, the dot is on the equator and the zero meridian. has anyone else experienced this behaviour?

edit: OK, ist depends on which settings you are using in xprivacylua, if you select the whole Google Play Services the positioning ist included, if you uncheck it gets the position again.
[Google Pixel 5 Guides, News, & Discussion] Darren051:
Is that device specific because someone made custom boot splash screens to cover up that bootloader message for the Moto G7 Power.

That is the first and only phone that I was able to root. Just curious on why or how someone was able to do that for a Moto but not a pixel.
[Google Pixel 5 Guides, News, & Discussion] impactor:
The first post is very confusing. Am I supposed to do all the listed things in reverse order:

19/04/21​

then

04/09/21​

then

04/09/21 v2​

or am I supposed to do only

04/09/21 v2​

or only

19/04/21​

+

04/09/21 v2

?????​
[Google Pixel 5 Guides, News, & Discussion] Raz0Rfail:
For just valid safetynet you need only

04/09/21 v2

(on this date Google had changed some behaviors on the server side, which was the reason why safetynet stopped working if you don't use the latest fixes. And the older dates are the fixes for safetynet in the past.)

If you want to have an rooted phone you have to start at :

"I wrote this entire tutorial already in this Thread, but I think it should be separated, so everyone can find it easier:"

Then when you want to have valid safetynet just use the information on the latest Date.
[Google Pixel 5 Guides, News, & Discussion] V0latyle:
@Raz0Rfail if you can, please update the thread title and OP to reflect that this was written for Android 11, and that Android 12 requires a factory wipe and disabling boot verification to flash a patched boot image.
[Google Pixel 5 Guides, News, & Discussion] Raz0Rfail:
hmm I'm using Proton ROM for Android 12 and I had to reflash vbmeta partition to use magisk patched boot.img. Without flashed vbmeta partition I always got bootloop.

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Don't know if it helps on A12 Original Rom.
[Google Pixel 5 Guides, News, & Discussion] V0latyle:
Did you wipe data when you installed A12? That's the thing that seems to make the difference. Those that have taken the OTA or dirty flashed the system image get a corrupted data error if they try to reflash vbmeta. For some reason this worked fine on the 12 Beta. The only way that seems to work so far is to wipe data when installing 12, then reflash vbmeta with the disable flags, then flash a patched boot image.
[Google Pixel 5 Guides, News, & Discussion] Raz0Rfail:
Nope I didn't wiped before I switched to android 12. I made an full backup from phone via file copying and swift Backup. As I knew an new os version could break things and lead to boot loops. I got boot loops after installed the patched magisk boot.img, but then I learned that I had to reflash vbmeta including the parameters, and it worked on my side with magisk and valid safety net. But the primary lucky reason I don't got the problems was that I was on a custom Rom. And I'm feeling bad for them who had a broken data partition after the android 12 update. I hope they made at least an backup so it's not so much harm for them.
[Google Pixel 5 Guides, News, & Discussion] V0latyle:
Well, the biggest issue, as I've mentioned, seems to be that attempting to modify vbmeta and boot without a factory wipe results in the "corrupted data" error. If the factory image is installed with a wipe, this problem doesn't happen; otherwise, if /vbmeta and /boot are untouched, the user can live boot a patched image for temporary root.
[Google Pixel 5 Guides, News, & Discussion] omartins:
Hello all,

Maybe this might sound obvious for many, but better safe than sorry, so here it goes:

If if flash factory image (A12 public release) via fastboot, using the bat file in its original state, this is without removing the "-w", Ill be on A12 with wiped data. After this, is it safe to just patch and flash boot.img or is it also necessary to flash vbmeta with disabled flags?

Thank you in advance.
[Google Pixel 5 Guides, News, & Discussion] V0latyle:
If you flash the factory image, it also flashes vbmeta. To avoid doing it twice, change the line in the batch file that reads

fastboot -w update redfin-image.zip

to

fastboot --disable-verity --disable-verification -w update redfin-image.zip

Then, when the update finishes, patch and flash the boot image.

If you do not disable verity and verification before modifying the boot image, you will get stuck in bootloader with an error message:

"unable to load/verify boot image"
[Google Pixel 5 Guides, News, & Discussion] omartins:
Hello!

Just updated to A12 with permanent root, using the above method. No hiccups, all smooth.

Boot IMG patched with stable Magisk (from github)

Also SwiftBackup was a big help to setup things back!
[Google Pixel 5 Guides, News, & Discussion] V0latyle:
So, the data wipe issue has been partly figured out.

/data must be clean when verity and verification are disabled, once they have been enabled. Unfortunately for those on Android 11, there simply is no way around this.

The good news is that once disabled, a data wipe is not required so long as they are not enabled again. The bad news is, we cannot let any update process boot the device into system without making sure both are disabled.

This means no more automatic updates.

So, we have two (well, three) available options for monthly updates:

1. Sideload the OTA, then immediately reboot into bootloader, and reflash vbmeta with verity and verification disabled.

Or...

2. Flash the factory zip, either via ADB or Android Flash Tool, with verity and verification disabled.
[Google Pixel 5 Guides, News, & Discussion] supaneko:
Hello, hello.

I successfully rooted and was passing the device and basic integrity check and thus able to use GPay and other apps that refuse to work when a device is rooted.

I installed an update for LineageOS and accidentally rebooted before re-flashing Magisk to boot.img.

In the past, I could just go through the install instructions of wiping things and re-applying props and all would be well (this was on a Pixel 3 XL, not the Pixel 5 I have now).

I've followed the instructions on here to the letter and tried over and over but every single time I pass the basic integrity check but fail the device integrity check and thus can't use apps that detect root.

Not sure what to do in this instance ... any ideas?
[Google Pixel 5 Guides, News, & Discussion] supaneko:
Perhaps I should add:

LineageOS version 20231106-nightly-redfin

Magisk: 26.4

Displax safetynet-fix: 2.4.0-MOD_2.0

I re-installed the above, rebooted, removed and re-added Google and related apps to DenyList, put phone in airplane mode and rebooted, cleared the storage and cache for Google and related apps, rebooted, and then disabled airplane mode and tested.
[Google Pixel 5 Guides, News, & Discussion] px5user:
Thank you for the guide. Having followed it, my Pixel 5 is rooted, and passes SafetyNet in Magisk.

However, on my device Google Pay still does not work: it says "your phone doesn't meet security requirements".

Is Google Pay working for anyone else? If so, what steps have you taken? I've tried installing the GPay MySQLite fix Magisk module, which used to work on my previous device, but unfortunately it isn't working on this one.
[Google Pixel 5 Guides, News, & Discussion] morpheus620:
hm not working for me. P5 is unlocked.

C:\>fastboot flash boot "magisk_patched Build 21005.img"

target reported max download size of 268435456 bytes

sending 'boot' (98304 KB)...

OKAY [ 2.419s]

writing 'boot'...

FAILED (remote: Failed to write to partition Not Found)

finished. total time: 2.500s
[Google Pixel 5 Guides, News, & Discussion] aringler:
if you have find RD1A.200810.021.A1 as your version you have KDDI. Check in settings, about the phone, build number.

Go to: https://developers.google.com/android/images#redfin

extract 2 zips files (the second one you will find in the extracted folder).

copy the boot.img file to your phone.

On your phone, go to: https://github.com/topjohnwu/Magisk

download Magisk Manager Canary

once installed, open it, choose install Magisk, chosse the boot.img copied to your device. select let's go.

Copy the patched image file to your platform-tools registry.

Reboot phone into bootloader.

flash image via: fastboot flash boot C:XXXXXX\magisk_patched.img

reboot your device.

open magisk app, check under settings if you see the option MagiskHide, then you have root!

---------- Post added at 03:29 PM ---------- Previous post was at 02:57 PM ----------

Also had the problem, that no Magisk App was installed automatically, after falshing one of your boot images.

But created the boot images my myself, and with your instructions, also GooglePay works for me for the first time!!

Thanks a lot!
[Google Pixel 5 Guides, News, & Discussion] Fields47:
Thanks [MENTION=4916833]aringler[/MENTION], the original instructions with the provided files did not work for me however downloading the boot image and patching it with Magisk Manager did. All rooted and safetynet fine :)
[Google Pixel 5 Guides, News, & Discussion] Zorga:
deleted
[Google Pixel 5 Guides, News, & Discussion] h0ax_ki1l3r:
Hi,

Can someone please confirm if US model (GD1YQ) of Pixel 5 was successfully rooted?

Thanks
[Google Pixel 5 Guides, News, & Discussion] Raz0Rfail:
FYI:

Today I got the attached message from google play store. After I clicked to reboot phone, it reboots twice. After it was up again, no changes to magisk happened, so root works furthermore.

The change I found was the new build number.

It switched from the normal build number up to the KDDI Build number.
[Google Pixel 5 Guides, News, & Discussion] TaranS2001:
Do you retain widevine P1 or the ability to watch her hd hdr content on netflix en prime video after rooting the pixel 5?
[Google Pixel 5 Guides, News, & Discussion] jaythenut:
I got full hd on Netflix
[Google Pixel 5 Guides, News, & Discussion] jemeljsh:
edit.

I got it :)

This would be the way I would describe it :)

1. Open adb

2. type "adb shell"

3. type "su"

4. type "props"

5. Make the following choices 2, f, 7, 20, y,y

THANK YOU SIR, for your input ;)
[Google Pixel 5 Guides, News, & Discussion] dunderball:
The tutorial is a little strange. I've rooted the Pixel 2 and Pixel 3a in the past and the instructions here are very different.

Why not just unpack the boot.img from the factory image and patch it in Magisk? Seems very strange to download a boot image off the internet.

And why does the prop file need to be hidden and permissions updated via Terminal? Shouldn't Magisk Hide do all the work for you?

Edit: Okay I see that Google has implemented hardware based safety net checking. That's a bummer. I don't think I'll be rooting this device now at the risk of data loss or having to re-lock the bootloader in the next 3 years.
[Google Pixel 5 Guides, News, & Discussion] Kars88:
The device users different protection. Only the latest magisk is working and we have to give these bright minds some time to figure out how to bypass the new protection.

Sort of an alpha phase
[Google Pixel 5 Guides, News, & Discussion] cstark27:
Does Network Signal Guru from the Play Store work (requires root)? If it's a blank page at first, you may need to set a custom prop 'ro.vendor.build.type' to userdebug and reboot. Would appreciate if someone could check, thank you.
[Google Pixel 5 Guides, News, & Discussion] Raz0Rfail:
I tried to change the value ro.vendor.build.type in the "/vendor/build.prop" file, but saving isn't possible, because the partition is read only. I tried ES File Explorer and FX File Explorer to mount the vendor partition to r/w. But no chance at all. I checked the other 3 build.prop files, but there wasn't the property, so I think it should be the file in "/vendor/build.prop".

I activated in the signal guru app the SELInux values and rebooted the app and the phone but no chance, always a empty main screen.

I don't know if it has something to do that I live in germany.
[Google Pixel 5 Guides, News, & Discussion] cstark27:
Thanks for trying. Yeah, we can't write directly to those partitions anymore but if you use the MagiskHide Props module you can set a custom prop (option 5) with those values. Sorry to go off topic but this kind of a niche request. If this is successful, you can probably disable that selinux option as well.
[Google Pixel 5 Guides, News, & Discussion] Raz0Rfail:
I switched the property via "props" to userdebug and rebooted phone.

After it I reinstalled the app, then launched it. But at First I got again an unknown driver error and I had to enable selinux again. After app restart it shows some data, but don't know what it's for or how to use it. See attached screenshots.
[Google Pixel 5 Guides, News, & Discussion] cstark27:
Thank you much. It appears to be working to a degree which is a start. This app reports network stats, like what LTE or 5G bands you are connected to and advanced characteristics about the connection. It connects straight to the modem.
[Google Pixel 5 Guides, News, & Discussion] Aporzio:
Can someone test to see if this module works on android 11 on the pixel 5? I'd test but I don't have my phone yet.
[Google Pixel 5 Guides, News, & Discussion] nrd\:
Great guide, managed to get root, Thanks.

One thing im stuggling with is the props settings, my menus in props are not the same as the insturctions, is it something im doing wrong?

su for getting root access (you have to grant it) and props is the software for magiskhide Props.

The following commands to set your P5 as an P3a with basic Authorization

Code:

2 + Enter

f + Enter

7 + Enter

20 + Enter

y + Enter

y + Enter

example, my number 2 selection is

127|redfin:/ # props

Loading... Please wait.

MagiskHide Props Config v5.3.6

by Didgeridoohan @ XDA Developers

=====================================

Updating fingerprints list

=====================================

Checking list version.

Fingerprints list up-to-date.

Checking for module update.

No update available.

MagiskHide Props Config v5.3.6

by Didgeridoohan @ XDA Developers

=====================================

Select an option below.

=====================================

1 - Edit device fingerprint

2 - Force BASIC key attestation

3 - Device simulation (disabled)

4 - Edit MagiskHide props

5 - Add/edit custom props

6 - Delete prop values

7 - Script settings

8 - Collect logs

u - Perform module update check

r - Reset all options/settings

b - Reboot device

e - Exit

See the module readme or the

support thread @ XDA for details.

Enter your desired option: 4

MagiskHide Props Config v5.3.6

by Didgeridoohan @ XDA Developers

---------- Post added at 10:01 AM ---------- Previous post was at 09:26 AM ----------

nevermind figured it out, first selection should be 'D', i guess op made a mistake as D is next to F.

Hope this helps for those who dont want to 'test' around in the props menu ;):o
[Google Pixel 5 Guides, News, & Discussion] Aporzio:
I just tested the hardwareoff module on android 11 on the pixel 4xl and it works. It should work on the pixel 5 as well I would assume just don't forget to hide magisk first.

---------- Post added at 01:24 AM ---------- Previous post was at 01:23 AM ----------

Also I will be trying it on mine once I get it I'll report back with an update.
[Google Pixel 5 Guides, News, & Discussion] Golf c:
That's some unknown scary stuff. What is it supposed to do? The guy posted it with no explanation
[Google Pixel 5 Guides, News, & Discussion] Aporzio:
You can search in the pixel 4 xl forum on the how to root thread. That's where I found the module when I was using the pixel 4 xl. All it does is change prop files so that hardware attestation reads as basic instead therefore bypassing Google's hardware attestation.