Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c1b3aef authored by Myles Watson's avatar Myles Watson Committed by Automerger Merge Worker
Browse files

Merge "Reset persist.bluetooth.factoryreset after config files deleted" am: 03c287c2

parents 7c616bb9 03c287c2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -156,8 +156,10 @@ void StorageModule::Start() {
  std::lock_guard<std::recursive_mutex> lock(mutex_);
  std::string file_source;
  if (os::GetSystemProperty(kFactoryResetProperty) == "true") {
    LOG_INFO("%s is true, delete config files", kFactoryResetProperty.c_str());
    LegacyConfigFile::FromPath(config_file_path_).Delete();
    LegacyConfigFile::FromPath(config_backup_path_).Delete();
    os::SetSystemProperty(kFactoryResetProperty, "false");
  }
  if (!is_config_checksum_pass(kConfigFileComparePass)) {
    LegacyConfigFile::FromPath(config_file_path_).Delete();