diff --git a/core/bus_center/ipc/standard_system/src/bus_center_client_proxy_standard.cpp b/core/bus_center/ipc/standard_system/src/bus_center_client_proxy_standard.cpp index f4d8ff6ce9bff7ee1e74c2232afbc4e0edda6da9..c6318beae2954abe91706a85ad9f1bf87730aca8 100644 --- a/core/bus_center/ipc/standard_system/src/bus_center_client_proxy_standard.cpp +++ b/core/bus_center/ipc/standard_system/src/bus_center_client_proxy_standard.cpp @@ -74,6 +74,10 @@ int32_t BusCenterClientProxy::OnJoinLNNResult(void *addr, uint32_t addrTypeLen, return SOFTBUS_ERR; } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteUint32(addrTypeLen)) { SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "write addr type length failed"); return SOFTBUS_ERR; @@ -116,6 +120,10 @@ int32_t BusCenterClientProxy::OnLeaveLNNResult(const char *networkId, int retCod return SOFTBUS_ERR; } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteCString(networkId)) { SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "write networkId failed"); return SOFTBUS_ERR; @@ -150,6 +158,10 @@ int32_t BusCenterClientProxy::OnNodeOnlineStateChanged(bool isOnline, void *info return SOFTBUS_ERR; } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteBool(isOnline)) { SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "write online state failed"); return SOFTBUS_ERR; @@ -189,6 +201,10 @@ int32_t BusCenterClientProxy::OnNodeBasicInfoChanged(void *info, uint32_t infoTy } MessageParcel data; SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "OnNodeBasicInfoChanged type: %d", type); + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteInt32(type)) { SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "write type failed"); return SOFTBUS_ERR; @@ -227,6 +243,10 @@ int32_t BusCenterClientProxy::OnTimeSyncResult(const void *info, uint32_t infoTy return SOFTBUS_ERR; } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteUint32(infoTypeLen)) { SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "write info length failed"); return SOFTBUS_ERR; diff --git a/core/discovery/ipc/standard/src/disc_client_proxy_standard.cpp b/core/discovery/ipc/standard/src/disc_client_proxy_standard.cpp index 5870817c81d2a971b16c011345480148c7d7aa8b..20a9e26dd177521268a27ee7a3bef7e707aa211d 100644 --- a/core/discovery/ipc/standard/src/disc_client_proxy_standard.cpp +++ b/core/discovery/ipc/standard/src/disc_client_proxy_standard.cpp @@ -53,6 +53,10 @@ void DiscClientProxy::OnDeviceFound(const DeviceInfo *deviceInfo) } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_DISC, SOFTBUS_LOG_ERROR, "OnDeviceFound write InterfaceToken failed!"); + return; + } data.WriteBuffer(deviceInfo, sizeof(DeviceInfo)); MessageParcel reply; @@ -73,6 +77,10 @@ void DiscClientProxy::OnDiscoverFailed(int subscribeId, int failReason) } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_DISC, SOFTBUS_LOG_ERROR, "OnDiscoverFailed write InterfaceToken failed!"); + return; + } data.WriteInt32(subscribeId); data.WriteInt32(failReason); @@ -94,6 +102,10 @@ void DiscClientProxy::OnDiscoverySuccess(int subscribeId) } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_DISC, SOFTBUS_LOG_ERROR, "OnDiscoverySuccess write InterfaceToken failed!"); + return; + } data.WriteInt32(subscribeId); MessageParcel reply; @@ -114,6 +126,10 @@ void DiscClientProxy::OnPublishSuccess(int publishId) } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_DISC, SOFTBUS_LOG_ERROR, "OnPublishSuccess write InterfaceToken failed!"); + return; + } data.WriteInt32(publishId); MessageParcel reply; @@ -134,6 +150,10 @@ void DiscClientProxy::OnPublishFail(int publishId, int reason) } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_DISC, SOFTBUS_LOG_ERROR, "OnPublishFail write InterfaceToken failed!"); + return; + } data.WriteInt32(publishId); data.WriteInt32(reason); diff --git a/core/frame/standard/init/src/softbus_server_stub.cpp b/core/frame/standard/init/src/softbus_server_stub.cpp index ad37a4a8a21a116b9d658426e9c46515dbfc0a95..0e879d1421380b170cfb1754e6e12d416206bcee 100644 --- a/core/frame/standard/init/src/softbus_server_stub.cpp +++ b/core/frame/standard/init/src/softbus_server_stub.cpp @@ -122,6 +122,10 @@ int32_t SoftBusServerStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) { SoftBusLog(SOFTBUS_LOG_COMM, SOFTBUS_LOG_INFO, "SoftBusServerStub::OnReceived, code = %u", code); + if (data.ReadInterfaceToken() != GetDescriptor()) { + SoftBusLog(SOFTBUS_LOG_COMM, SOFTBUS_LOG_ERROR, "SOFTBUS_SERVER_NOT_INIT ReadInterfaceToken failed!"); + return SOFTBUS_ERR; + } auto itFunc = memberFuncMap_.find(code); if (itFunc != memberFuncMap_.end()) { auto memberFunc = itFunc->second; diff --git a/core/transmission/ipc/standard/src/trans_client_proxy_standard.cpp b/core/transmission/ipc/standard/src/trans_client_proxy_standard.cpp index c92528bac94515b053937bc9e4e3c36bce2102ce..8ec8864365cb9babc51dd27f77a3149277ee1fff 100644 --- a/core/transmission/ipc/standard/src/trans_client_proxy_standard.cpp +++ b/core/transmission/ipc/standard/src/trans_client_proxy_standard.cpp @@ -30,6 +30,10 @@ int32_t TransClientProxy::OnChannelOpened(const char *sessionName, const Channel return SOFTBUS_ERR; } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteCString(sessionName)) { SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "write addr type length failed"); return SOFTBUS_ERR; @@ -116,6 +120,10 @@ int32_t TransClientProxy::OnChannelOpenFailed(int32_t channelId, int32_t channel } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteInt32(channelId)) { SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "write channel id failed"); return SOFTBUS_ERR; @@ -147,6 +155,10 @@ int32_t TransClientProxy::OnChannelClosed(int32_t channelId, int32_t channelType } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteInt32(channelId)) { SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "write channel id failed"); return SOFTBUS_ERR; @@ -179,6 +191,10 @@ int32_t TransClientProxy::OnChannelMsgReceived(int32_t channelId, int32_t channe } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteInt32(channelId)) { SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "write channel id failed"); return SOFTBUS_ERR; diff --git a/sdk/bus_center/ipc/standard/src/bus_center_server_proxy_standard.cpp b/sdk/bus_center/ipc/standard/src/bus_center_server_proxy_standard.cpp index ab22b829b23ee1b361f40dbda2257c147e92441a..7db21ee528418fe82cbe90f206945cfade2a55e7 100644 --- a/sdk/bus_center/ipc/standard/src/bus_center_server_proxy_standard.cpp +++ b/sdk/bus_center/ipc/standard/src/bus_center_server_proxy_standard.cpp @@ -120,6 +120,10 @@ int32_t BusCenterServerProxy::JoinLNN(const char *pkgName, void *addr, uint32_t } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "JoinLNN write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteCString(pkgName)) { SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "JoinLNN write client name failed!"); return SOFTBUS_ERR; @@ -158,6 +162,10 @@ int32_t BusCenterServerProxy::LeaveLNN(const char *pkgName, const char *networkI } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "LeaveLNN write InterfaceToken failed!"); + return SOFTBUS_ERR; + } int32_t ret = data.WriteCString(pkgName); if (!ret) { SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "LeaveLNN write client name failed!"); @@ -197,6 +205,10 @@ int32_t BusCenterServerProxy::GetAllOnlineNodeInfo(const char *pkgName, void **i } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "GetAllOnlineNodeInfo write InterfaceToken failed!"); + return SOFTBUS_ERR; + } int32_t ret = data.WriteCString(pkgName); if (!ret) { SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "GetAllOnlineNodeInfo write client name failed!"); @@ -250,6 +262,10 @@ int32_t BusCenterServerProxy::GetLocalDeviceInfo(const char *pkgName, void *info } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "GetLocalDeviceInfo write InterfaceToken failed!"); + return SOFTBUS_ERR; + } int32_t ret = data.WriteCString(pkgName); if (!ret) { SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "GetLocalDeviceInfo write client name failed!"); @@ -291,6 +307,10 @@ int32_t BusCenterServerProxy::GetNodeKeyInfo(const char *pkgName, const char *ne } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "GetNodeKeyInfo write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteCString(pkgName)) { SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "GetNodeKeyInfo write client name failed!"); return SOFTBUS_ERR; @@ -342,6 +362,10 @@ int32_t BusCenterServerProxy::StartTimeSync(const char *pkgName, const char *tar } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "StartTimeSync write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteCString(pkgName)) { SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "StartTimeSync write client name failed!"); return SOFTBUS_ERR; @@ -385,6 +409,10 @@ int32_t BusCenterServerProxy::StopTimeSync(const char *pkgName, const char *targ } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "StopTimeSync write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteCString(pkgName)) { SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "StopTimeSync write client name failed!"); return SOFTBUS_ERR; diff --git a/sdk/discovery/ipc/standard/src/disc_server_proxy_standard.cpp b/sdk/discovery/ipc/standard/src/disc_server_proxy_standard.cpp index e5c7e019fcd16634a31c5acf3c2a7602fa611eef..b39176f8b5135a86bf6620f9a7be6339e09a8786 100644 --- a/sdk/discovery/ipc/standard/src/disc_server_proxy_standard.cpp +++ b/sdk/discovery/ipc/standard/src/disc_server_proxy_standard.cpp @@ -50,7 +50,10 @@ int32_t DiscServerProxy::StartDiscovery(const char *pkgName, const SubscribeInfo } MessageParcel data; - + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_DISC, SOFTBUS_LOG_ERROR, "StartDiscovery write InterfaceToken failed!"); + return SOFTBUS_ERR; + } data.WriteCString(pkgName); data.WriteInt32(subInfo->subscribeId); data.WriteInt32(subInfo->mode); @@ -88,7 +91,10 @@ int32_t DiscServerProxy::StopDiscovery(const char *pkgName, int subscribeId) } MessageParcel data; - + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_DISC, SOFTBUS_LOG_ERROR, "StopDiscovery write InterfaceToken failed!"); + return SOFTBUS_ERR; + } data.WriteCString(pkgName); data.WriteInt32(subscribeId); @@ -118,7 +124,10 @@ int32_t DiscServerProxy::PublishService(const char *pkgName, const PublishInfo * } MessageParcel data; - + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_DISC, SOFTBUS_LOG_ERROR, "PublishService write InterfaceToken failed!"); + return SOFTBUS_ERR; + } data.WriteCString(pkgName); data.WriteInt32(pubInfo->publishId); data.WriteInt32(pubInfo->mode); @@ -155,7 +164,10 @@ int32_t DiscServerProxy::UnPublishService(const char *pkgName, int publishId) } MessageParcel data; - + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_DISC, SOFTBUS_LOG_ERROR, "UnPublishService write InterfaceToken failed!"); + return SOFTBUS_ERR; + } data.WriteCString(pkgName); data.WriteInt32(publishId); diff --git a/sdk/frame/standard/src/softbus_client_stub.cpp b/sdk/frame/standard/src/softbus_client_stub.cpp index e34cf8ff0bf1f38344cf0471e9577f04a6b92009..0d3aab128e8582063e82df2fb36cbfe975beda3f 100644 --- a/sdk/frame/standard/src/softbus_client_stub.cpp +++ b/sdk/frame/standard/src/softbus_client_stub.cpp @@ -64,6 +64,10 @@ int32_t SoftBusClientStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) { SoftBusLog(SOFTBUS_LOG_COMM, SOFTBUS_LOG_INFO, "SoftBusClientStub::OnReceived, code = %{public}u", code); + if (data.ReadInterfaceToken() != GetDescriptor()) { + SoftBusLog(SOFTBUS_LOG_COMM, SOFTBUS_LOG_ERROR, "SoftBusClientStub: ReadInterfaceToken faild!"); + return SOFTBUS_ERR; + } auto itFunc = memberFuncMap_.find(code); if (itFunc != memberFuncMap_.end()) { auto memberFunc = itFunc->second; diff --git a/sdk/frame/standard/src/softbus_server_proxy_standard.cpp b/sdk/frame/standard/src/softbus_server_proxy_standard.cpp index 30947f6005d3367b0a760e783f242eac2553a52e..4dd84c149a9d60f980e2fe820c4c6aa139e46e9b 100644 --- a/sdk/frame/standard/src/softbus_server_proxy_standard.cpp +++ b/sdk/frame/standard/src/softbus_server_proxy_standard.cpp @@ -70,6 +70,10 @@ int32_t SoftBusServerProxyFrame::SoftbusRegisterService(const char *clientPkgNam return SOFTBUS_ERR; } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_COMM, SOFTBUS_LOG_ERROR, "SoftbusRegisterService write InterfaceToken failed!"); + return SOFTBUS_ERR; + } int ret = data.WriteRemoteObject(clientStub); if (!ret) { SoftBusLog(SOFTBUS_LOG_COMM, SOFTBUS_LOG_ERROR, "SoftbusRegisterService write remote object failed!"); diff --git a/sdk/transmission/ipc/standard/src/trans_server_proxy_standard.cpp b/sdk/transmission/ipc/standard/src/trans_server_proxy_standard.cpp index 1301337f01aafee340f9e4a5c8fe665d85b1e92b..fccc6ae347f8950f6efff787e9d3df01ade421fc 100644 --- a/sdk/transmission/ipc/standard/src/trans_server_proxy_standard.cpp +++ b/sdk/transmission/ipc/standard/src/trans_server_proxy_standard.cpp @@ -77,6 +77,10 @@ int32_t TransServerProxy::CreateSessionServer(const char *pkgName, const char *s } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "CreateSessionServer write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteCString(pkgName)) { SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "CreateSessionServer write pkg name failed!"); return SOFTBUS_ERR; @@ -111,6 +115,10 @@ int32_t TransServerProxy::RemoveSessionServer(const char *pkgName, const char *s } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "RemoveSessionServer write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteCString(pkgName)) { SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "RemoveSessionServer write pkg name failed!"); return SOFTBUS_ERR; @@ -146,6 +154,10 @@ int32_t TransServerProxy::OpenSession(const SessionParam *param, TransInfo *info } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "OpenSession write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteCString(param->sessionName)) { SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "OpenSession write my session name failed!"); return SOFTBUS_ERR; @@ -196,6 +208,10 @@ int32_t TransServerProxy::OpenAuthSession(const char *sessionName, const Connect } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "OpenSession write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteCString(sessionName)) { SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "OpenSession write my session name failed!"); return SOFTBUS_ERR; @@ -227,6 +243,10 @@ int32_t TransServerProxy::NotifyAuthSuccess(int channelId) return SOFTBUS_ERR; } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "ServerIpcNotifyAuthSuccess write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteInt32(channelId)) { SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "ServerIpcNotifyAuthSuccess write channel id failed!"); return SOFTBUS_ERR; @@ -254,6 +274,10 @@ int32_t TransServerProxy::CloseChannel(int32_t channelId, int32_t channelType) return SOFTBUS_ERR; } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "CloseChannel write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteInt32(channelId)) { SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "CloseChannel write channel id failed!"); return SOFTBUS_ERR; @@ -286,6 +310,10 @@ int32_t TransServerProxy::SendMessage(int32_t channelId, int32_t channelType, co return SOFTBUS_ERR; } MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "SendMessage write InterfaceToken failed!"); + return SOFTBUS_ERR; + } if (!data.WriteInt32(channelId)) { SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "SendMessage write channel id failed!"); return SOFTBUS_ERR;