From 36270e8b37c14e582f5bb8eaf5b14a3f24618be7 Mon Sep 17 00:00:00 2001 From: hxf Date: Thu, 7 Aug 2025 19:39:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=A1=AC=E7=BC=96=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20Signed-off-by:=20hxf=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/native/src/work_status.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/native/src/work_status.cpp b/services/native/src/work_status.cpp index 1f083eb..e977feb 100644 --- a/services/native/src/work_status.cpp +++ b/services/native/src/work_status.cpp @@ -544,7 +544,7 @@ WorkStatus::Status WorkStatus::GetStatus() int WorkStatus::GetPriority() { if ((OHOS::system::GetIntParameter("const.debuggable", 0) == 1) && - (bundleName_ == "com.huawei.hmos.hiviewx")) { + DelayedSingleton::GetInstance()->IsExemptionBundle(bundleName_)) { return HIGH_PRIORITY; } return DEFAULT_PRIORITY; -- Gitee From 0b87abeb558a016e7e2c1d57a3df8fe25fb06ac5 Mon Sep 17 00:00:00 2001 From: hxf Date: Thu, 7 Aug 2025 21:20:52 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=A1=AC=E7=BC=96=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20Signed-off-by:=20hxf=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/native/src/work_scheduler_service.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/services/native/src/work_scheduler_service.cpp b/services/native/src/work_scheduler_service.cpp index 814ded7..4982ef9 100644 --- a/services/native/src/work_scheduler_service.cpp +++ b/services/native/src/work_scheduler_service.cpp @@ -1524,10 +1524,8 @@ bool WorkSchedulerService::CheckProcessName() Security::AccessToken::AccessTokenID tokenId = OHOS::IPCSkeleton::GetCallingTokenID(); Security::AccessToken::NativeTokenInfo callingTokenInfo; Security::AccessToken::AccessTokenKit::GetNativeTokenInfo(tokenId, callingTokenInfo); - WS_HILOGD("process name: %{public}s called CheckProcessName.", callingTokenInfo.processName.c_str()); if (WORK_SCHED_NATIVE_OPERATE_CALLER.find(callingTokenInfo.processName) == WORK_SCHED_NATIVE_OPERATE_CALLER.end()) { - WS_HILOGE("check process name illegal access to this interface; process name: %{public}s.", - callingTokenInfo.processName.c_str()); + WS_HILOGE("check process name illegal access to this interface"); WorkSchedUtil::HiSysEventException(EventErrorCode::TOKEN_CHECK, "illegal process name"); return false; } @@ -1539,9 +1537,8 @@ bool WorkSchedulerService::CheckCallingServiceName() Security::AccessToken::AccessTokenID tokenId = IPCSkeleton::GetCallingTokenID(); Security::AccessToken::NativeTokenInfo callingTokenInfo; Security::AccessToken::AccessTokenKit::GetNativeTokenInfo(tokenId, callingTokenInfo); - WS_HILOGD("process name: %{public}s called CheckCallingServiceName.", callingTokenInfo.processName.c_str()); if (WORK_SCHED_SA_CALLER.find(callingTokenInfo.processName) == WORK_SCHED_SA_CALLER.end()) { - WS_HILOGE("check process name illegal, process name: %{public}s.", callingTokenInfo.processName.c_str()); + WS_HILOGE("check process name illegal"); return false; } return true; -- Gitee