Fix integrity and root detection - yashaswee-exe/AndroidGuides GitHub Wiki
Recommended with KernelSU but tricks like HMAL, Tricky Store, IAmNotADeveloper and ProtectaAi should work with Magisk too as these are LsPosed Modules.
Fixing Integrity
Installing required modules:
- ReZygisk (Alternative to Zygisk Next)
- Play Integrity Fix
- Tricky Store
Configure PlayIntegrityFix
- Open Modules tab in KernelSU manager.
- On the PIF module, tap
Fetch pif.json
to retrieve the config file.
Configure TrickyStore
- Flash this module.
- Open Modules tab in KernelSU manager.
- Find tricky store in the modules list.
- Tap the Action/Open button.
- Tap the menu and select:
- Select All
- Deselect Unnecessary
- Set Valid Keybox
Set Security Patch Date
- Tap the above menu again.
- Select Set Security Patch.
- Tap Get Security Patch Date.
- Then tap Save.
If you are using any custom ROMs, make sure to disable any integrity fix spoof that comes with the ROM (if any).
Your integrity should be fixed now. You can check integrity using this app. You should see atleast 2 ticks in the legacy tab.
Hiding root detection:
-
Go to KernelSU settings and disable
Unmount modules by default
-
In KernelSU now search for all the apps that detects root. Click on
Custom
and then enableUnmount module
. -
Skip this if using ReZygisk, but if using Zygisk Next
Go to Zygisk Next and enableEnfore Denylist
IF APPS ARE STILL DETECTING ROOT/CRASHING
HideMyAppList
Some apps scan your installed app list for root managers & "suspicious" apps that uses root, you can setup Hide My App List:
If using Magisk, you can skip this and instead just rename the Magisk Manager package name from Magisk settings.
If you are using OxygenOS/ColorOS/RealmeUI, add KernelSU Manager in "Hide Apps" and this should hide it from all other apps.
Rest of you, follow the following steps:
- Install LsPosed.
- Install & enable Hide My App List in LSPosed and setup a blacklist template including apps such as root manager, LSPosed modules, Shizuku etc that might get flagged by banking/payments app.
- Go to HMAL > App manage > Select iMobile & other banking/payment app one by one > Enable Hide and select the template created in the previous step.
- Clear data of the apps that are failing, reboot, and try to setup again.
Spoofing unlocked bootloader status
Some apps also looks for unlocked bootloader status, adding apps in target.txt helps with this. Helps with WhatsApp, Axis Bank etc.
- Install Tricky Store
- Use a root file browser (like MT or Solid File Manager) and give it root access.
- Navigate to /data/adb/tricky_store/target.txt
- Edit target.txt file and paste package names of the app that usually detects root, followed by an exclamation mark (❗️)
- For example, I added the following in the target.txt file.
com.sbi.lotusintouch!
com.csam.icici.bank.imobile!
com.microsoft.teams!
com.axis.mobile!
com.whatsapp!
- Save the file, clear data of the app you are trying to fix, reboot & try again.
this guide.
If you are unable to setup WhatsApp, followProtectaAi
To fix root detection on KotakNEO, iPartner Pro, ICICI iMobile App follow this guide.
IAmNotADeveloper
If apps are giving you warnings/errors about developer options, USB debugging mode or wireless debugging mode.
NOTE: Only use this if you are seeing above mentioned warning/error or else skip it.
- Install LsPosed.
- Install IAmNotADeveloper Lsposed module.
- Go to LsPosed > IAmNotADeveloper > Select the apps that are giving you such warnings.
- Force stop the target apps and viola.