• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

How To Guide Working SafetyNet with Pixel 6 Pro Android 12

Search This thread

tanipat

Senior Member
Nov 22, 2011
334
97
i lost root after step 9, trying to reroot by repatch .img but seem magisk do not install whatever i try. How to reroot properly if i lost root?
 

Zilla0617

Senior Member
I recently factory reset my phone to work out some issues and I encountered a problem I have not faced in years, unable to add a card or use gpay. Ive read through the thread I and tried everything. I deleted cache/storage of google play services, play store, framework, restarted my phone set up various services in the denied configured list. When I open gpay i see my cards listed that needs activation but when i try to set it up it instantly crashes.

My phone is passing safety net, I can access my bank (PNC), play store indicates device is certified, and I can download netflix. In the process of trying to troubleshoot when i go to Google services and preferences in settings it brings back to my homescreen instead of going to the next menu, not sure what the issue is. The only thing is I cannot use gpay, can someone offer any suggestions, thanks.
 

Dave Lister

Senior Member
Feb 16, 2010
103
52
I recently factory reset my phone to work out some issues and I encountered a problem I have not faced in years, unable to add a card or use gpay. Ive read through the thread I and tried everything. I deleted cache/storage of google play services, play store, framework, restarted my phone set up various services in the denied configured list. When I open gpay i see my cards listed that needs activation but when i try to set it up it instantly crashes.

My phone is passing safety net, I can access my bank (PNC), play store indicates device is certified, and I can download netflix. In the process of trying to troubleshoot when i go to Google services and preferences in settings it brings back to my homescreen instead of going to the next menu, not sure what the issue is. The only thing is I cannot use gpay, can someone offer any suggestions, thanks.
The one thing I don't see in the list of things you've attempted is clearing the GPay storage and cache. Maybe give that a try?
 

roirraW "edor" ehT

Forum Moderator
Staff member
Anyone update to latest Canary 23015? I'm currently on 23014 without issues so I just wanted to check before upgrading.
Yep, updated a few days ago. Update the Magisk app first (I did using the in-app App Update button), then use the direct install option to patch the boot.img to the latest Magisk.
 

mac796

Senior Member
Aug 20, 2014
1,347
467
Long Beach
I recently factory reset my phone to work out some issues and I encountered a problem I have not faced in years, unable to add a card or use gpay. Ive read through the thread I and tried everything. I deleted cache/storage of google play services, play store, framework, restarted my phone set up various services in the denied configured list. When I open gpay i see my cards listed that needs activation but when i try to set it up it instantly crashes.

My phone is passing safety net, I can access my bank (PNC), play store indicates device is certified, and I can download netflix. In the process of trying to troubleshoot when i go to Google services and preferences in settings it brings back to my homescreen instead of going to the next menu, not sure what the issue is. The only thing is I cannot use gpay, can someone offer any suggestions, thanks.
If you enabled systemless hosts in magisk try disabling it then try setting it up. I ended up having to use a different hosts module
 

Zilla0617

Senior Member
If you enabled systemless hosts in magisk try disabling it then try setting it up. I ended up having to use a different hosts module
Just tried it, unfortunately it does not work. I may factory reset again. I know when I first got the P6P, I copied data from my P4xl and everything worked. I since reset my P6P and started from scratch and I am experiencing all kinds of issue with random apps, credit karma, gpay, yttv...
 

mac796

Senior Member
Aug 20, 2014
1,347
467
Long Beach
Just tried it, unfortunately it does not work. I may factory reset again. I know when I first got the P6P, I copied data from my P4xl and everything worked. I since reset my P6P and started from scratch and I am experiencing all kinds of issue with random apps, credit karma, gpay, yttv...
That's too bad. Was worth a shot
 

roirraW "edor" ehT

Forum Moderator
Staff member
I am unable to access google services/preferences menu in settings when rooted on pixel 6 pro. It instantly crashes when trying. I've already cleared storage and cache of play services, framework, and play store. I have no problem accessing that section on my rooted pixel 4xl
Working here while rooted on the .037 firmware.

