mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
@@ -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<uint32_t>(IAmsMgr::Message::KILL_APPLICATION), data, reply, option);
|
||||
if (ret != NO_ERROR) {
|
||||
|
||||
Reference in New Issue
Block a user