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

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

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

parents 8a0bacc8 dc8c2c65
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->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;