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

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

Merge "Skip fast check if home==system" into main

parents 7fdb63a2 bac22cbb
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -288,9 +288,10 @@ public class BackgroundActivityStartController {
    }

    private boolean isHomeApp(int uid, @Nullable String packageName) {
        if (getService().mHomeProcess != null) {
            // Fast check
            return uid == getService().mHomeProcess.mUid;
        WindowProcessController homeProcess = getService().mHomeProcess;
        if (homeProcess != null && (homeProcess.mUid != SYSTEM_UID || packageName == null)) {
            // Fast check (skip if sharing system UID and we have a package name)
            return uid == homeProcess.mUid;
        }
        if (packageName == null) {
            return false;