Installing Magisk and Play Integrity Fix


Last inject version is 2025.06.24. That is the problem.
Also, uninstall update of google play services and google play store and block system update google setup
Maybe google again change rules of wallet. This fix all banks and in this moment google wallet.
Change google Wallet with alternative
Not totally true... I've upgraded the latest xiaomi.eu rom for xiaomi 15 ultra. 2025.07.01 is installed... And cannot be downgraded.
 

Attachments

  • Screenshot_2025-07-14-22-08-54-374_com.miui.securitycenter-edit.jpg
    Screenshot_2025-07-14-22-08-54-374_com.miui.securitycenter-edit.jpg
    198.9 KB · Views: 45
  • Screenshot_2025-07-14-22-10-50-698_com.miui.packageinstaller-edit.jpg
    Screenshot_2025-07-14-22-10-50-698_com.miui.packageinstaller-edit.jpg
    177.3 KB · Views: 44
from 4pda gpay works as normal without strong integnity

Modules:
PlayIntegrityFork v13
TrickyStore
TrickyStore Addon
Zygisk Next
YuriKey v1.6

any root file editor (i use MiXplorer)

Step-by-step setup:

1. Activate PlayIntegrityFork:

Open the module and click "Action" to initialize.

2. Configure YuriKey:
Open YuriKey Manager. First, click the button under the YuriKey module on the left — this will install the necessary files
Wait until the process is complete
Then open the Menu +
tab Click in turn:
- Fix HMA detection
- Fix LSposed detection (2)
- Fix PIF detection (2)
- Fix Recovery file detection

Reboot your device.

Mandatory step! Run the command in Termux:

Code:
su -c sh /data/adb/modules/playintegrityfix/autopif2.sh -a -p

If you skip it, the modules will not work!


3. Editing PIF::
/data/adb/modules/playintegrityfix/custom.pif.json

Find:
"spoofProvider": "1"

Replace with:
"spoofProvider": "0"

4. Clear Data::
Google Wallet
Google Play Services
Google Play Store
Google Services Framework

Reboot your device.
This is no longer working for me. I guess it is time to switch to apatch
 
Hey guys,

Somehow I make it working. I used APatch solution from hogarstrasni and did not cleard Google Play Services, only Wallet and Play Store. At first it didn't work whatever I did. Then I disabled Eu.Xiaomi.module.inject in apps and add Play Integrity Fix to APatch. In meantime I reset my phone few times, few more cleard all data in Wallet and Play Store (but still not in Google Play Services) and suddenly it starts working! Phone now have only "meets basic integrity" but Google Pay wokrs anyway. Revoult and McDonalds app also working. Only what is not working for now is Wizzair app which I really need becouse next week I will fly with them. Google Pay works with NFC and also by www.
 

Attachments

  • Screenshot_2025-07-15-15-20-21-771_com.google.android.apps.walletnfcrel.jpg
    Screenshot_2025-07-15-15-20-21-771_com.google.android.apps.walletnfcrel.jpg
    229.3 KB · Views: 29
  • Screenshot_2025-07-15-15-20-07-914_me.bmax.apatch.jpg
    Screenshot_2025-07-15-15-20-07-914_me.bmax.apatch.jpg
    165.4 KB · Views: 28
  • Screenshot_2025-07-15-15-19-53-705_gr.nikolasspyr.integritycheck.jpg
    Screenshot_2025-07-15-15-19-53-705_gr.nikolasspyr.integritycheck.jpg
    151.3 KB · Views: 30
Hey guys,

Somehow I make it working. I used APatch solution from hogarstrasni and did not cleard Google Play Services, only Wallet and Play Store. At first it didn't work whatever I did. Then I disabled Eu.Xiaomi.module.inject in apps and add Play Integrity Fix to APatch. In meantime I reset my phone few times, few more cleard all data in Wallet and Play Store (but still not in Google Play Services) and suddenly it starts working! Phone now have only "meets basic integrity" but Google Pay wokrs anyway. Revoult and McDonalds app also working. Only what is not working for now is Wizzair app which I really need becouse next week I will fly with them. Google Pay works with NFC and also by www.
With Magisk I am also getting only basic but Google pay is working. Revolut is not working, but other apps that detected root are not detecting root anymore (Tuya Smart and SPACES)

I am using Magisk v29, Play integrity fork v13, Tricky Store, Yuri keybox manager, Zygisk Next and Zygisk Assistant.
 

Attachments

  • 1000066838.jpg
    1000066838.jpg
    188 KB · Views: 27
I understand that the theme was created before the module was released, but even after the release, and after installing the current version of the module, it seems that it does not work as expected. I do not see any normal instructions on how this module works, how stable is it and whether it should be used at all, or is it better to freeze it and use old versions (modules for magisk)?
Google made the changes after that last module. It's never going to work again the way it did before. That's the feeling I'm getting. I can't go back to stock, the Mix 4 has limited options.
Back to stock Chinese ROM and no Google services, or Global ROM and unlocked bootloader.
 
With Shamiko v1.2.5, Play Integrity Fix v3.3, Tricky Store v1.3.0, Yuri Keybox Manager v1.7, Zygisk LSPosed v1.10.2, Zygisk Assistant v. 2.1.4, and Zygisk Next v1.2.9, I'm getting Strong Integrity and Key Attestation did show Bootloader Locked but Revolut still didn't work. I don't know what changed but Key Attestion shows Bootloader Unlocked now.

I tried adding Hide My Applist and ticked Revolut but that made it worse and Revolut wouldn't even load and showed a little square and a message that said "Your environment is not secure" instead until I disabled HMA. Same when I tried IAmNotADeveloper. Basically if I enable any module in Zygisk LSPosed this happens.

EDIT: I was using HMA all wrong. After reading this guide https://github.com/mModule/guide_hma/blob/master/Install-HMA.md I'm using it properly now, and Revolut loads normally again but still detects something it doesn't like. I need to remember how I hid the unlocked bootloader before and try Revolut again once that's hidden.

I tried this Magisk module to hide the unlocked bootloader and added Key Attestation to service.sh, but it still shows it as unlocked so that doesn't work.

EDIT2: I saw that TrickyStore is meant to hide the bootloader status, so I checked the /data/adb/trickystore/target.txt file and I added io.github.vvb2060.keyattestation to it and now Key Attestation shows Bootloader Locked again. That file already had com.revolut.revolut in it though, so it should be hiding the bootloader status from Revolut, but it's detecting something.
 
Last edited:
With Shamiko v1.2.5, Play Integrity Fix v3.3, Tricky Store v1.3.0, Yuri Keybox Manager v1.7, Zygisk LSPosed v1.10.2, Zygisk Assistant v. 2.1.4, and Zygisk Next v1.2.9, I'm getting Strong Integrity and Key Attestation did show Bootloader Locked but Revolut still didn't work. I don't know what changed but Key Attestion shows Bootloader Unlocked now.

I tried adding Hide My Applist and ticked Revolut but that made it worse and Revolut wouldn't even load and showed a little square and a message that said "Your environment is not secure" instead until I disabled HMA. Same when I tried IAmNotADeveloper. Basically if I enable any module in Zygisk LSPosed this happens.

EDIT: I was using HMA all wrong. After reading this guide https://github.com/mModule/guide_hma/blob/master/Install-HMA.md I'm using it properly now, and Revolut loads normally again but still detects something it doesn't like. I need to remember how I hid the unlocked bootloader before and try Revolut again once that's hidden.

I tried this Magisk module to hide the unlocked bootloader and added Key Attestation to service.sh, but it still shows it as unlocked so that doesn't work.
use my solution. Everything work. Even with last 2025.07.01 Eu.xiaomi.module.inject
I test minute ago with lastest 2.0.203 firmware and everything works ok
Revolut see magisk no matter what hiding mechanism you use. Apatch have different vector of hidding
I have all 3 test including strong. Google Play Store is Certified. Revolut is working and all banks from Croatia is working
 
Google made the changes after that last module. It's never going to work again the way it did before. That's the feeling I'm getting. I can't go back to stock, the Mix 4 has limited options.
Back to stock Chinese ROM and no Google services, or Global ROM and unlocked bootloader.
Try my solution
 
  • Like
Reactions: Smaritz
With Magisk I am also getting only basic but Google pay is working. Revolut is not working, but other apps that detected root are not detecting root anymore (Tuya Smart and SPACES)

I am using Magisk v29, Play integrity fork v13, Tricky Store, Yuri keybox manager, Zygisk Next and Zygisk Assi

With Magisk I am also getting only basic but Google pay is working. Revolut is not working, but other apps that detected root are not detecting root anymore (Tuya Smart and SPACES)

I am using Magisk v29, Play integrity fork v13, Tricky Store, Yuri keybox manager, Zygisk Next and Zygisk Assistant.
Do not disable Xiaomi inject module. He is critical for this solution.
Patch boot.img only with apatch
copy img to pc
restart mobile in fastboot

from pc type
fastboot boot apatch(filename continues with numbers at end).img
Start Apatch on mobile
Directly patch boot.img

After that follow my method and revolut will work, all test will passed and Google play Store is Certified
 
  • Like
Reactions: Gershy13
use my solution. Everything work. Even with last 2025.07.01 Eu.xiaomi.module.inject
I test minute ago with lastest 2.0.203 firmware and everything works ok
Revolut see magisk no matter what hiding mechanism you use. Apatch have different vector of hidding
I have all 3 test including strong. Google Play Store is Certified. Revolut is working and all banks from Croatia is working
Thanks. I patched my boot.img with Apatch and flashed that with fastboot flash boot_ab filename and Revolut seems to be working now, at least I got to the screen where it asks me to enter my phone number. :)

I already had the APM modules installed from Magisk, as described in my previous post, so I didn't change those or uninstall Hide My Apps, but I'm not going to mess with it whilst it's working.
 

hogarstrasni

do you know how to make Wizz Air app working? Beside this now I have working. Should I try somehow with Hide My App or do something with APatch again? If you please guide me. Also like I said before I have disabled Eu.Xiaomi.module.inject - should I turn it on again? Im afraid if I make any changes then I will fault with working Google Pay/Wallet.
 

hogarstrasni

do you know how to make Wizz Air app working? Beside this now I have working. Should I try somehow with Hide My App or do something with APatch again? If you please guide me. Also like I said before I have disabled Eu.Xiaomi.module.inject - should I turn it on again? Im afraid if I make any changes then I will fault with working Google Pay/Wallet.
It's worth trying Hide My Apps and follow this guide to make sure you've configured it correctly https://github.com/mModule/guide_hma/blob/master/Install-HMA.md

If it still doesn't work you could try this module https://github.com/MhmRdd/NoHello
 

hogarstrasni

do you know how to make Wizz Air app working? Beside this now I have working. Should I try somehow with Hide My App or do something with APatch again? If you please guide me. Also like I said before I have disabled Eu.Xiaomi.module.inject - should I turn it on again? Im afraid if I make any changes then I will fault with working Google Pay/Wallet.
Its working without problems on my phone with today firmware
Follow my solution. only 2 app
On disabled eu.xiaomi.module.inject, dont work anything

Xioami 12TPro Ditting HyperOS 2.0.203
 
Final Solution
Everything Works, All banks including Revolut works
Pass all levels including Strong integrity

Needed:
1. Last Version of Eu.Xiaomi.module.inject (last 06.24.2025), must be enabled
2. APatch
3. Tricky Store (last 1.30)
4. Tricky Store Addon (Last 4.0)
5. ReZygisk (Last 1.0.0.RC2)

Importmant
Do not Install Any Version or revision Play Integrity Fix, Fork, etc
Only What is needed


Reboot after everything installed

Setup
0. Uninstall Magisk
1.Install APatch (its based on Magisk)
2 Update Apatch
3. In Apatch install ReZygisk, Tricky Store and Tricky Store AddOn
4. Reboot
5. Open Apatch, Then in app Tricky Store,
select App for banks (Google Wallet, Revolut mHPB, etc)
Select Valid Keybox,
"Save" (blue text),
Select Security Patch, (get from menu),
Save,
"Save" (blue text)
6. Clear all Data for Google Play Service, Wallet, Google play store, Google Service Framework
7. Reboot

That all, you got 3 level

PS
If Valid Keybox is rewoked, everything works, do not do anything
In case of problem, uninstall updates for Google play store, Google play services. In Google setup block automatic update of system files.
Then clear all data for Google play services, Wallet, Google play store, Google service framework
Somentimes helps to add in tricky store some app of google and xiaomi account
Tried all things, several times, different ways, clearing cache, uninstall updates, reboots etc. But all ending in same situation... It passes checks at first... But then few seconds later after close and restart gpay it's failes integrity...

Maybe it's also Google account related?
 

Attachments

  • Screenshot_2025-07-15-22-30-21-221_com.google.android.apps.walletnfcrel-edit.jpg
    Screenshot_2025-07-15-22-30-21-221_com.google.android.apps.walletnfcrel-edit.jpg
    202.8 KB · Views: 33
  • Screenshot_2025-07-15-22-32-35-045_com.google.android.apps.walletnfcrel-edit.jpg
    Screenshot_2025-07-15-22-32-35-045_com.google.android.apps.walletnfcrel-edit.jpg
    216.3 KB · Views: 32
Final Solution
Everything Works, All banks including Revolut works
Pass all levels including Strong integrity

Needed:
1. Last Version of Eu.Xiaomi.module.inject (last 06.24.2025), must be enabled
2. APatch
3. Tricky Store (last 1.30)
4. Tricky Store Addon (Last 4.0)
5. ReZygisk (Last 1.0.0.RC2)

Importmant
Do not Install Any Version or revision Play Integrity Fix, Fork, etc
Only What is needed


Reboot after everything installed

Setup
0. Uninstall Magisk
1.Install APatch (its based on Magisk)
2 Update Apatch
3. In Apatch install ReZygisk, Tricky Store and Tricky Store AddOn
4. Reboot
5. Open Apatch, Then in app Tricky Store,
select App for banks (Google Wallet, Revolut mHPB, etc)
Select Valid Keybox,
"Save" (blue text),
Select Security Patch, (get from menu),
Save,
"Save" (blue text)
6. Clear all Data for Google Play Service, Wallet, Google play store, Google Service Framework
7. Reboot

That all, you got 3 level

PS
If Valid Keybox is rewoked, everything works, do not do anything
In case of problem, uninstall updates for Google play store, Google play services. In Google setup block automatic update of system files.
Then clear all data for Google play services, Wallet, Google play store, Google service framework
Somentimes helps to add in tricky store some app of google and xiaomi account
Can I use this guide even if I never rooted my phone?
 
  • Like
Reactions: Smaritz
Can I use this guide even if I never rooted my phone?
No... but when its not rooted you should have no issue with gpay or integrity isnt? Or what is the issue you want to use apps to hide root?

You need rooted phone to use APatch so method will not work anyway.