fix(android): Add filterTouchesWhenObscured to prevent Tapjacking#5155
Merged
romtsn merged 3 commits intogetsentry:mainfrom Mar 5, 2026
Merged
fix(android): Add filterTouchesWhenObscured to prevent Tapjacking#5155romtsn merged 3 commits intogetsentry:mainfrom
romtsn merged 3 commits intogetsentry:mainfrom
Conversation
Adds filterTouchesWhenObscured="true" to the user feedback dialog to prevent overlay/tapjacking attack ( CWE-1021)
romtsn
approved these changes
Mar 5, 2026
Member
romtsn
left a comment
There was a problem hiding this comment.
@abhishek-900 thanks for reporting and opening the PR straight away - highly appreciated! Approving
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds filterTouchesWhenObscured="true" to the user feedback dialog to prevent overlay/tapjacking attack ( CWE-1021)
📜 Description
Adds
android:filterTouchesWhenObscured="true"attribute to the rootRelativeLayoutinsentry_dialog_user_feedback.xmlto mitigate tapjacking/overlay attacks.💡 Motivation and Context
Without
filterTouchesWhenObscured, a malicious app can draw an invisible overlay on top of the user feedback dialog. This allows attackers to intercept user input or trick users into unintended actions (tapjacking).This is flagged by static security scanners as a medium severity vulnerability (CWE-1021: Improper Restriction of Rendered UI Layers).
Reference: https://developer.android.com/reference/android/view/View#security
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
N/A - This is a one-line security hardening fix with no follow-up required.