framework-level implementation to pass Play Integrity checks on Android ROMs.
- Bootloader Spoof (Broken TEE devices are supported too!)
Well.. we needed this now just to pass device integrity. - GMS & Vending Properties Spoof
Patches system properties to match certified devices for GMS & Vending. - Security Patch Spoof
Spoofs Security Patch so that it passes strong integrity. - Vending SDK 32 Spoof
Just incase. (this wont get enabled usually) - PIF.apk Updater
Automatically fetches the latest PIF.apk from this repository. - Direct keybox.xml and pif.json support
Auto switches to .xml and .json ifpersist.sys.oemports10t.utils.pif.autoupdateis false.
Clone this repository or download the ZIP archive and extract it.
sudo pacman -Syu --needed jre-openjdk zip unzip android-sdk-build-toolssudo dnf install -y java-latest-openjdk android-tools zip unzip
# or
sudo yum install -y java-17-openjdk android-tools zip unzipsudo apt-get update && sudo apt-get install -y openjdk-17-jre android-sdk-libsparse-utils android-sdk-platform-tools zip unzipsudo zypper install -y java-latest-openjdk android-tools zip unzip-
Import all files from:
ROM/system→ into your system partitionROM/vendor→ into your vendor partition
-
Add the required properties from
ROM/build.propto your device’sbuild.prop. -
Place
framework.jarinside theframework_patcherfolder. -
Run the patcher:
./patchframework.sh
-
Wait for the patching process to complete.
-
Replace your system’s
framework.jarwith the patched version. -
Remove any files in system/framework named:
boot-framework.*
Check this README. The commands and pif.json format is explained there.
- framework.jar patch script is only for Linux x86_64. Android is not supported.
- This implementation will be updated whenever Google changes Play Integrity.
PIF.apkis updated if keys/properties get banned, just runpif-updater.- Some of those Implementation Features is adjusted via PIF.apk bools/strings, so no need to worry about that.. i'll only enable and disable whats important for passing play integrity.
- On devices running SELinux Enforcing, you may need to integrate additional SELinux rules for
pif-updater. See the full guide below:
Refer to the above guide for complete steps to integrate the SELinux policy and file contexts required for pif-updater auto updater service in enforcing environments.