Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixel 7 Pro CTS profile fail #224

Closed
ZerkerEOD opened this issue Oct 14, 2022 · 14 comments
Closed

Pixel 7 Pro CTS profile fail #224

ZerkerEOD opened this issue Oct 14, 2022 · 14 comments

Comments

@ZerkerEOD
Copy link

ZerkerEOD commented Oct 14, 2022

Hello I am getting CTS profile fail and I tried the modded version also. Is there a way to fix this?

@ZerkerEOD ZerkerEOD changed the title Pixel 7 Pro CMS profile fail Pixel 7 Pro CTS profile fail Oct 14, 2022
@kafisc1
Copy link

kafisc1 commented Oct 14, 2022

Same issue on P7.
And no. There ist no way atm.

@Z-Siqi
Copy link

Z-Siqi commented Oct 22, 2022

Try replacing the code inside service.sh with this.
It's work with my Pixel 7 Pro

#!/system/bin/sh
# Conditional MagiskHide properties

maybe_set_prop() {
    local prop="$1"
    local contains="$2"
    local value="$3"

    if [[ "$(getprop "$prop")" == *"$contains"* ]]; then
        resetprop "$prop" "$value"
    fi
}

# Magisk recovery mode
maybe_set_prop ro.bootmode recovery unknown
maybe_set_prop ro.boot.mode recovery unknown
maybe_set_prop vendor.boot.mode recovery unknown

# MIUI cross-region flash
maybe_set_prop ro.boot.hwc CN GLOBAL
maybe_set_prop ro.boot.hwcountry China GLOBAL

resetprop --delete ro.build.selinux

# SELinux permissive
if [[ "$(cat /sys/fs/selinux/enforce)" == "0" ]]; then
    chmod 640 /sys/fs/selinux/enforce
    chmod 440 /sys/fs/selinux/policy
fi

# Late props which must be set after boot_completed
{
    until [[ "$(getprop sys.boot_completed)" == "1" ]]; do
        sleep 1
    done

    # avoid breaking Realme fingerprint scanners
    resetprop ro.boot.flash.locked 1

    # avoid breaking Oppo fingerprint scanners
    resetprop ro.boot.vbmeta.device_state locked

    # avoid breaking OnePlus display modes/fingerprint scanners
    resetprop vendor.boot.verifiedbootstate green

    # makes bank apps and Google Pay happy
    resetprop sys.oem_unlock_allowed 0

    # avoid breaking encryption, set shipping level to 32 for devices >=33 to allow for software attestation.
    if [[ "$(getprop ro.product.first_api_level)" -ge 33 ]]; then
        resetprop ro.product.first_api_level 32
    fi

}&

@schumski
Copy link

Try replacing the code inside service.sh with this. It's work with my Pixel 7 Pro

It worked on mine too. You are my hero. Thanks!

@Z-Siqi
Copy link

Z-Siqi commented Oct 28, 2022

Try replacing the code inside service.sh with this. It's work with my Pixel 7 Pro

It worked on mine too. You are my hero. Thanks!

But this way only can help you pass this test. You still unable download Netflix or use GPay. #210
And the luckily, I just found a fork of safetynet-fix, that module is fixed these problem.
https://github.com/Displax/safetynet-fix/releases

@erdy232
Copy link

erdy232 commented Oct 29, 2022

Try replacing the code inside service.sh with this. It's work with my Pixel 7 Pro

It worked on mine too. You are my hero. Thanks!

But this way only can help you pass this test. You still unable download Netflix or use GPay. #210 And the luckily, I just found a fork of safetynet-fix, that module is fixed these problem. https://github.com/Displax/safetynet-fix/releases

GPay still doesn't work for me with Displax's fork for Pixel 7. Some time after installation, it also fails the CTS profile match.

@Techwolf12
Copy link

For me, the fix in #224 (comment) was also a requirement to get GPay working, you also have to clear data/cache from Google Play Store/Google Wallet and suddently, it would work for me!

@M3gaFr3ak
Copy link

For me, the fix in #224 (comment) was also a requirement to get GPay working, you also have to clear data/cache from Google Play Store/Google Wallet and suddently, it would work for me!

I used the fix ender-zhao mentioned and applied the #224 (comment) fix. Works with netflix and gpay

delthas added a commit to delthas/safetynet-fix that referenced this issue Nov 28, 2022
This fix found in a Github comment [1] makes bank apps and Google Pay work properly.

[1]: kdrag0n#224 (comment)
delthas added a commit to delthas/safetynet-fix that referenced this issue Nov 28, 2022
This fix found in a Github comment [1] makes bank apps and Google Pay work properly.

[1]: kdrag0n#224 (comment)
kdrag0n added a commit that referenced this issue Jan 6, 2023
"AndroidCAStore" always seems to be used early in the attestation
process, before the fingerprint is checked.

Dynamic patching avoids problems with device detection and functionality
that can be caused by permanently spoofing another device.

Fixes #207, #224, #222, #220, #218, #212, #211, #210, #204, #203, #201, #196, #188, #171, #170
@kdrag0n kdrag0n closed this as completed in 73c8587 Jan 6, 2023
@T0PGlitch3r
Copy link

T0PGlitch3r commented May 31, 2023

you don't need to do any of that i have the Pixel 7a and i was having the same problem until i did this i downloaded and installed the universal safety net fix and also installed magiskhideprop then installed termux here is what you have to do:
su
props
choose 1
then choose f
then 7
then choose 29
the yes then when it says reboot then reboot
I know it says Google Pixel 6 pro but it works i now have netflix and wallet working on my phone

@ZerkerEOD
Copy link
Author

you don't need to do any of that i have the Pixel 7a and i was having the same problem until i did this i downloaded and installed the universal safety net fix and also installed magiskhideprop then installed termux here is what you have to do: su props choose 1 then choose f then 7 then choose 29 the yes then when it says reboot then reboot I know it says Google Pixel 6 pro but it works i now have netflix and wallet working on my phone

Yes, it's been fixed which is why it's closed.

@T0PGlitch3r
Copy link

ok

@missionmankind
Copy link

where is service.sh found? forgive me i dont know where or what this is.
I have FX Explorer.
Id like to try to copy and paste this code.
I have a Pixel 7 Pro as well thats failing CTS profile match.

@vepexlegit
Copy link

vepexlegit commented Aug 9, 2023

I MADE A WORKING SAFETYNET FIX!
https://github.com/vepexlegit/safetynet-working-fix
READ CAREFULLY README.md

@crok
Copy link

crok commented Aug 9, 2023

https://github.com/vepexlegit/safetynet-working-fix

Why rar? Why do you do it in this shady and clunky way? Why don't you simply make a PR or explain what you did in your "fix"?

@Tragen
Copy link

Tragen commented Aug 9, 2023

I wanted to compare the forks but no source code. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests