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

Commit 03c287c2 authored by Myles Watson's avatar Myles Watson Committed by Gerrit Code Review
Browse files

Merge "Reset persist.bluetooth.factoryreset after config files deleted"

parents f74c267d 7717a940
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();