This commit is contained in:
chiteroman 2024-11-17 01:41:01 +01:00
parent e1ced606bf
commit 668a338d8a
10 changed files with 70 additions and 53 deletions

View File

@ -25,8 +25,8 @@ android {
applicationId = "es.chiteroman.playintegrityfix" applicationId = "es.chiteroman.playintegrityfix"
minSdk = 26 minSdk = 26
targetSdk = 35 targetSdk = 35
versionCode = 17900 versionCode = 18000
versionName = "v17.9" versionName = "v18.0"
multiDexEnabled = false multiDexEnabled = false
externalNativeBuild { externalNativeBuild {
@ -34,17 +34,18 @@ android {
arguments( arguments(
"-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_BUILD_TYPE=Release",
"-DANDROID_STL=none", "-DANDROID_STL=none",
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON" "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON"
) )
cFlags( cFlags(
"-std=gnu23", "-std=c23",
"-fvisibility=hidden", "-fvisibility=hidden",
"-fvisibility-inlines-hidden" "-fvisibility-inlines-hidden"
) )
cppFlags( cppFlags(
"-std=gnu++26", "-std=c++23",
"-fno-exceptions", "-fno-exceptions",
"-fno-rtti", "-fno-rtti",
"-fvisibility=hidden", "-fvisibility=hidden",
@ -73,7 +74,7 @@ android {
externalNativeBuild { externalNativeBuild {
cmake { cmake {
path = file("src/main/cpp/CMakeLists.txt") path = file("src/main/cpp/CMakeLists.txt")
version = "3.22.1" version = "3.31.0"
} }
} }
} }

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22.1) cmake_minimum_required(VERSION 3.31.0)
project("playintegrityfix") project("playintegrityfix")

View File

@ -11,8 +11,18 @@ If you are using TrickyStore and you have a valid keybox, but Strong
isn't passing, maybe you should change the ROM. isn't passing, maybe you should change the ROM.
Stock ROMs gives the best results. Stock ROMs gives the best results.
# v17.9 # v18.0
- Update fingerprint to latest beta (thanks to XiaomiEU devs) - Module won't delete ro.build.selinux prop, if you can't pass attestation, you can try deleting it
- Fix Shamiko whitelist bug manually.
- Fix bootloops on XiaomiEU custom roms More info here: https://github.com/chiteroman/PlayIntegrityFix/pull/470
- Update fingerprint to latest oriole (Pixel 6) beta rom
- Remove auto conflict apps (cause bootloops, just remove them manually)
- Improve Zygisk check
- Upgrade Gradle, AGP and CMake
- Enable LTO for Zygisk lib

View File

@ -1,6 +1,6 @@
#Thu Oct 03 16:27:21 CEST 2024 #Sun Nov 17 01:17:20 CET 2024
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

@ -6,20 +6,50 @@ if ! $BOOTMODE; then
ui_print "! Please install from Magisk / KernelSU / APatch app" ui_print "! Please install from Magisk / KernelSU / APatch app"
abort "*********************************************************" abort "*********************************************************"
fi fi
# Module requires Zygisk to work
if [ ! -d "/data/adb/modules/zygisksu" ]; then
if [ -d "/data/adb/magisk" ]; then
[ ! "$(magisk --sqlite "SELECT value FROM settings WHERE key='zygisk';")" == "value=0" ] || abort "! Zygisk is not enabled. Please, enable Zygisk in Magisk settings or install ZygiskNext or ReZygisk module."
else
abort "! Zygisk is not enabled. Please, enable Zygisk in Magisk settings or install ZygiskNext or ReZygisk module."
fi
fi
# Error on < Android 8 # Error on < Android 8
if [ "$API" -lt 26 ]; then if [ "$API" -lt 26 ]; then
abort "! You can't use this module on Android < 8.0" abort "! You can't use this module on Android < 8.0"
fi fi
check_zygisk() {
local ZYGISK_MODULE="/data/adb/modules/zygisksu"
local MAGISK_DIR="/data/adb/magisk"
local ZYGISK_MSG="Zygisk is not enabled. Please either:
- Enable Zygisk in Magisk settings
- Install ZygiskNext or ReZygisk module"
# Check if Zygisk module directory exists
if [ -d "$ZYGISK_MODULE" ]; then
return 0
fi
# If Magisk is installed, check Zygisk settings
if [ -d "$MAGISK_DIR" ]; then
# Query Zygisk status from Magisk database
local ZYGISK_STATUS
ZYGISK_STATUS=$(magisk --sqlite "SELECT value FROM settings WHERE key='zygisk';")
# Check if Zygisk is disabled
if [ "$ZYGISK_STATUS" = "value=0" ]; then
abort "$ZYGISK_MSG"
fi
else
abort "$ZYGISK_MSG"
fi
}
# Module requires Zygisk to work
check_zygisk
# safetynet-fix module is obsolete and it's incompatible with PIF
SNFix="/data/adb/modules/safetynet-fix"
if [ -d "$SNFix" ]; then
ui_print "! safetynet-fix module is obsolete and it's incompatible with PIF, it will be removed on next reboot"
ui_print "! Do not install it"
touch "$SNFix"/remove
fi
# playcurl warn # playcurl warn
if [ -d "/data/adb/modules/playcurl" ]; then if [ -d "/data/adb/modules/playcurl" ]; then
ui_print "! playcurl may overwrite fingerprint with invalid one, be careful!" ui_print "! playcurl may overwrite fingerprint with invalid one, be careful!"

View File

@ -1,7 +1,7 @@
id=playintegrityfix id=playintegrityfix
name=Play Integrity Fix name=Play Integrity Fix
version=v17.9 version=v18.0
versionCode=17900 versionCode=18000
author=chiteroman author=chiteroman
description=Universal modular fix for Play Integrity (and SafetyNet) on devices running Android 8-15 description=Universal modular fix for Play Integrity (and SafetyNet) on devices running Android 8-15
updateJson=https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/update.json updateJson=https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/update.json

View File

@ -1,7 +1,7 @@
{ {
"FINGERPRINT": "google/akita_beta/akita:15/AP41.240925.009/12534705:user/release-keys", "FINGERPRINT": "google/oriole_beta/oriole:15/BP11.241025.006/12620009:user/release-keys",
"MANUFACTURER": "Google", "MANUFACTURER": "Google",
"MODEL": "Pixel 8a", "MODEL": "Pixel 6",
"SECURITY_PATCH": "2024-10-05", "SECURITY_PATCH": "2024-11-05",
"DEVICE_INITIAL_SDK_INT": 21 "DEVICE_INITIAL_SDK_INT": 21
} }

View File

@ -12,14 +12,6 @@ else
fi fi
fi fi
# safetynet-fix module is obsolete and it's incompatible with PIF
SNFix="/data/adb/modules/safetynet-fix"
if [ -d "$SNFix" ]; then
touch "$SNFix"/remove
fi
rm -rf "$MODPATH"/system
# Conditional early sensitive properties # Conditional early sensitive properties
# Samsung # Samsung

View File

@ -39,19 +39,3 @@ resetprop_if_diff vendor.boot.vbmeta.device_state locked
# Other # Other
resetprop_if_diff sys.oem_unlock_allowed 0 resetprop_if_diff sys.oem_unlock_allowed 0
# Disable and uninstall conflict apps
APPS="
eu.xiaomi.module.inject
com.elitedevelopment.module
"
for APP in $APPS; do
if pm list packages | grep -q "$APP"; then
pm disable --user 0 "$APP"
pm disable "$APP"
pm uninstall --user 0 "$APP"
pm uninstall "$APP"
fi
done

View File

@ -1,6 +1,6 @@
{ {
"version": "v17.9", "version": "v18.0",
"versionCode": 17900, "versionCode": 18000,
"zipUrl": "https://github.com/chiteroman/PlayIntegrityFix/releases/download/v17.9/PlayIntegrityFix_v17.9.zip", "zipUrl": "https://github.com/chiteroman/PlayIntegrityFix/releases/download/v18.0/PlayIntegrityFix_v18.0.zip",
"changelog": "https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/changelog.md" "changelog": "https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/changelog.md"
} }