want.GetBundle();

Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
This commit is contained in:
zhang-wenzhi821 2024-05-11 16:49:02 +08:00
parent 980074fa91
commit 33c7c8d2bb

View File

@ -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<const uint8_t *>(owner.c_str()), owner.size(),
reinterpret_cast<const uint8_t *>(bundleName.c_str()), appIndex);