kMnt3SlBlvXs1uBIJmwubY59QQu_q0ekzLVifOpGZ3Hsyz5_cnPp6YwvANSPxsF0B8vUVFiWnm3XEVURV4F0O6wxDnIaSCTv7MH2V4ZigxKdm986HYt_vhYmFLYt0EoMXvlocr9337vdzRV9ZQ3kXYiNMkTmbB7yaQIFYxARfl_AjXjslkAivufU6UuetPwHNP_6NliyIMNIdQQUvxVrziwBRGyn6DsD57g54_Da5a0uwMeRlpBpzPCVabbA1LxuY1nHpPqBwidviYZrtMVTlnd_cCFAbMVN8cF_rk7gzceNaVSNRKfPbzqYOAltXgGgxNimkUPFfTYxqwke-onJAgUX37f9MlQnmvM7xgvljaQVokGAp6TnJZFTyfI4DvnmdhFrmCwDzwNWyhQ8BdEcFvVYnPOvVecAoZlidVSV0Qr-GJnw0jUl3hHBpCpG-e_ynQ2zo_lIphNi-HF1BkKxydWtCJFbIaE1HpQSmVpcPgoc6673bz0fIRJFYcXQbz3tyVRuI1gf68YZmODiGSaPEfnsILZmsPICEITrj_ugZfBOWiQeR6jHnVi33o1NJQxvczfI7O4ucDOsrZVicjXab_hhRUrYEjTzVFEmv64cmDFi3mbgxoG4stW8jgTQgjdnIvErAbnqTgPiBQTxT0NIOLROTBbglGFfTe3EVtHE7op0KcyoTs8XqLlvPGgjoogbTQYlo9Dm-1YVF1idb_oVettI8g=w858-h1856-no
 
  • Like
Reactions: foobar66

crypt0kiddie

Senior Member
Jun 23, 2010
791
99
This worked 100% on a Pixel 4XL too!

I've been racking my brain for the last two days trying to get GPay working since upgrading from A11-Sept-2021 to A12-Nov-2021.

Simply installed Canary, grabbed the SafetyNet patch and hid Google Pay, easy peasy!

Thanks OP!
 

Top Liked Posts

  • 2
    Try uninstalling the Magisk app:

    adb shell
    pm uninstall com.topjohnwu.magisk

    Then reinstall the Magisk app

    Or unhide it:

    adb shell
    pm unhide com.topjohnwe.magisk
    Thanks for your reply!
    My problem was actually more complex than that, but your reply leaded me to the solution!(y)

    First, as I have said, I had Magisk Manager hidden - so the package name wasn't the one with magisk, but just some random letters.
    Secondly, I had absolutely no clue what adb means and is used to.
    🤯

    Fortunately, I had a glance on the random name just before messing it up and after viewing some tutorials over adb, I managed to spot it using:

    adb shell
    pm list packages -u


    but I should add that unhide command didn't work. instead what worked was:

    abd shell
    pm enable n.zpwjb.px
    (the hidden package name of the magisk manager)

    So thank you once again!
    1
    Thanks for your reply!
    My problem was actually more complex than that, but your reply leaded me to the solution!(y)

    First, as I have said, I had Magisk Manager hidden - so the package name wasn't the one with magisk, but just some random letters.
    Secondly, I had absolutely no clue what adb means and is used to.
    🤯

    Fortunately, I had a glance on the random name just before messing it up and after viewing some tutorials over adb, I managed to spot it using:

    adb shell
    pm list packages -u


    but I should add that unhide command didn't work. instead what worked was:

    abd shell
    pm enable n.zpwjb.px
    (the hidden package name of the magisk manager)

    So thank you once again!
    Awesome! I'm sure your solution will also help others in the same predicament and glad you posted it. So many times people just say "I fixed it" without giving the solution so it doesn't help others. So I'm glad you did 👍
  • 4
    Is root confirmed, i got bit by the outage on December
    Canary Magisk 23016 works fine on the January build.
    3
    ok I figured this out. as well as hiding magisk from within the app and renaming it, I needed to freeze it (the new renamed app). I used sd maid for this. cleared data on the banking apps and tried again and now they all work! yeeha!
    Glad you figured it out, but then you can't use root apps (with root access) until you unfreeze Magisk, right?
    3
    Is root confirmed, i got bit by the outage on December
    I updated and have root.
    2
    I searched this section for "repository" and found the following:

    https://forum.xda-developers.com/t/closed-firmware-is-out-get-your-root-on.4353565/post-85874015

    And another search for "Magisk repo" in this section found the following pretty quickly:
    https://forum.xda-developers.com/t/pixel-6-pro-easy-step-by-step-unlock-root.4361847/post-85977445

    Note that if you follow the link at that post, then where it says at the top "Releases 0.1.2", if you click on "Releases" you'll see there are more recent versions of the suggested repository app than 0.1.2.
    Thank u. I tried googling stuff but couldn't find nothing.
    2
    Nope. Unlocked google phone.
    Bootloader unlocked without problems
    I hate to suggest the relatively extreme, but I had to flash my phone full stock and factory reset in order to fix a similar problem I was having a few weeks back. I haven't had any trouble since then. It was actually an accident that I wiped my phone, so you could try flashing the full firmware zip with the -w removed to prevent a wipe, and then proceed to flash the Magisk'd boot.img etc, but if that doesn't work, I would suggest a full flash and wipe.
  • 48

    This is no longer using an Unofficial Magisk app, it's the official Canary and USNF 2.2.0

    1. Download the latest Magisk Canary build
    2. Patch the boot.img from the Factory Images in Magisk, you'll also need the vbmeta.img if you aren't already rooted:
    If you're coming from Stock ROM/Unrooted
    2a. Magisk Manager -> Select and Patch a File -> boot.img
    2b. Copy patched boot image to PC
    2c. Reboot to Bootloader
    2d.
    Code:
    fastboot flash vbmeta --disable-verity --disable-verification vbmeta.img
    2e. Optional, if you want to test the img boots first
    Code:
    fastboot boot magisk_patched-230xx_xxxxx.img
    2f.
    Code:
    fastboot flash boot magisk_patched-230xx_xxxxx.img
    2g. Boot your device. This may require a factory reset if you get put into 'Data may be corrupted'
    If your device is already rooted using Magisk
    2a. Magisk Manager -> Direct Install
    2b. Reboot device
    4. Install from within Magisk Manager, and reboot your device
    5. In Magisk Manager, go to the Settings and enable Zygisk and Enforce DenyList
    6. Configure DenyList should be just below - This is just like the old Magisk Hide menu
    7. Hide any apps which may require it e.g banking apps and Google Pay
    8. In Magisk Settings, choose to Hide the Magisk app so it reinstalls the manager with a different package name. This helps prevent some banking apps detecting root.
    9. Reboot your device and test SafetyNet with an app like YASNAC
    If you're still failing CTS, you can try to clear app data for Google Play Services in your devices settings.


    Helpful screenshots/proof.
    Note: Systemless Hosts/MagiskHide Props Config/Riru/Riru LSPosed are not required for this.
    Notes2: Google Play Services does not need to be configured in DenyList

    1635538043315.png
    1636280624123.png
    1636280645162.png
    1635538085804.png
    1635538206722.png


    To update without wiping data, you can follow the OP post here

    1. Modify flash-all.bat:
    Open flash-all.bat in notepad and remove -w and add --disable-verity, -- disable verification and --skip-reboot to the fastboot update line. After editing, it should read as:
    Code:
    fastboot --disable-verity --disable-verification update image-raven-xxxxxxxxxxxx.zip --skip-reboot

    2. add the following commands to the bottom and change the img name to your patched boot image
    Code:
    fastboot reboot-bootloader
    ping -n 5 127.0.0.1 >nul
    fastboot flash boot --slot=all magisk_patched-23xxx_xxxxx.img
    fastboot reboot
    Once the script is ran, you should now be updated to the latest version with Magisk boot image installed.

    ISSUE: Apps not appearing in Google Play Store
    The below was emailed to me by KLWP developers after I raised I couldn't install it. It's worked for me for getting apps like Netflix to show.
    "This may have something to do with the new copy protection Google introduced with the new signing method. This happens if the Play Store falsely detects that something was tampered with on the device. To get around this, you can try to clear Google Play Store's app data."

    Thanks to @bouchigo for these instructions.
    Use an older version of that app (version 4.234) to get the fingerprint setup and working.

    Steps:
    1. Remove your current Chase bank app.
    2. Install the older version mentioned.
    3. Add it to the magisk deny list.
    4. Setup your fingerprint.

    Once you've done that, you can update the app in the Play Store to the latest version and the fingerprint will still work
    13
    Btw with USNF 2.2.0 being out as a Zygisk module, SN passes with Magisk Canary. It's an early access module
    I was following these:


    Note the writing "If you flash the images in bootloader, you will have to wipe." This has been my experience as well.

    There seems to be some confusion in those posts.

    Fastbootd is meant to flash contents of the super partition such as system, vendor, product. Due to dynamic partitions, those are now a part of a super partition which is flashed via regular fastboot aka bootloader.

    Vbmeta is a low level partition too so it needs to be flashed via the bootloader. Data wipe is unavoidable the first time vbmeta and dm-verity are disabled but can be avoided during OTA updates.

    So, for the first root attempt this is how things should go:
    1. Get the latest boot.img of your device. If it's older than the firmware on your device, it is fine. Get the vbmeta image too.
    2. Install Magisk Canary apk on device
    3. Click Install -> Patch an image. Here select the boot image you've extracted in step 1. The patched image will be saved in `/sdcard/Download/`. Copy it over to your PC.
    4. `adb reboot bootloader` to boot into fastboot
    5. `fastboot flashing unlock` if BL hasn't been unlocked
    6. `fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img`
    7. `fastboot -w` the first time you're disabling vbmeta.
    8. Reboot device once to ensure the system has been wiped and is bootable after disabling vbmeta
    9. `fastboot boot magisk_patched.img`
    10. You'll now be booted with temp root. Open Magisk and click Install -> Direct Install

    We boot the patched image instead of flashing it so that you can root even if the latest stock firmware image isn't available yet.

    For monthly updates, don't update via System Update but by using the OTA images released by Google.
    1. Download the OTA package to PC.
    2. Use payload dumper to get the latest boot image for patching as steps above. Extract the vbmeta image too.
    3. `adb reboot recovery`
    4. Install update via adb sideload. It's imperative, the device isn't booted into system upon completion.
    5. Reboot to bootloader from the menu in recovery
    6. `fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img`
    7. `fastboot boot magisk_patched.img`
    8. Direct Install from within Magisk Manager.
    9
    Maybe here? Haven't tried yet. http://www.oldversion.com/android/com-chase-sig-android/

    There's also https://apkeureka.com/apk/com.chase.sig.android/

    Found using this search: https://www.google.com/search?q=chase+bank+apk+old+version&sxsrf=AOaemvLfTz7WOH6Um3eIfpWRliMBVMz2Kw:1637594539550&ei=q7WbYczzIJWPtAbtxKmYBg&ved=0ahUKEwiM9cKGo6z0AhWVB80KHW1iCmMQ4dUDCA4&uact=5&oq=chase+bank+apk+old+version&gs_lcp=Cgdnd3Mtd2l6EAMyCAghEBYQHRAeOgcIABBHELADOg0ILhDHARCjAhCwAxBDOgcIABCwAxBDOgUIABCABDoICAAQFhAKEB46BggAEBYQHkoECEEYAFDaCFinEmDZE2gBcAJ4AIABuwGIAc4KkgEDNi42mAEAoAEByAEKwAEB&sclient=gws-wiz

    I kinda hate to download banking apps from random websites, however.

    The newest version (still older than what I had from the Play Store) on the second site, chase-mobile_v4.252_apkeureka.com - 20211007 fingerprint still wouldn't enable.

    The oldest version on the second site, chase-mobile_v4.171_apkeureka.com - 20201211 wouldn't let me sign in without updating.

    I'll try one somewhere in the middle. Trial and error is a pain, though. Install, deny in Magisk, log in, 2FA, Settings, Fingerprint, denied. :D Wipe Cache and Storage, uninstall, repeat.

    chase-mobile_v4.220_apkeureka.com - 20200702 - wouldn't let me sign in without update
    chase-mobile_v4.231_apkeureka.com - 20200805 - wouldn't let me sign in without update
    chase-mobile_v4.234_apkeureka.com - 20200817 - wouldn't let me sign in without update

    And that's all she wrote for now. 10/07 is the only one on the site newer than 8/17, 8/17 requires update before trying to sign in, and 10/07 still has the problem where I couldn't enable fingerprints. I don't have the Chase app still installed on some previous rooted phone (with an old version) to restore app data from.

    By the way, I notice all these APKs are much bigger than what the Play Store reports is the current app's size, but maybe there's a technical reason for that. I hope. :)

    I figured it out! Thank you so much! I came across the apkeureka site but when I clicked the apk from my notifications, it didn't let me install.

    Big thanks to @Bad Bimr for figuring out the data off / wifi off part.

    Here's how to get the Chase app working:

    1. Uninstall any previous chase app from your phone.

    2. Download this Chase apk: https://apkeureka.com/apk/com.chase.sig.android/link/2/ (chase-mobile_v4.234_apkeureka.com.apk)

    3. Use a file explorer or the one that comes stock with your phone to install the apk.

    4. DO NOT open the Chase app.

    5. Go to Magisk > DenyList and check everything on the Chase app.
    5a. Not sure if this is required but I also spoofed my Magisk and named it "Matrix" (Settings > Hide Magisk app)

    6. Turn off both your Wifi and Data so you have no internet connection.

    7. Open the Chase app and enter your login username and password (make sure to click on the fingerprint sensor so it takes you straight to that setting to enable)

    8. It will prompt you that you have no data when you click the sign in button.

    9. You can now enable data and it will sign you in and take you to the fingerprint authentication page where you can enable it.

    10. The next time you sign it, it will prompt you to update the app. Go ahead and do that. Your fingerprint will still work once you update.

    11. PROFIT!
    9
    No worries, we're all adults here trying to keep up with Google's changes after all :)

    With USNF, DenyList doesn't need to be enabled for Play Services. This prevents any breaking of Play Services. What I did was:
    - Latest Magisk Canary
    - Enabled Zygisk but keep DenyList turned off
    - Flash the USNF module
    - Reboot system and verify if Zygisk is shown as "Yes" in Magisk Manager
    - Enable DenyList and select my bank apps
    - Hid Magisk Manager by repacking it with a different name

    Tested for SN and it passed. Netflix works. Banking apps mostly work with the exception of one which is worked-around by temporarily uninstalling only Magisk Manager. After I'm done with that bank app, a reboot brings back Magisk Manager.

    Unfortunately, since I'm traveling, GPay isn't available here so I can't test it but it should work just fine. If you've a specific app you want me to test, link it and I'll post a screenshot.
    Thanks for posting. Last night I had the forked Alpha version of Magisk installed with RIRU and the public release of USNF 2.1. Passed Safetynet and everyting was working well, but decided I'd feel better using the latest non-forked Zygisk compatible Magisk 23011

    1. I uninstalled Magisk Alpha from within the app--first restoring images and then doing a complete uninstall.

    2. Installed the latest Magisk 23011 and pattched the boot image.
    3. Copied magisk-patched.img to my computer
    4. adb reboot bootloader
    5. From bootloader I typed:
    fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img (enter)
    fastboot flash boot_a magisk-patched.img (enter)
    fastboot flash boot_b magisk-patched.img (enter)
    fastboot reboot

    I'll be honest, I've been reading other posts stating that one should boot magisk-patched.img instead of flashing it.

    I tried that once and couldn't get it to work. It would just reboot to my home screen., so I began flashing the patched boot.img to both slots immediately after flashing vbmeta

    I've never had any trouble.

    Once I verified Magisk 23011 was properly installed and verified root, I installed USNF 2.2 early release, following Anonshe's instructions.

    SafetyNet failed initially, but I cleared cashe and data for Google Play Services and Play Store and now everything passes

    Definitely don't regret throwing kdrag0n a few bucks. USNF 2.2 does everything expected. https://kdrag0n.dev/patreon/

    I'm currently on the $5 monthly plan, but he also offers a one-time $5.99 charge for early access to USNF 2.2.

    Hopefully we can always manage to stay ahead in this cat and mouse game!!
    6
    @Anonshe or @V0latyle, you guys are doing a great job so far! I appreciate your dedication!

    I have my P6P sitting in its box for now, only unlocked the bootloader. Would any of you be so kind to write an idiot-proof guide to permanently root the P6P? I feel like information is all over the place in the P6P section...
    I'll update my guides in a bit, but just for you...this will be the Cliff Notes version, so if you need more detailed instructions, you'll have to wait a bit...

    Without the SIM card in it, start your phone. Get through the setup by skipping as much as you can. If you want, connect to WiFi and install the latest update, because you'll be wiping when you unlock the bootloader. If you choose to do so, let the update complete once you get through setup.

    While you're doing this, download the latest factory zip to your computer. Extract it and the .zip inside it.

    Once you're at the home screen, go to Settings > About, scroll to the bottom and tap the build number several times until it says You are Now a Developer. Go back one screen, go to System > Developer Options, enable OEM Unlocking and USB Debugging. Reboot to bootloader.

    Connect to PC via USB and open command line in platform tools. Unlock bootloader:
    Code:
    fastboot flash unlock
    Confirm and allow your device to wipe. I don't remember if it gives you a choice, but don't reboot.
    Disable dm-verity and vbmeta verification:
    Code:
    flash vbmeta --disable-verity --disable-verificaiton --slot=all vbmeta.img
    where vbmeta.img will be in factory zip > build folder > device-image > vbmeta.img

    Reboot to system. Install Magisk 23011. Copy boot.img from the same folder you find vbmeta.img in, to your phone (you'll have to enable File Transfer on your device)

    Patch the boot image in Magisk (Select and Patch a File), then copy the patched image back to your computer. Reboot to bootloader.

    Flash the patched boot image:
    Code:
    fastboot flash boot magisk_patched-23xxx_xxxxx.img

    Reboot and enjoy.