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

Commit 4379f407 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Consider UID instead of PID in canBeObscuredBy()""

parents f92f54b6 3bef7732
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2087,9 +2087,9 @@ static bool canBeObscuredBy(const sp<InputWindowHandle>& windowHandle,
    auto otherInfo = otherHandle->getInfo();
    if (!otherInfo->visible) {
        return false;
    } else if (info->ownerUid == otherInfo->ownerUid) {
        // If ownerUid is the same we don't generate occlusion events as there
        // is no security boundary within an uid.
    } else if (info->ownerPid == otherInfo->ownerPid) {
        // If ownerPid is the same we don't generate occlusion events as there
        // is no in-process security boundary.
        return false;
    } else if (otherInfo->trustedOverlay) {
        return false;