代码拉取完成,页面将自动刷新
diff --git a/services/bundlemgr/src/aot/aot_handler.cpp b/services/bundlemgr/src/aot/aot_handler.cpp
index bdc25988e..b23b7baba 100644
--- a/services/bundlemgr/src/aot/aot_handler.cpp
+++ b/services/bundlemgr/src/aot/aot_handler.cpp
@@ -213,10 +213,18 @@ void AOTHandler::HandleResetAOT(const std::string &bundleName, bool isAllBundle)
bundleNames = {bundleName};
}
std::for_each(bundleNames.cbegin(), bundleNames.cend(), [dataMgr](const auto &bundleToReset) {
- std::string removeDir = Constants::ARK_CACHE_PATH + bundleToReset;
- ErrCode ret = InstalldClient::GetInstance()->RemoveDir(removeDir);
- APP_LOGD("removeDir %{public}s, ret : %{public}d", removeDir.c_str(), ret);
+ std::string removeCacheDir = Constants::ARK_CACHE_PATH + bundleToReset;
+ ErrCode ret = InstalldClient::GetInstance()->RemoveDir(removeCacheDir);
+ APP_LOGD("removeCacheDir %{public}s, ret : %{public}d", removeCacheDir.c_str(), ret);
dataMgr->ResetAOTFlagsCommand(bundleToReset);
+ std::vector<int32_t> userIds = dataMgr->GetUserIds(bundleToReset);
+ for (int32_t userId : userIds) {
+ std::string removeApDir;
+ removeApDir.append(Constants::ARK_PROFILE_PATH).append(std::to_string(userId))
+ .append(Constants::PATH_SEPARATOR).append(bundleToReset);
+ ErrCode ret = InstalldClient::GetInstance()->CleanBundleDataDir(removeApDir);
+ APP_LOGD("removeApDir %{public}s, ret : %{public}d", removeApDir.c_str(), ret);
+ }
});
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。