Skip to content

fix(android): Apply screenshot masking options to error and feedback screenshots - #6930

Merged
antonis merged 6 commits into
mainfrom
fix/android-masked-error-screenshots
Oct 27, 2026
Merged

antonis merged 6 commits into
mainfrom
fix/android-masked-error-screenshots

Conversation

@antonis

@antonis antonis commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

This PR:

  • Captures screenshots with ScreenshotUtils.takeMaskedScreenshot (sentry-java 8.61.1, feat(android): Add masked screenshot capture for Hybrid SDKs sentry-java#6281), which masks them the same way native error screenshots are masked. If the native options aren't available, no screenshot is taken.
  • Defaults screenshot.maskAllText / maskAllImages to true on Android, as documented. The native Android SDK leaves them off until its next major, and RN only forwarded them when set.
  • Masks react-native-svg views when maskAllImages is on, like Session Replay.
  • Honors <Sentry.Mask> / <Sentry.Unmask> in screenshots when sentry-android-replay is available.

💡 Motivation and Context

Fixes #6900

💚 How did you test it?

📝 Checklist

  • I added tests to verify changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.
  • No breaking changes.

🔮 Next steps

antonis and others added 2 commits October 22, 2026 12:33
…screenshots

Use sentry-java's takeMaskedScreenshot for screenshots captured from JS,
default maskAllText/maskAllImages to true as documented, and honor
Sentry.Mask/Sentry.Unmask when the replay module is available.

Fixes #6900

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

⚪ None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • fix(android): Apply screenshot masking options to error and feedback screenshots by antonis in #6930
  • chore(deps): update Android SDK to v8.62.0 by github-actions in #6932
  • chore(deps): update Maestro to v2.12.0 by github-actions in #6945
  • chore(deps): bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.35.0 to 3.0.0 by dependabot in #6944
  • chore(deps): bump the codeql-action group with 3 updates by dependabot in #6940
  • chore(deps): bump actions/upload-artifact from 7.0.1 to 7.0.2 by dependabot in #6941
  • chore(deps): bump fast-uri from 3.1.8 to 3.1.9 by dependabot in #6946
  • chore(deps): bump undici from 6.29.0 to 6.29.1 by dependabot in #6947
  • chore(deps): bump actions/setup-node from 7.0.0 to 7.1.0 by dependabot in #6943
  • chore(deps): bump ruby/setup-ruby from 1.327.0 to 1.334.0 by dependabot in #6942
  • chore(deps): bump ip-address from 10.7.2 to 10.7.4 by dependabot in #6939
  • chore(deps): update Wizard to v9.0.0 by github-actions in #6936
  • chore(deps): update CLI to v3.8.2 by github-actions in #6933
  • ci: Move CI off end-of-life Node versions to Node 22 by antonis in #6927

🤖 This preview updates automatically when you update the PR.

@antonis antonis added the ready-to-merge Triggers the full CI test suite label Oct 22, 2026
@antonis

antonis commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 551de0b. Configure here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@antonis
antonis marked this pull request as ready for review October 22, 2026 10:46
@sentry

sentry Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
Sentry RN io.sentry.reactnative.sample 8.32.0 (112) Release

⚙️ sentry-react-native Build Distribution Settings

@antonis antonis left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking as blocked and reverting back to draft since the Android bump needs to be reverted for now #6931

@antonis
antonis marked this pull request as draft October 22, 2026 11:10
Comment thread CHANGELOG.md Outdated
@antonis antonis removed the Blocked label Oct 27, 2026

@antonis antonis left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unblocked with the 8.62.0 bump that included getsentry/sentry-java#6356

@antonis
antonis marked this pull request as ready for review October 27, 2026 09:38

@alwx alwx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@antonis
antonis merged commit 62a7ddc into main Oct 27, 2026
103 of 104 checks passed
@antonis
antonis deleted the fix/android-masked-error-screenshots branch October 27, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Triggers the full CI test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android: JS error screenshots ignore screenshot masking options (maskAllText / maskAllImages)

2 participants