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

Commit 3bef7732 authored by Bernardo Rufino's avatar Bernardo Rufino
Browse files

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

This reverts commit dc8c2c65.

Reason for revert: Broke tests (b/169243733)

Change-Id: I854b4b6ed94065bfb67a0e30742209aed57ac1e3
parent dc8c2c65
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2076,9 +2076,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;