Skip to content

Commit 6d6a70a

Browse files
author
Jim Miller
committed
Fix 5797764: Increase lock screen's thread priority
This increases lock screen's thread priority from THREAD_PRIORITY_FOREGROUND to THREAD_PRIORITY_DISPLAY to ensure it runs before other activities that might stall lock screen when the screen turns on. Change-Id: I14cf9f3f5c092817bc6cf2d0a254001a5d34f744
1 parent ff321d4 commit 6d6a70a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/wm/WindowManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ public void run() {
728728
//Looper.myLooper().setMessageLogging(new LogPrinter(
729729
// Log.VERBOSE, "WindowManagerPolicy", Log.LOG_ID_SYSTEM));
730730
android.os.Process.setThreadPriority(
731-
android.os.Process.THREAD_PRIORITY_FOREGROUND);
731+
android.os.Process.THREAD_PRIORITY_DISPLAY);
732732
android.os.Process.setCanSelfBackground(false);
733733
mPolicy.init(mContext, mService, mService, mPM);
734734

0 commit comments

Comments
 (0)