[Jan 2021]: Workaround to fix SafetyNet on "old" xiaomi.eu ROMs (=all ROMs released before January, 13th 2021) => It's recommended to use the Magisk method:
IMPORTANT: After Magisk installation, do not forget to enable "Magisk Hide" option in Magisk app.
|||--- Magisk method = Install Magisk v22.0 (check this for help =>
https://xiaomi.eu/community/threads...nstalling-android-11-update.60181/post-594671) THEN install this Magisk module in Magisk app (in the "puzzle" icon page) => safetynet-fix-v1.1.2.zip (mirror link: here) [Source:
https://github.com/wulan17/safetynet-fix ]
After reboot, "Clear all data" of these following apps (in phone's settings):
- Google Play Store
- Google Play Services
- Google Service Framework
Then reboot your device and it's done!
P.S.: If Google Pay still not working, "Clear all data" of this app too.
|||--- TWRP method = Install this zip in TWRP (but it may not work) => TWRP_SafetyNetFix-v2.0.2.zip (mirror link: here)
Reinstall the zip again to uninstall the fix if it doesn't work/if the phone doesn't boot.
Three workarounds to pass the new SafetyNet "hardware" attestation (= "CTS Profile Match" fail result)
- 1 ] (WORKS ON DEVICES SHIPPED WITH ANDROID 9 OR LESS ONLY!) - If you care about Widevine L1 certification but you don't want to install Magisk (root), install this => https://xiaomi.eu/community/threads...t-compatibility-test-failed.58100/post-568717
- 2 ] If you care about Widevine L1 certification, you can use Magisk (root) and do these steps:
1. Donwload and install Magisk Manager v8.0.7 apk =>
MagiskManager-v8.0.7.apk
2. Download and install Magisk v21.4 in TWRP =>
Magisk-v21.4.zip
3. Reboot your device
4. Open Magisk Manager and go the "Module" page and install "MagiskHide Props Config" Module
(Reboot your device after installation)
5. Download and install
Termux app (available on Google Play)
6. Start Termux and type "su" and hit enter , after this termux ask Magisk-Manager to prompt for root access => Grant it
7. Type "
props" command and hit enter
8. After MagiskHide-Props loaded successfully, type "
2" to chose 'Force BASIC key attestation' option
9. Type "
y" and hit enter for activating this option
10. Type "
y" and hit enter to rebot your phone
P.S.: To properly hide Magisk, go in Magisk Manager => Settings => "Hide Magisk Manager". If you get "can't install" error, you need to enable "Install via USB" option in "Developer options" menu (in phone's settings).
Then you can enable "Magisk Hide" feature to hide root for desired apps.
IMPORTANT: Do not forget to clear "All app data" of "Google Play store", "Google Play services" and "Google Service Framework" apps then reboot your device.
- 3 ] If you DON'T care about Widevine L1 certification, do these steps:
1.
IMPORTANT - Create a backup of your current persist partition: Download and flash this zip in TWRP =>
Persist_backup.zip
2. Download the latest "Global" fastboot ROM for your device =>
Here
3. Extract it and copy "persist.img" file to the internal memory of your phone (and make sure to put the file in root of internal storage rather than in any folder)
4. in TWRP: Go to "Advanced" => "Terminal"
5. Type:
Code:
dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist
6. Reboot your device and check SafetyNet results
8.
ONLY iIF YOU HAVE FINGERPRINT/CAMERA/SENSOR ISSUE => Download and flash this zip in TWRP then reboot your device =>
Persist_restore_v2.zip
IMPORTANT: Do not forget to clear "All app data" of "Google Play store", "Google Play services" and "Google Service Framework" apps then reboot your device.