diff --git a/services/abilitymgr/src/ability_manager_stub.cpp b/services/abilitymgr/src/ability_manager_stub.cpp index 4c3df12173d60f20bc8143757b291543b98bc762..608839fb8db82ed59b2fdfca0c3f0ffbf1e8151d 100644 --- a/services/abilitymgr/src/ability_manager_stub.cpp +++ b/services/abilitymgr/src/ability_manager_stub.cpp @@ -2702,6 +2702,7 @@ int AbilityManagerStub::RegisterRemoteOnListenerInner(MessageParcel &data, Messa return ERR_NULL_OBJECT; } int32_t result = RegisterOnListener(type, listener); + reply.WriteInt32(result); TAG_LOGI(AAFwkTag::ABILITYMGR, "result=%{public}d", result); return result; } @@ -2719,6 +2720,7 @@ int AbilityManagerStub::RegisterRemoteOffListenerInner(MessageParcel &data, Mess return ERR_NULL_OBJECT; } int32_t result = RegisterOffListener(type, listener); + reply.WriteInt32(result); TAG_LOGI(AAFwkTag::ABILITYMGR, "result=%{public}d", result); return result; } @@ -4250,7 +4252,7 @@ int32_t AbilityManagerStub::IsEmbeddedOpenAllowedInner(MessageParcel &data, Mess std::string appId = data.ReadString(); auto result = IsEmbeddedOpenAllowed(callerToken, appId); - if (!reply.WriteInt32(result)) { + if (!reply.WriteBool(result)) { TAG_LOGE(AAFwkTag::ABILITYMGR, "write result fail"); return ERR_INVALID_VALUE; }