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() {
|
||||
LOGD("JSON contains %d keys!", static_cast<int>(json.size()));
|
||||
|
||||
// Verbose logging if verbose_logs with level number is present
|
||||
if (json.contains("verbose_logs")) {
|
||||
if (!json["verbose_logs"].is_null() && json["verbose_logs"].is_string() && json["verbose_logs"] != "") {
|
||||
verboseLogs = stoi(json["verbose_logs"].get<std::string>());
|
||||
// Verbose logging if verboseLogs with level number is present
|
||||
if (json.contains("verboseLogs")) {
|
||||
if (!json["verboseLogs"].is_null() && json["verboseLogs"].is_string() && json["verboseLogs"] != "") {
|
||||
verboseLogs = stoi(json["verboseLogs"].get<std::string>());
|
||||
if (verboseLogs > 0) LOGD("Verbose logging (level %d) enabled!", verboseLogs);
|
||||
} else {
|
||||
LOGD("Error parsing verbose_logs!");
|
||||
LOGD("Error parsing verboseLogs!");
|
||||
}
|
||||
json.erase("verbose_logs");
|
||||
json.erase("verboseLogs");
|
||||
}
|
||||
|
||||
std::vector<std::string> eraseKeys;
|
||||
|
||||
@@ -119,7 +119,7 @@ echo ' "*.security_patch": "'$SECURITY_PATCH'",';
|
||||
echo ' "*api_level": "'$DEVICE_INITIAL_SDK_INT'",';
|
||||
if [ "$ADVANCED" ]; then
|
||||
echo "$N // Advanced Settings";
|
||||
echo ' "verbose_logs": "0",';
|
||||
echo ' "verboseLogs": "0",';
|
||||
fi) | sed '$s/,/\n}/' > "$DIR/custom.pif.json";
|
||||
|
||||
[ "$INSTALL" ] || cat "$DIR/custom.pif.json";
|
||||
|
||||
Reference in New Issue
Block a user