Skip to content

Commit

Permalink
New beta update!
Browse files Browse the repository at this point in the history
  • Loading branch information
chiteroman committed Dec 1, 2023
1 parent 1c1d634 commit 59ff2ab
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ tasks.register<Zip>("zip") {
}

tasks.register<Zip>("zip-resetprop") {
dependsOn("copyFiles")
dependsOn("copyFiles-resetprop")

archiveFileName.set("PlayIntegrityFix-resetprop.zip")
destinationDirectory.set(project.rootDir.resolve("out"))
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

#define JSON_FILE_PATH "/data/adb/pif.json"

#define DEFAULT_FIRST_API_LEVEL "23"

static std::string FIRST_API_LEVEL, SECURITY_PATCH;

typedef void (*T_Callback)(void *, const char *, const char *, uint32_t);
Expand All @@ -26,7 +28,8 @@ static void modify_callback(void *cookie, const char *name, const char *value, u

if (prop.ends_with("api_level")) {
if (FIRST_API_LEVEL.empty()) {
return o_callback(cookie, name, "23", serial);
LOGD("[%s]: %s -> %s", name, value, DEFAULT_FIRST_API_LEVEL);
return o_callback(cookie, name, DEFAULT_FIRST_API_LEVEL, serial);
} else {
LOGD("[%s]: %s -> %s", name, value, FIRST_API_LEVEL.c_str());
return o_callback(cookie, name, FIRST_API_LEVEL.c_str(), serial);
Expand Down
2 changes: 1 addition & 1 deletion module/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fi

# Copy default pif.json if it doesn't exist.
if [ ! -e /data/adb/pif.json ]; then
mv -f $MODPATH/pif.json /data/adb/pif.json
cp -af $MODPATH/pif.json /data/adb/pif.json
ui_print "Moved default pif.json file!"
fi

Expand Down
2 changes: 1 addition & 1 deletion module/module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=playintegrityfix
name=Play Integrity Fix
version=v14.0-BETA
version=v14.0-BETA-2
versionCode=139
author=chiteroman
description=Fix CTS profile (SafetyNet) and DEVICE verdict (Play Integrity).
Expand Down
16 changes: 8 additions & 8 deletions module/pif.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"PRODUCT": "WW_Phone",
"DEVICE": "ASUS_Z012D",
"MANUFACTURER": "asus",
"BRAND": "asus",
"MODEL": "ASUS_Z012D",
"FINGERPRINT": "asus/WW_Phone/ASUS_Z012D:7.0/NRD90M/14.2015.1701.8-20170222:user/release-keys",
"SECURITY_PATCH": "2017-01-01",
"FIRST_API_LEVEL": null
"PRODUCT": "",
"DEVICE": "",
"MANUFACTURER": "",
"BRAND": "",
"MODEL": "",
"FINGERPRINT": "",
"SECURITY_PATCH": "",
"FIRST_API_LEVEL": ""
}
2 changes: 1 addition & 1 deletion module_resetprop/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fi

# Copy default pif.json if it doesn't exist.
if [ ! -e /data/adb/pif.json ]; then
mv -f $MODPATH/pif.json /data/adb/pif.json
cp -af $MODPATH/pif.json /data/adb/pif.json
ui_print "- Moved default pif.json file!"
fi

Expand Down
2 changes: 1 addition & 1 deletion module_resetprop/module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=playintegrityfix
name=Play Integrity Fix (resetprop)
version=v14.0-BETA-resetprop
version=v14.0-resetprop-BETA-2
versionCode=139
author=chiteroman
description=Fix CTS profile (SafetyNet) and DEVICE verdict (Play Integrity).
Expand Down
16 changes: 8 additions & 8 deletions module_resetprop/pif.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"PRODUCT": "WW_Phone",
"DEVICE": "ASUS_Z012D",
"MANUFACTURER": "asus",
"BRAND": "asus",
"MODEL": "ASUS_Z012D",
"FINGERPRINT": "asus/WW_Phone/ASUS_Z012D:7.0/NRD90M/14.2015.1701.8-20170222:user/release-keys",
"SECURITY_PATCH": "2017-01-01",
"FIRST_API_LEVEL": null
"PRODUCT": "",
"DEVICE": "",
"MANUFACTURER": "",
"BRAND": "",
"MODEL": "",
"FINGERPRINT": "",
"SECURITY_PATCH": "",
"FIRST_API_LEVEL": ""
}

0 comments on commit 59ff2ab

Please sign in to comment.