Skip to content

Commit

Permalink
Release v14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chiteroman committed Dec 3, 2023
1 parent c1f1c77 commit 8bba7b8
Show file tree
Hide file tree
Showing 17 changed files with 65 additions and 33 deletions.
35 changes: 15 additions & 20 deletions app/src/main/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,32 +235,27 @@ static void companion(int fd) {
fclose(dex);
}

if (std::filesystem::exists(JSON_FILE_PATH)) {
FILE *json = fopen(JSON_FILE_PATH, "rb");
FILE *json;

if (json) {
fseek(json, 0, SEEK_END);
jsonSize = ftell(json);
fseek(json, 0, SEEK_SET);
if (std::filesystem::exists(JSON_FILE_PATH)) {

jsonVector.resize(jsonSize);
fread(jsonVector.data(), 1, jsonSize, json);
json = fopen(JSON_FILE_PATH, "rb");

fclose(json);
}
} else if (std::filesystem::exists(JSON_TEMP_FILE)) {
FILE *json = fopen(JSON_TEMP_FILE, "rb");
} else {
std::filesystem::remove(JSON_TEMP_FILE);
system("/data/adb/modules/playintegrityfix/curl -o /data/adb/modules/playintegrityfix/temp https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/pif.json");
json = fopen(JSON_TEMP_FILE, "rb");
}

if (json) {
fseek(json, 0, SEEK_END);
jsonSize = ftell(json);
fseek(json, 0, SEEK_SET);
if (json) {
fseek(json, 0, SEEK_END);
jsonSize = ftell(json);
fseek(json, 0, SEEK_SET);

jsonVector.resize(jsonSize);
fread(jsonVector.data(), 1, jsonSize, json);
jsonVector.resize(jsonSize);
fread(jsonVector.data(), 1, jsonSize, json);

fclose(json);
}
fclose(json);
}

write(fd, &dexSize, sizeof(long));
Expand Down
16 changes: 12 additions & 4 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@ We have a Telegram channel!
If you want to share your knowledge join:
https://t.me/playintegrityfix

# v14.0
# v14.1

Google banned v13.9 fingerprint.
If you don't want to use your custom props to spoof, remove the file.

Now you must search a valid fingerprint, you must modify /data/adb/pif.json file to spoof a valid certified device.
On terminal as root: rm -f /data/adb/pif.json

Good luck.
I will try to update the fingerprint when Google bans it.

Instead reinstalling the module you only need to kill GMS unstable process.

On terminal as root: killall com.google.android.gms.unstable

When installing this version you must reboot the device.

Any problem report on GitHub :)
Binary file added module/bin/arm64-v8a/curl
Binary file not shown.
Binary file added module/bin/armeabi-v7a/curl
Binary file not shown.
Binary file added module/bin/x86/curl
Binary file not shown.
Binary file added module/bin/x86_64/curl
Binary file not shown.
12 changes: 12 additions & 0 deletions module/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ if [ "$API" -lt 26 ]; then
abort "!!! You can't use this module on Android < 8.0"
fi

# Check custom pif.json
if [ -e /data/adb/pif.json ]; then
ui_print "!!! WARNING, You are using a custom pif.json. Module will use it."
ui_print "!!! If you want to use recommended one, remove this file."
ui_print "!!! To remove it, execute as root: rm -f /data/adb/pif.json"
fi

# SafetyNet-Fix module is obsolete and it's incompatible with PIF.
if [ -d /data/adb/modules/safetynet-fix ]; then
touch /data/adb/modules/safetynet-fix/remove
Expand All @@ -13,3 +20,8 @@ fi
if [ -d /data/adb/modules/MagiskHidePropsConf ]; then
ui_print "!!! WARNING, 'MagiskHidePropsConf' module may cause issues with PIF"
fi

# curl
mv -f $MODPATH/bin/$ABI/curl $MODPATH
rm -rf $MODPATH/bin
set_perm $MODPATH/curl root root 777
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=v14.0
versionCode=14000
version=v14.1
versionCode=14100
author=chiteroman
description=Fix CTS profile (SafetyNet) and DEVICE verdict (Play Integrity).
updateJson=https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/update.json
3 changes: 3 additions & 0 deletions module/pif.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// THIS IS A TEMPLATE, IF YOU WANT TO USE YOUR CUSTOM PROPS
// MOVE THIS FILE TO /data/adb/pif.json AND MODIFY IT
// REMOVE THIS LINES
{
"PRODUCT": "",
"DEVICE": "",
Expand Down
Binary file added module_resetprop/bin/arm64-v8a/curl
Binary file not shown.
Binary file added module_resetprop/bin/armeabi-v7a/curl
Binary file not shown.
Binary file added module_resetprop/bin/x86/curl
Binary file not shown.
Binary file added module_resetprop/bin/x86_64/curl
Binary file not shown.
15 changes: 13 additions & 2 deletions module_resetprop/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ if [ "$API" -lt 26 ]; then
abort "!!! You can't use this module on Android < 8.0"
fi

# Check custom pif.json
if [ -e /data/adb/pif.json ]; then
ui_print "!!! WARNING, You are using a custom pif.json. Module will use it."
ui_print "!!! If you want to use recommended one, remove this file."
ui_print "!!! To remove it, execute as root: rm -f /data/adb/pif.json"
fi

# SafetyNet-Fix module is obsolete and it's incompatible with PIF.
if [ -d /data/adb/modules/safetynet-fix ]; then
touch /data/adb/modules/safetynet-fix/remove
Expand All @@ -14,7 +21,11 @@ if [ -d /data/adb/modules/MagiskHidePropsConf ]; then
ui_print "!!! WARNING, MagiskHidePropsConf module may cause issues with PIF"
fi

# use our resetprop
# curl & resetprop
mv -f $MODPATH/bin/$ABI/curl $MODPATH
mv -f $MODPATH/bin/$ABI/resetprop $MODPATH

rm -rf $MODPATH/bin
set_perm $MODPATH/resetprop root root 755

set_perm $MODPATH/curl root root 777
set_perm $MODPATH/resetprop root root 777
4 changes: 2 additions & 2 deletions module_resetprop/module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=playintegrityfix
name=Play Integrity Fix (resetprop)
version=v14.0-resetprop
versionCode=14000
version=v14.1-resetprop
versionCode=14100
author=chiteroman
description=Fix CTS profile (SafetyNet) and DEVICE verdict (Play Integrity).
updateJson=https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/update.json
3 changes: 3 additions & 0 deletions module_resetprop/pif.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// THIS IS A TEMPLATE, IF YOU WANT TO USE YOUR CUSTOM PROPS
// MOVE THIS FILE TO /data/adb/pif.json AND MODIFY IT
// REMOVE THIS LINES
{
"PRODUCT": "",
"DEVICE": "",
Expand Down
6 changes: 3 additions & 3 deletions update.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "v14.0",
"versionCode": 14000,
"zipUrl": "https://github.com/chiteroman/PlayIntegrityFix/releases/download/v14.0/PlayIntegrityFix_v14.0.zip",
"version": "v14.1",
"versionCode": 14100,
"zipUrl": "https://github.com/chiteroman/PlayIntegrityFix/releases/download/v14.1/PlayIntegrityFix_v14.1.zip",
"changelog": "https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/changelog.md"
}

0 comments on commit 8bba7b8

Please sign in to comment.