Add support for Android 10

This commit is contained in:
Danny Lin 2021-01-13 16:22:00 -08:00
parent 37bd89802b
commit 1157bb969f
No known key found for this signature in database
GPG Key ID: 1988FAA1797EE5AC
6 changed files with 18 additions and 3 deletions

View File

@ -1,10 +1,12 @@
# Universal SafetyNet Fix # Universal SafetyNet Fix
This is a universal fix for SafetyNet on devices with hardware attestation and unlocked bootloaders. This is a universal fix for SafetyNet on devices with hardware attestation and unlocked bootloaders. It defeats both hardware attestation and the new SafetyNet ctsProfile updates released on January 12, 2021. The only requirement is that you can pass basic attestation, which requires a valid combination of device and model names, build fingerprints, and security patch levels. Passing basic attestation is out-of-scope for this module.
No device-specific features (such as the new Pixel-exclusive Google Assistant design or screen-off voice match) will be lost with this fix.
MagiskHide is required if the device is rooted. MagiskHide is required if the device is rooted.
Only Android 11 is supported. Only Android 10 and 11 are supported. Heavy OEM skins are not officially supported, but it may work on them depending on your luck and the particular ROM in question.
## How does it work? ## How does it work?

View File

@ -1,4 +1,17 @@
#!/sbin/sh #!/sbin/sh
sdk="$(getprop ro.build.version.sdk)"
if [ "$sdk" -eq 30 ]; then
ui_print "Installing for Android 11"
mv $MODPATH/system_sdk30 $MODPATH/system
elif [ "$sdk" -eq 29 ]; then
ui_print "Installing for Android 10"
mv $MODPATH/system_sdk29 $MODPATH/system
else
ui_print "Android $(getprop ro.vendor.build.version.release) (SDK $sdk) is not supported!"
exit 1
fi
# Set executable permissions # Set executable permissions
set_perm_recursive $MODPATH/system/bin 0 0 0755 0755 set_perm_recursive $MODPATH/system/bin 0 0 0755 0755

View File

@ -3,5 +3,5 @@ name=Universal SafetyNet Fix
version=v1.0.2 version=v1.0.2
versionCode=10002 versionCode=10002
author=kdrag0n author=kdrag0n
description=A universal fix for SafetyNet on devices with hardware attestation and unlocked bootloaders. Requires MagiskHide if rooted. For Android 11 only. description=A universal fix for SafetyNet on devices with hardware attestation and unlocked bootloaders. Requires MagiskHide if rooted. For Android 10 and 11 only.
support=https://github.com/kdrag0n/safetynet-fix support=https://github.com/kdrag0n/safetynet-fix

BIN
system_sdk29/bin/keystore Executable file

Binary file not shown.