diff --git a/services/os_dependency/src/system_event_wrapper.cpp b/services/os_dependency/src/system_event_wrapper.cpp index 26f2d0c..ebb0914 100644 --- a/services/os_dependency/src/system_event_wrapper.cpp +++ b/services/os_dependency/src/system_event_wrapper.cpp @@ -44,7 +44,7 @@ void HandlePackageRemoved(const OHOS::AAFwk::Want &want, bool isSandBoxApp, OnPa } std::string owner = appId + '_' + std::to_string(appIndex); - std::string bundleName = want.GetStringParam(BUNDLE_NAME); + std::string bundleName = want.GetBundle(); if (onPackageRemoved != nullptr) { onPackageRemoved(userId, reinterpret_cast(owner.c_str()), owner.size(), reinterpret_cast(bundleName.c_str()), appIndex);