From 81c2948aeddbb6643907a61b787823a216f01e64 Mon Sep 17 00:00:00 2001 From: wanghaixiang Date: Wed, 11 Aug 2021 20:48:28 +0800 Subject: [PATCH] comment descriptor check Signed-off-by: wanghaixiang --- .../huks_service/main/os_dependency/sa/hks_sa.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/services/huks_standard/huks_service/main/os_dependency/sa/hks_sa.cpp b/services/huks_standard/huks_service/main/os_dependency/sa/hks_sa.cpp index c1a4b27f..ca474075 100755 --- a/services/huks_standard/huks_service/main/os_dependency/sa/hks_sa.cpp +++ b/services/huks_standard/huks_service/main/os_dependency/sa/hks_sa.cpp @@ -183,12 +183,9 @@ bool HksService::CanRequest() const int HksService::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) { - /*std::u16string descriptor = HksService::GetDescriptor(); + // this is the temporary version which comments the descriptor check + std::u16string descriptor = HksService::GetDescriptor(); std::u16string remoteDescriptor = data.ReadInterfaceToken(); - if (descriptor != remoteDescriptor) { - HKS_LOG_E("descriptor is diff."); - return HW_SYSTEM_ERROR; - }*/ if (!CanRequest()) { return HW_PERMISSION_DENIED; -- Gitee