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

Commit f73b7c90 authored by Bernardo Rufino's avatar Bernardo Rufino Committed by Android (Google) Code Review
Browse files

Merge "[Attempt #2] Consider UID instead of PID in canBeObscuredBy()"

parents 1955bb85 8007daf4
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2109,9 +2109,9 @@ static bool canBeObscuredBy(const sp<InputWindowHandle>& windowHandle,
    auto otherInfo = otherHandle->getInfo();
    if (!otherInfo->visible) {
        return false;
    } 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.
    } 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.
        return false;
    } else if (otherInfo->trustedOverlay) {
        return false;