diff --git a/interfaces/inner_api/app_manager/src/appmgr/ams_mgr_proxy.cpp b/interfaces/inner_api/app_manager/src/appmgr/ams_mgr_proxy.cpp index 87cf9afedc..3975a0ba43 100644 --- a/interfaces/inner_api/app_manager/src/appmgr/ams_mgr_proxy.cpp +++ b/interfaces/inner_api/app_manager/src/appmgr/ams_mgr_proxy.cpp @@ -398,14 +398,17 @@ int32_t AmsMgrProxy::KillApplication(const std::string &bundleName, const bool c if (!WriteInterfaceToken(data)) { return ERR_INVALID_DATA; } + if (!data.WriteString(bundleName)) { TAG_LOGE(AAFwkTag::APPMGR, "WriteString failed"); return ERR_FLATTEN_OBJECT; } + if (!data.WriteBool(clearPageStack)) { TAG_LOGE(AAFwkTag::APPMGR, "parcel bool failed"); return ERR_FLATTEN_OBJECT; } + int32_t ret = SendTransactCmd(static_cast(IAmsMgr::Message::KILL_APPLICATION), data, reply, option); if (ret != NO_ERROR) {