diff --git a/services/include/qos_interface.h b/services/include/qos_interface.h index f32df50bd7d9a0d46162a6d1e4674894755d9f31..057b7695fc26c49cd52378399c282013dd1b1c1e 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 9093ffeee690a806d73fd6ddf8e9019deffe25a9..8eb42450edc2a5d05d61ea9f1a2475e8fe991fa8 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) {