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

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

Merge "InputTracer: Remove precondition check for FLAG_SECURE" into main

parents 442b5df4 8dbf1405
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -89,13 +89,6 @@ InputTargetInfo getTargetInfo(const InputTarget& target) {
    const auto& info = *target.windowHandle->getInfo();
    const bool isSensitiveTarget =
            info.inputConfig.test(gui::WindowInfo::InputConfig::SENSITIVE_FOR_TRACING);

    // All FLAG_SECURE targets must be marked as sensitive for tracing.
    if (info.layoutParamsFlags.test(gui::WindowInfo::Flag::SECURE) && !isSensitiveTarget) {
        LOG(FATAL)
                << "Input target with FLAG_SECURE does not set InputConfig::SENSITIVE_FOR_TRACING: "
                << info;
    }
    return {target.windowHandle->getInfo()->ownerUid, isSensitiveTarget};
}