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

Commit 7717a940 authored by Chienyuan's avatar Chienyuan
Browse files

Reset persist.bluetooth.factoryreset after config files deleted

Bug: 227431398
Tag: #refactor
Test: gd/cert/run
Change-Id: I2041444ec6c2eba943572d3a2d0e99215157e3f2
parent ef28bb11
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();