From 5eaa63678821e87a2833afa9eb44b53ed7e3c6f6 Mon Sep 17 00:00:00 2001 From: edwardcaoyue Date: Tue, 30 Jan 2024 09:17:32 +0800 Subject: [PATCH] modify default auth status Signed-off-by: edwardcaoyue --- services/include/qos_interface.h | 2 +- services/src/concurrent_task_controller.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/include/qos_interface.h b/services/include/qos_interface.h index f32df50..057b769 100644 --- a/services/include/qos_interface.h +++ b/services/include/qos_interface.h @@ -57,7 +57,7 @@ enum class AuthManipulateType { }; enum class AuthStatus { - AUTH_STATUS_DISABLED = 1, + AUTH_STATUS_DEFAULT = 1, AUTH_STATUS_SYSTEM_SERVER = 2, AUTH_STATUS_FOREGROUND = 3, AUTH_STATUS_BACKGROUND = 4, diff --git a/services/src/concurrent_task_controller.cpp b/services/src/concurrent_task_controller.cpp index 9093ffe..8eb4245 100644 --- a/services/src/concurrent_task_controller.cpp +++ b/services/src/concurrent_task_controller.cpp @@ -465,7 +465,7 @@ void TaskController::NewAppStart(int uid, int pid) CONCUR_LOGI("pid %{public}d start.", pid); unsigned int pidParam = static_cast(pid); unsigned int uaFlag = AF_RTG_ALL; - unsigned int status = static_cast(AuthStatus::AUTH_STATUS_BACKGROUND); + unsigned int status = static_cast(AuthStatus::AUTH_STATUS_DEFAULT); int ret = AuthEnable(pidParam, uaFlag, status); if (ret == 0) { -- Gitee