This commit is contained in:
chiteroman 2024-07-27 11:19:10 +02:00
parent 21cea1de9f
commit 8fd2d24760
7 changed files with 36 additions and 30 deletions

View File

@ -25,24 +25,28 @@ android {
applicationId = "es.chiteroman.playintegrityfix" applicationId = "es.chiteroman.playintegrityfix"
minSdk = 26 minSdk = 26
targetSdk = 35 targetSdk = 35
versionCode = 16800 versionCode = 16900
versionName = "v16.8" versionName = "v16.9"
multiDexEnabled = false multiDexEnabled = false
externalNativeBuild { externalNativeBuild {
cmake { cmake {
arguments( arguments(
"-DANDROID_STL=none",
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
"-DANDROID_CPP_FEATURES=no-rtti no-exceptions",
"-DCMAKE_BUILD_TYPE=MinSizeRel", "-DCMAKE_BUILD_TYPE=MinSizeRel",
"-DCMAKE_CXX_STANDARD=23", "-DANDROID_STL=none",
"-DCMAKE_C_STANDARD=23", "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
"-DCMAKE_CXX_STANDARD_REQUIRED=ON", )
"-DCMAKE_C_STANDARD_REQUIRED=ON",
"-DCMAKE_VISIBILITY_INLINES_HIDDEN=ON", cFlags(
"-DCMAKE_CXX_VISIBILITY_PRESET=hidden", "-std=c23", "-fvisibility=hidden", "-fvisibility-inlines-hidden"
"-DCMAKE_C_VISIBILITY_PRESET=hidden" )
cppFlags(
"-std=c++23",
"-fno-exceptions",
"-fno-rtti",
"-fvisibility=hidden",
"-fvisibility-inlines-hidden"
) )
} }
} }

View File

@ -17,7 +17,7 @@
#define PIF_JSON_DEFAULT "/data/adb/modules/playintegrityfix/pif.json" #define PIF_JSON_DEFAULT "/data/adb/modules/playintegrityfix/pif.json"
static std::string DEVICE_INITIAL_SDK_INT = "21"; static std::string DEVICE_INITIAL_SDK_INT;
static std::string SECURITY_PATCH; static std::string SECURITY_PATCH;
static std::string BUILD_ID; static std::string BUILD_ID;

View File

@ -156,11 +156,6 @@ public final class EntryPoint {
while (it.hasNext()) { while (it.hasNext()) {
String key = it.next(); String key = it.next();
if ("SPOOF_PACKAGE_MANAGER".equals(key)) {
spoofPackageManager = true;
continue;
}
String value = ""; String value = "";
try { try {
value = jsonObject.getString(key); value = jsonObject.getString(key);
@ -170,6 +165,11 @@ public final class EntryPoint {
if (TextUtils.isEmpty(value)) continue; if (TextUtils.isEmpty(value)) continue;
if ("SPOOF_PACKAGE_MANAGER".equals(key) && Boolean.parseBoolean(value)) {
spoofPackageManager = true;
continue;
}
Field field = getFieldByName(key); Field field = getFieldByName(key);
if (field == null) continue; if (field == null) continue;

View File

@ -7,7 +7,9 @@ If not, try removing /data/adb/pif.json file.
Donations: Donations:
https://www.paypal.com/paypalme/chiteroman https://www.paypal.com/paypalme/chiteroman
# v16.8 NOTE: If your ROM is signed with test-keys, modify "SPOOF_PACKAGE_MANAGER" value in /data/adb/modules/playintegrityfix/pif.json and set to "true".
Remember to kill com.google.android.gms.unstable process after this!
- Fix bootloops # v16.9
- Add json key to enable/disable package manager spoofing
- Update fingerprint, Device verdict passing again ✔

View File

@ -1,7 +1,7 @@
id=playintegrityfix id=playintegrityfix
name=Play Integrity Fix name=Play Integrity Fix
version=v16.8 version=v16.9
versionCode=16800 versionCode=16900
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,13 +1,13 @@
{ {
"ID": "AP31.240517.022", "ID": "AP31.240617.009",
"BRAND": "google", "BRAND": "google",
"DEVICE": "husky", "DEVICE": "husky",
"FINGERPRINT": "google/husky_beta/husky:15/AP31.240517.022/11948202:user/release-keys", "FINGERPRINT": "google/husky_beta/husky:15/AP31.240617.009/12094726:user/release-keys",
"MANUFACTURER": "Google", "MANUFACTURER": "Google",
"MODEL": "Pixel 8 Pro", "MODEL": "Pixel 8 Pro",
"PRODUCT": "husky_beta", "PRODUCT": "husky_beta",
"SECURITY_PATCH": "2024-06-05", "SECURITY_PATCH": "2024-07-05",
"DEVICE_INITIAL_SDK_INT": 21, "DEVICE_INITIAL_SDK_INT": 21,
"SPOOF_PACKAGE_MANAGER": true, "SPOOF_PACKAGE_MANAGER": false,
"DEBUG": false "DEBUG": false
} }

View File

@ -1,6 +1,6 @@
{ {
"version": "v16.8", "version": "v16.9",
"versionCode": 16800, "versionCode": 16900,
"zipUrl": "https://github.com/chiteroman/PlayIntegrityFix/releases/download/v16.8/PlayIntegrityFix_v16.8.zip", "zipUrl": "https://github.com/chiteroman/PlayIntegrityFix/releases/download/v16.9/PlayIntegrityFix_v16.9.zip",
"changelog": "https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/changelog.md" "changelog": "https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/changelog.md"
} }