mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-19 03:22:39 +02:00
New beta update!
This commit is contained in:
parent
1c1d63492f
commit
59ff2abd77
@ -5,7 +5,7 @@
|
|||||||
<option name="linkedExternalProjectsSettings">
|
<option name="linkedExternalProjectsSettings">
|
||||||
<GradleProjectSettings>
|
<GradleProjectSettings>
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
<option name="gradleJvm" value="jbr-17" />
|
||||||
<option name="modules">
|
<option name="modules">
|
||||||
<set>
|
<set>
|
||||||
<option value="$PROJECT_DIR$" />
|
<option value="$PROJECT_DIR$" />
|
||||||
|
@ -111,7 +111,7 @@ tasks.register<Zip>("zip") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<Zip>("zip-resetprop") {
|
tasks.register<Zip>("zip-resetprop") {
|
||||||
dependsOn("copyFiles")
|
dependsOn("copyFiles-resetprop")
|
||||||
|
|
||||||
archiveFileName.set("PlayIntegrityFix-resetprop.zip")
|
archiveFileName.set("PlayIntegrityFix-resetprop.zip")
|
||||||
destinationDirectory.set(project.rootDir.resolve("out"))
|
destinationDirectory.set(project.rootDir.resolve("out"))
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#define JSON_FILE_PATH "/data/adb/pif.json"
|
#define JSON_FILE_PATH "/data/adb/pif.json"
|
||||||
|
|
||||||
|
#define DEFAULT_FIRST_API_LEVEL "23"
|
||||||
|
|
||||||
static std::string FIRST_API_LEVEL, SECURITY_PATCH;
|
static std::string FIRST_API_LEVEL, SECURITY_PATCH;
|
||||||
|
|
||||||
typedef void (*T_Callback)(void *, const char *, const char *, uint32_t);
|
typedef void (*T_Callback)(void *, const char *, const char *, uint32_t);
|
||||||
@ -26,7 +28,8 @@ static void modify_callback(void *cookie, const char *name, const char *value, u
|
|||||||
|
|
||||||
if (prop.ends_with("api_level")) {
|
if (prop.ends_with("api_level")) {
|
||||||
if (FIRST_API_LEVEL.empty()) {
|
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 {
|
} else {
|
||||||
LOGD("[%s]: %s -> %s", name, value, FIRST_API_LEVEL.c_str());
|
LOGD("[%s]: %s -> %s", name, value, FIRST_API_LEVEL.c_str());
|
||||||
return o_callback(cookie, name, FIRST_API_LEVEL.c_str(), serial);
|
return o_callback(cookie, name, FIRST_API_LEVEL.c_str(), serial);
|
||||||
|
@ -5,7 +5,7 @@ fi
|
|||||||
|
|
||||||
# Copy default pif.json if it doesn't exist.
|
# Copy default pif.json if it doesn't exist.
|
||||||
if [ ! -e /data/adb/pif.json ]; then
|
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!"
|
ui_print "Moved default pif.json file!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
id=playintegrityfix
|
id=playintegrityfix
|
||||||
name=Play Integrity Fix
|
name=Play Integrity Fix
|
||||||
version=v14.0-BETA
|
version=v14.0-BETA-2
|
||||||
versionCode=139
|
versionCode=139
|
||||||
author=chiteroman
|
author=chiteroman
|
||||||
description=Fix CTS profile (SafetyNet) and DEVICE verdict (Play Integrity).
|
description=Fix CTS profile (SafetyNet) and DEVICE verdict (Play Integrity).
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"PRODUCT": "WW_Phone",
|
"PRODUCT": "",
|
||||||
"DEVICE": "ASUS_Z012D",
|
"DEVICE": "",
|
||||||
"MANUFACTURER": "asus",
|
"MANUFACTURER": "",
|
||||||
"BRAND": "asus",
|
"BRAND": "",
|
||||||
"MODEL": "ASUS_Z012D",
|
"MODEL": "",
|
||||||
"FINGERPRINT": "asus/WW_Phone/ASUS_Z012D:7.0/NRD90M/14.2015.1701.8-20170222:user/release-keys",
|
"FINGERPRINT": "",
|
||||||
"SECURITY_PATCH": "2017-01-01",
|
"SECURITY_PATCH": "",
|
||||||
"FIRST_API_LEVEL": null
|
"FIRST_API_LEVEL": ""
|
||||||
}
|
}
|
@ -5,7 +5,7 @@ fi
|
|||||||
|
|
||||||
# Copy default pif.json if it doesn't exist.
|
# Copy default pif.json if it doesn't exist.
|
||||||
if [ ! -e /data/adb/pif.json ]; then
|
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!"
|
ui_print "- Moved default pif.json file!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
id=playintegrityfix
|
id=playintegrityfix
|
||||||
name=Play Integrity Fix (resetprop)
|
name=Play Integrity Fix (resetprop)
|
||||||
version=v14.0-BETA-resetprop
|
version=v14.0-resetprop-BETA-2
|
||||||
versionCode=139
|
versionCode=139
|
||||||
author=chiteroman
|
author=chiteroman
|
||||||
description=Fix CTS profile (SafetyNet) and DEVICE verdict (Play Integrity).
|
description=Fix CTS profile (SafetyNet) and DEVICE verdict (Play Integrity).
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"PRODUCT": "WW_Phone",
|
"PRODUCT": "",
|
||||||
"DEVICE": "ASUS_Z012D",
|
"DEVICE": "",
|
||||||
"MANUFACTURER": "asus",
|
"MANUFACTURER": "",
|
||||||
"BRAND": "asus",
|
"BRAND": "",
|
||||||
"MODEL": "ASUS_Z012D",
|
"MODEL": "",
|
||||||
"FINGERPRINT": "asus/WW_Phone/ASUS_Z012D:7.0/NRD90M/14.2015.1701.8-20170222:user/release-keys",
|
"FINGERPRINT": "",
|
||||||
"SECURITY_PATCH": "2017-01-01",
|
"SECURITY_PATCH": "",
|
||||||
"FIRST_API_LEVEL": null
|
"FIRST_API_LEVEL": ""
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user