diff --git a/services/include/concurrent_task_controller.h b/services/include/concurrent_task_controller.h index 6a9db9d09610f042ed61dea63e675112550a94b0..9dee2f0d2e8d0f7e69394d389bc96eace68c4974 100644 --- a/services/include/concurrent_task_controller.h +++ b/services/include/concurrent_task_controller.h @@ -91,6 +91,7 @@ private: const std::string RENDER_SERVICE_PROCESS_NAME = "render_service"; const std::string RESOURCE_SCHEDULE_PROCESS_NAME = "resource_schedule_service"; const std::string MEDIA_SERVICE_PROCESS_NAME = "media_service"; + const std::string GAME_SERVICE_PROCESS_NAME = "gameservice_server"; }; class ForegroundAppRecord { diff --git a/services/src/concurrent_task_controller.cpp b/services/src/concurrent_task_controller.cpp index 49b51a0a9b7c7ba961c40be992fea0848159c167..ac2d196e2a209a72be9e1e225fccd09877350bd6 100644 --- a/services/src/concurrent_task_controller.cpp +++ b/services/src/concurrent_task_controller.cpp @@ -493,7 +493,7 @@ void TaskController::QueryDeadline(int queryItem, DeadlineReply& ddlReply, const { pid_t uid = IPCSkeleton::GetInstance().GetCallingUid(); std::string processName = GetProcessNameByToken(); - if (processName != RENDER_SERVICE_PROCESS_NAME && processName != RESOURCE_SCHEDULE_PROCESS_NAME) { + if (processName != RENDER_SERVICE_PROCESS_NAME && processName != GAME_SERVICE_PROCESS_NAME) { CONCUR_LOGE("Invalid uid %{public}d, only RS or RSS can call QueryDeadline", uid); return; }