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:
osm0sis
2024-02-07 22:53:13 -04:00
parent 686af702dc
commit 1a7c5103d1
2 changed files with 7 additions and 7 deletions

View File

@@ -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;

View File

@@ -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";