From ce0bee435418344200e244b60cbcf88326fde0cd Mon Sep 17 00:00:00 2001 From: songjindian Date: Tue, 27 Aug 2024 09:18:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AF=E5=88=A0=E6=8D=A2=E8=A1=8C=E5=9B=9E?= =?UTF-8?q?=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: songjindian --- interfaces/inner_api/app_manager/src/appmgr/ams_mgr_proxy.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) {