diff --git a/core/jni/android_util_Process.cpp b/core/jni/android_util_Process.cpp index 23af70a7cc18f..cbcbe7f113903 100644 --- a/core/jni/android_util_Process.cpp +++ b/core/jni/android_util_Process.cpp @@ -613,7 +613,7 @@ void android_os_Process_setThreadPriority(JNIEnv* env, jobject clazz, } // Do not change sched policy cgroup after boot complete. - rc = androidSetThreadPriority(pid, pri, !boot_completed); + rc = androidSetThreadPriorityAndPolicy(pid, pri, !boot_completed); if (rc != 0) { if (rc == INVALID_OPERATION) { signalExceptionForPriorityError(env, errno, pid);