Searched refs:miscBlockDev (Results 1 – 2 of 2) sorted by relevance
35 auto miscBlockDev = Updater::GetBlockDeviceByMountPoint(MISC_PATH); in FactoryReset() local36 ENGINE_LOGI("FactoryReset::misc path : %{public}s", miscBlockDev.c_str()); in FactoryReset()37 …ENGINE_CHECK(!miscBlockDev.empty(), miscBlockDev = MISC_FILE, "cannot get block device of partitio… in FactoryReset()38 …int32_t ret = RebootAndCleanUserData(miscBlockDev, CMD_WIPE_DATA) ? INT_CALL_SUCCESS : INT_CALL_FA… in FactoryReset()
78 auto miscBlockDev = GetBlockDeviceByMountPoint(MISC_PATH); in ClearMisc() local79 if (miscBlockDev.empty()) { in ClearMisc()81 miscBlockDev = MISC_FILE; in ClearMisc()83 LOG(INFO) << "ClearMisc::misc path : " << miscBlockDev; in ClearMisc()84 auto fp = std::unique_ptr<FILE, decltype(&fclose)>(fopen(miscBlockDev.c_str(), "rb+"), fclose); in ClearMisc()