Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0f837cc authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove explicit allowance for SystemUI in lock-free MessageQueue" into main

parents 189d9880 c225e0ab
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -205,16 +205,6 @@ public final class MessageQueue {
            }
        }

        // Also explicitly allow SystemUI processes.
        // SystemUI doesn't run in a core UID, but we want to give it the performance boost,
        // and we know that it's safe to use the concurrent implementation in SystemUI.
        if (processName.equals("com.android.systemui")
                || processName.startsWith("com.android.systemui:")) {
            return true;
        }
        // On Android distributions where SystemUI has a different process name,
        // the above condition may need to be adjusted accordingly.

        // We can lift these restrictions in the future after we've made it possible for test
        // authors to test Looper and MessageQueue without resorting to reflection.
        return false;