Skip to content

Android Session Replay Masking Not Working as Expected #4315

@ajithkumar25b

Description

@ajithkumar25b

Integration

sentry-android

Build System

Gradle

AGP Version

8.6.0

Proguard

Enabled

Version

8.1.0

We have enabled Session Replay masking in our Android application, but it's not working as expected. The masking is sometimes misaligned, and certain UI elements—like popup texts—are not masked at all.This issue raises privacy concerns, as sensitive information might be visible in the session recordings.

Configuration:
Here is our current Session Replay masking configuration:
private fun handleSessionReplay(options: SentryAndroidOptions) { options.sessionReplay.setMaskAllImages(true) options.sessionReplay.setMaskAllText(true) options.sessionReplay.onErrorSampleRate = 1.0 options.sessionReplay.sessionSampleRate = 1.0 }

Additional Notes :

  • Due to privacy policies, I cannot provide screenshots of the issue.
  • Please let me know if there are any known workarounds or additional configurations needed to ensure masking works as expected.

Would appreciate any insights or fixes on this, Thanks!!

Expected Result

  • All text fields and sensitive elements should be masked correctly.
  • Masking should be applied consistently across the app, including popup texts.

Actual Result

Issues Observed:

  • Masking Misalignment: In some cases, the mask does not cover the correct area, causing sensitive information to be partially visible.
  • Missing Masking on Popups: Some UI elements, especially popup texts and tooltips, are not masked even though they should be.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Needs More Information

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions