Installing Magisk and Play Integrity Fix


do it exactly how my tutorial said. I do it today on Xiaomi 14T Pro with original rom and Xiaomi 13TPro with eu rom.
look what I disabled. I use simple keyboard.
 
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
Is there any video or detail guidelines, I'm not tech expert but I'm willing to try
 
  • Like
Reactions: levendis32
For Rooted users.

APatch with following APModules Installed (Should work with Magisk and KernelSU* too):
1. Play Integrity Fork
2. Tricky Store
3. Tricky Addon
4. ReZygisk
Install the above modules and restart.

1. Disable eu.xiaomi.module.inject and restart.
2. Clear data: Google Wallet, Google Play Services, Google Play Store and Google Services Framework.
3. Press Action button in Play Integrity Fork.
4. Press Open in Tricky Store > Menu > Sellect All > Menu > Deselect Unnecessary > Save > Menu > Set Valid Keybox > Menu > Set Security Patch > Get Security Patch Date > Save.
5. In Termux app run the follow commands:

Code:
su
Code:
cd /data/adb/modules/playintegrityfix/
Code:
chmod +x ./autopif2.sh
Code:
sh autopif2.sh --strong

6. Restart

Google Wallet and Revolut works.

*As about Revolut since latest update it doesnt work if you got KernelSU manager app installed. APatch looks undetectable for now.

Alternative to Google Wallet if you are not rooted is Curve Pay, seems it works with just basic integrity
Thanks mate, you made my day!
 
APatch , Tricky Store , Tricky Store Addon, ReZygisk are just apps that I can't download and make them work or they something that I need to patch somehow on my device?
 
It would be great if the developers of the xiaomi.eu ROM include it in a future update
They will never include because it requires usage of leaked private keys from the real phone vendors.
Dealing with that is at least, forging someone else's digital property (and authority)

Besides, whenever Google finds one of those keyboxes being used massively for spoofing Play Integrity, Google revokes that KB.
Taking in account the vast number of Xiaomi.eu users, Google would weekly or so revoke (at first, shadowly, then publicly) the keyboxes and Xiaomi.eu would constantly need to find a new leaked KBs and to distribute the new versions of injector modules

But more likely, Google might take legal action against the Xiaomi.eu group

---

Be aware, this is all about the Google's Play Integrity framework and rules (new, strengthen requirements since the May 20 for Android 13+ ROMs). Formally, only not-modded phones, with the official vendors ROMs, and of course, locked Bootloaders are entitled to pass Play Integrity (as that, they pass Strong, Device and Basic Integrity tiers)

Whoever unlock his Bootloader and flashes custom ROMs (Xiaomi.eu is not the official Xiaomi ROM - Xiaomi EEA/Global ROMs are official from Xiaomi and you update them, for the legit devices without the need to ever unlock the BL) must be aware of the consequences. There are methods to spoof, but users are left to deal with that on their own responsibility - IMO, Xiaomi.eu will never promote them and specially

It's not Xiaomi or specially Xiaomi.eu specific. It applies to all Android phones (A13+ phones).
For lower than A13 requirements are generally weaker but formally that should be also the stock ROM and the locked BL (Google's problems with A9-A12 and lower are some devices, even some PIxel devices that were released with the non-compliant KeyMasters (and before A9, the requirements were even weaker), hence they cannot impose the same, strict Play Integrity requirements
 
Last edited:
For Rooted users.

APatch with following APModules Installed (Should work with Magisk and KernelSU* too):
1. Play Integrity Fork
2. Tricky Store
3. Tricky Addon
4. ReZygisk
Install the above modules and restart.

1. Disable eu.xiaomi.module.inject and restart.
2. Clear data: Google Wallet, Google Play Services, Google Play Store and Google Services Framework.
3. Press Action button in Play Integrity Fork.
4. Press Open in Tricky Store > Menu > Sellect All > Menu > Deselect Unnecessary > Save > Menu > Set Valid Keybox > Menu > Set Security Patch > Get Security Patch Date > Save.
5. In Termux app run the follow commands:

Code:
su
Code:
cd /data/adb/modules/playintegrityfix/
Code:
chmod +x ./autopif2.sh
Code:
sh autopif2.sh --strong

6. Restart

Google Wallet and Revolut works.

*As about Revolut since latest update it doesnt work if you got KernelSU manager app installed. APatch looks undetectable for now.

Alternative to Google Wallet if you are not rooted is Curve Pay, seems it works with just basic integrity
Unfortunately it doesn't work anymore, I just redid all the steps.

Am I the only one?
 
I feel people is just overcomplicating this "integrity" drama.

If using Magisk (OG MAGISK ONLY, NO KITSUNE, NO HALF-ASSED FORKS)
- Activate Zygisk, update to latest canary (Manager and Magisk!), hide magisk app (settings in Manager app), configure denylist (just pick Google Play Store and Play Services)
- Install Tricky Store + Tricky Addon Module
- Configure Tricky Addon (Deselect unnecessary, select from deny list, set valid keybox, get security patch ver, touch save after every step)
- That should be enogh.

If you still can't get Strong integrity, install this:

In KernelSU, APatch, it's basically the same, except that you need a standalone Zygisk solution (Zygisk-NEXT, ReZygisk, NeoZygisk), and you cannot hide the app and there's no denylist)

Don't install the three modules at once, try first with Tricky Store+Addon module, and if you can't get the desired integrity verdicts, then install PIF Next.
 
today google make some s**t with integrity and wallet and play store. if you dont wanna use their setup choice, they reset play store every 2 hours
 
Last edited:
I am done chasing integrity fix solutions.... All the solutions here doesn't work anymore.

I give up...
I have rooted to my 13Pro to flash xiaomi.eu Roms mainly....
Going to make some effort to flash back to stock rom and lock the bootloader.
 
  • Like
Reactions: Smaritz
I am done chasing integrity fix solutions.... All the solutions here doesn't work anymore.

I give up...
I have rooted to my 13Pro to flash xiaomi.eu Roms mainly....
Going to make some effort to flash back to stock rom and lock the bootloader.
The enshittification of Google is thundering on rapidly.
 
  • Like
Reactions: Wackid
In my last angry attempt i have manage to get it working again.

I have promised myself it's the last time. So i guess soon...

Edit.... I did spoof playstore haha so playstore not working... So yeah stock phone here we come.


1000104365.jpg
 
Last edited:
In KernelSU, APatch, it's basically the same, except ..., and you cannot hide the app and there's no denylist)
That's not true. At least in APatch YOU CAN hide modifications FROM the apps (Deny list in Magisk does not hide certain apps but hides 'root' from the apps: to hide some apps [from the other apps] use HMA module like in Magisk)

And you can do the same in APatch, just it's called Exclude modifications

Open APatch app, open Superuser tab, enable Show system apps, Search for eg Google Play Services, long press and instead of enabling Superuser (root) for that app, enable (like the 'opposite') Exclude modifications (from that app)

You can't go down to particular processes (like to GMS unstable in Magisk Deny list), you hide/exclude from the whole app (like from the whole Google Play Services)

There is no Save button and if you reopen Superuser tab you won't see your changes on top of the list.
Go back (even force close APatch app), reopen Superuser tab, ree enable Show system apps and you'll see them

To take in effect, you don't need to reboot

Screenshot attached
 

Attachments

  • Screenshot_2025-08-12-22-01-22-875_me.bmax.apatch.jpg
    Screenshot_2025-08-12-22-01-22-875_me.bmax.apatch.jpg
    362.7 KB · Views: 31
  • Screenshot_2025-08-12-23-32-23-952_gr.nikolasspyr.integritycheck.jpg
    Screenshot_2025-08-12-23-32-23-952_gr.nikolasspyr.integritycheck.jpg
    142.1 KB · Views: 24
Last edited:
  • Like
Reactions: Eclipse1991
And BTW, a tip regarding to updating Xiaomi.eu

I do with APatch, but similarly should work with Magisk (yeah, long ago when using Magisk I did similarly)

Download Xiaomi.eu, unzip, find boot.img (nowadays it's in the Images folder), copy the boot.img out and upload to the phone.
Or, I download by the phone (by enabling Desktop site in browser) and use eg MiXPlorer to unzip on the phone

Open APatch app, Home tab, Install and Select a boot image to patch.
In Magisk the wording are maybe slightly different but it's also on the main screen, Install, Patch ... on top

Navigate to your extracted boot.img and patch

Find the patched img (Download folder), rename it to the same/original name boot.img

Now copy your patched and renamed boot.img into the unzipped Xiaomi.eu installation folder, to the same place (paste over) the original boot.img

Re-zip (make sure to include everything and do not introduce an additional folder in the zip file, structure of the zip must remain as it originally was).
If not sure, open your ZIP file and compare against the original ZIP file

Now flash that modified installation zip by TWRP or Mi Flash

Or flash (you don't need to re-zip) from the unzipped (and modified folder) by running the appropriate Windows/Mac OS/Linux script on the PC

When you reboot, you will immediately have everything as previously, root, modules, Superuser settings, everything.

No need to 'root' and setup modules, er, from the scratch
 
Last edited: