From 715f19d1ebca20a362ed27b3f3e9927d53454362 Mon Sep 17 00:00:00 2001 From: Greg Kaiser Date: Mon, 24 Aug 2020 10:26:46 -0700 Subject: [PATCH] Keep up with API change androidSetThreadPriority() is going back to only accepting two arguments, so we switch to the three argument version of the method. Test: TreeHugger Bug: 165009705 Change-Id: If996fdfa19076f72e63a9ffb160715453965c482 --- core/jni/android_util_Process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);