You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
verbose_logs is now verboseLogs
- differentiate all the ways from a BUILD_FIELD_ENTRY and a system.property_entry - probably better this way in the long run
This commit is contained in:
@@ -184,15 +184,15 @@ private:
|
|||||||
void readJson() {
|
void readJson() {
|
||||||
LOGD("JSON contains %d keys!", static_cast<int>(json.size()));
|
LOGD("JSON contains %d keys!", static_cast<int>(json.size()));
|
||||||
|
|
||||||
// Verbose logging if verbose_logs with level number is present
|
// Verbose logging if verboseLogs with level number is present
|
||||||
if (json.contains("verbose_logs")) {
|
if (json.contains("verboseLogs")) {
|
||||||
if (!json["verbose_logs"].is_null() && json["verbose_logs"].is_string() && json["verbose_logs"] != "") {
|
if (!json["verboseLogs"].is_null() && json["verboseLogs"].is_string() && json["verboseLogs"] != "") {
|
||||||
verboseLogs = stoi(json["verbose_logs"].get<std::string>());
|
verboseLogs = stoi(json["verboseLogs"].get<std::string>());
|
||||||
if (verboseLogs > 0) LOGD("Verbose logging (level %d) enabled!", verboseLogs);
|
if (verboseLogs > 0) LOGD("Verbose logging (level %d) enabled!", verboseLogs);
|
||||||
} else {
|
} else {
|
||||||
LOGD("Error parsing verbose_logs!");
|
LOGD("Error parsing verboseLogs!");
|
||||||
}
|
}
|
||||||
json.erase("verbose_logs");
|
json.erase("verboseLogs");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> eraseKeys;
|
std::vector<std::string> eraseKeys;
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ echo ' "*.security_patch": "'$SECURITY_PATCH'",';
|
|||||||
echo ' "*api_level": "'$DEVICE_INITIAL_SDK_INT'",';
|
echo ' "*api_level": "'$DEVICE_INITIAL_SDK_INT'",';
|
||||||
if [ "$ADVANCED" ]; then
|
if [ "$ADVANCED" ]; then
|
||||||
echo "$N // Advanced Settings";
|
echo "$N // Advanced Settings";
|
||||||
echo ' "verbose_logs": "0",';
|
echo ' "verboseLogs": "0",';
|
||||||
fi) | sed '$s/,/\n}/' > "$DIR/custom.pif.json";
|
fi) | sed '$s/,/\n}/' > "$DIR/custom.pif.json";
|
||||||
|
|
||||||
[ "$INSTALL" ] || cat "$DIR/custom.pif.json";
|
[ "$INSTALL" ] || cat "$DIR/custom.pif.json";
|
||||||
|
|||||||
Reference in New Issue
Block a user