!7532 修正卸载删除失败打点

Merge pull request !7532 from amao/deleteP
This commit is contained in:
openharmony_ci 2024-11-22 04:23:15 +00:00 committed by Gitee
commit e1632aa8df
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 4 deletions

View File

@ -495,8 +495,6 @@ enum {
ERR_APPEXECFWK_INSTALL_EXISTED_WRITE_PARCEL_ERROR = 8522211,
ERR_APPEXECFWK_INSTALL_EXISTED_READ_PARCEL_ERROR = 8522212,
ERR_APPEXECFWK_INSTALL_EXISTED_ENTERPRISE_BUNDLE_NOT_ALLOWED = 8522213,
ERR_APPEXECFWK_UNINSTALL_BUNDLE_FILE_DELETE_FAILED = 8522214,
};
// Error code for Hidump

View File

@ -3612,7 +3612,7 @@ ErrCode BaseBundleInstaller::RemoveBundleDataDir(const InnerBundleInfo &info, bo
ErrCode result =
InstalldClient::GetInstance()->RemoveBundleDataDir(info.GetBundleName(), userId_,
info.GetApplicationBundleType() == BundleType::ATOMIC_SERVICE);
if (result != ERR_OK) {
if (result == ERR_APPEXECFWK_INSTALLD_REMOVE_DIR_FAILED) {
LOG_W(BMS_TAG_INSTALLER, "RemoveBundleDataDir failed %{public}d", result);
InstallParam installParam;
SendBundleSystemEvent(
@ -3620,7 +3620,9 @@ ErrCode BaseBundleInstaller::RemoveBundleDataDir(const InnerBundleInfo &info, bo
BundleEventType::UNINSTALL,
installParam,
sysEventInfo_.preBundleScene,
ERR_APPEXECFWK_UNINSTALL_BUNDLE_FILE_DELETE_FAILED);
ERR_APPEXECFWK_INSTALLD_REMOVE_DIR_FAILED);
} else {
CHECK_RESULT(result, "RemoveBundleDataDir failed %{public}d");
}
if (forException) {