Skip to content

Commit

Permalink
v18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chiteroman committed Nov 17, 2024
1 parent e1ced60 commit 668a338
Show file tree
Hide file tree
Showing 10 changed files with 70 additions and 53 deletions.
13 changes: 7 additions & 6 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,27 @@ android {
applicationId = "es.chiteroman.playintegrityfix"
minSdk = 26
targetSdk = 35
versionCode = 17900
versionName = "v17.9"
versionCode = 18000
versionName = "v18.0"
multiDexEnabled = false

externalNativeBuild {
cmake {
arguments(
"-DCMAKE_BUILD_TYPE=Release",
"-DANDROID_STL=none",
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON"
)

cFlags(
"-std=gnu23",
"-std=c23",
"-fvisibility=hidden",
"-fvisibility-inlines-hidden"
)

cppFlags(
"-std=gnu++26",
"-std=c++23",
"-fno-exceptions",
"-fno-rtti",
"-fvisibility=hidden",
Expand Down Expand Up @@ -73,7 +74,7 @@ android {
externalNativeBuild {
cmake {
path = file("src/main/cpp/CMakeLists.txt")
version = "3.22.1"
version = "3.31.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22.1)
cmake_minimum_required(VERSION 3.31.0)

project("playintegrityfix")

Expand Down
18 changes: 14 additions & 4 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Stock ROMs gives the best results.

# v17.9
# v18.0

- Update fingerprint to latest beta (thanks to XiaomiEU devs)
- Fix Shamiko whitelist bug
- Fix bootloops on XiaomiEU custom roms
- Module won't delete ro.build.selinux prop, if you can't pass attestation, you can try deleting it
manually.
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
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Oct 03 16:27:21 CEST 2024
#Sun Nov 17 01:17:20 CET 2024
distributionBase=GRADLE_USER_HOME
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
zipStorePath=wrapper/dists
46 changes: 38 additions & 8 deletions module/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,50 @@ if ! $BOOTMODE; then
ui_print "! Please install from Magisk / KernelSU / APatch app"
abort "*********************************************************"
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
if [ "$API" -lt 26 ]; then
abort "! You can't use this module on Android < 8.0"
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
if [ -d "/data/adb/modules/playcurl" ]; then
ui_print "! playcurl may overwrite fingerprint with invalid one, be careful!"
Expand Down
4 changes: 2 additions & 2 deletions module/module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=playintegrityfix
name=Play Integrity Fix
version=v17.9
versionCode=17900
version=v18.0
versionCode=18000
author=chiteroman
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
6 changes: 3 additions & 3 deletions module/pif.json
Original file line number Diff line number Diff line change
@@ -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",
"MODEL": "Pixel 8a",
"SECURITY_PATCH": "2024-10-05",
"MODEL": "Pixel 6",
"SECURITY_PATCH": "2024-11-05",
"DEVICE_INITIAL_SDK_INT": 21
}
8 changes: 0 additions & 8 deletions module/post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ else
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

# Samsung
Expand Down
16 changes: 0 additions & 16 deletions module/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,3 @@ resetprop_if_diff vendor.boot.vbmeta.device_state locked

# Other
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
6 changes: 3 additions & 3 deletions update.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "v17.9",
"versionCode": 17900,
"zipUrl": "https://github.com/chiteroman/PlayIntegrityFix/releases/download/v17.9/PlayIntegrityFix_v17.9.zip",
"version": "v18.0",
"versionCode": 18000,
"zipUrl": "https://github.com/chiteroman/PlayIntegrityFix/releases/download/v18.0/PlayIntegrityFix_v18.0.zip",
"changelog": "https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/changelog.md"
}

0 comments on commit 668a338

Please sign in to comment.