You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
Promote experimental spoofVendingSdk to Advanced Settings
- many are experimenting and using it already across forks anyway - proper documentation to come for next stable release with known issues and potential use cases
This commit is contained in:
@@ -156,7 +156,6 @@ if [ -f "$MIGRATE" ]; then
|
|||||||
OLDJSON=/data/adb/modules/playintegrityfix/custom.pif.json;
|
OLDJSON=/data/adb/modules/playintegrityfix/custom.pif.json;
|
||||||
if [ -f "$OLDJSON" ]; then
|
if [ -f "$OLDJSON" ]; then
|
||||||
grep -q '//"\*.security_patch"' $OLDJSON && PATCH_COMMENT=1;
|
grep -q '//"\*.security_patch"' $OLDJSON && PATCH_COMMENT=1;
|
||||||
grep -q "spoofVendingSdk" $OLDJSON && PATCH_VENDING="spoofVendingSdk";
|
|
||||||
grep -qE "verboseLogs|VERBOSE_LOGS" $OLDJSON && ARGS="-a";
|
grep -qE "verboseLogs|VERBOSE_LOGS" $OLDJSON && ARGS="-a";
|
||||||
fi;
|
fi;
|
||||||
[ -f /data/adb/tricky_store/security_patch.txt ] && unset PATCH_COMMENT;
|
[ -f /data/adb/tricky_store/security_patch.txt ] && unset PATCH_COMMENT;
|
||||||
@@ -164,10 +163,9 @@ if [ -f "$MIGRATE" ]; then
|
|||||||
rm -f custom.pif.json;
|
rm -f custom.pif.json;
|
||||||
sh $MIGRATE -i $ARGS pif.json;
|
sh $MIGRATE -i $ARGS pif.json;
|
||||||
if [ -n "$ARGS" ]; then
|
if [ -n "$ARGS" ]; then
|
||||||
[ "$PATCH_VENDING" ] && sed -i 's;\(.*verboseLogs\); "spoofVendingSdk": "0",\n\1;' custom.pif.json;
|
|
||||||
grep_json() { [ -f "$2" ] && grep -m1 "$1" $2 | cut -d\" -f4; }
|
grep_json() { [ -f "$2" ] && grep -m1 "$1" $2 | cut -d\" -f4; }
|
||||||
verboseLogs=$(grep_json "VERBOSE_LOGS" $OLDJSON);
|
verboseLogs=$(grep_json "VERBOSE_LOGS" $OLDJSON);
|
||||||
ADVSETTINGS="spoofBuild spoofProps spoofProvider spoofSignature $PATCH_VENDING verboseLogs";
|
ADVSETTINGS="spoofBuild spoofProps spoofProvider spoofSignature spoofVendingSdk verboseLogs";
|
||||||
for SETTING in $ADVSETTINGS; do
|
for SETTING in $ADVSETTINGS; do
|
||||||
eval [ -z \"\$$SETTING\" ] \&\& $SETTING=$(grep_json "$SETTING" $OLDJSON);
|
eval [ -z \"\$$SETTING\" ] \&\& $SETTING=$(grep_json "$SETTING" $OLDJSON);
|
||||||
eval TMPVAL=\$$SETTING;
|
eval TMPVAL=\$$SETTING;
|
||||||
|
|||||||
@@ -114,12 +114,13 @@ if [ -z "$DEVICE_INITIAL_SDK_INT" -o "$DEVICE_INITIAL_SDK_INT" = "null" ]; then
|
|||||||
DEVICE_INITIAL_SDK_INT=25;
|
DEVICE_INITIAL_SDK_INT=25;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
ADVSETTINGS="spoofBuild spoofProps spoofProvider spoofSignature verboseLogs";
|
ADVSETTINGS="spoofBuild spoofProps spoofProvider spoofSignature spoofVendingSdk verboseLogs";
|
||||||
|
|
||||||
spoofBuild=1;
|
spoofBuild=1;
|
||||||
spoofProps=1;
|
spoofProps=1;
|
||||||
spoofProvider=1;
|
spoofProvider=1;
|
||||||
spoofSignature=0;
|
spoofSignature=0;
|
||||||
|
spoofVendingSdk=0;
|
||||||
verboseLogs=0;
|
verboseLogs=0;
|
||||||
|
|
||||||
if [ -f "$OUT" ]; then
|
if [ -f "$OUT" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user