Skip to content

chore(deps): update Android SDK to v8.51.0 - #6539

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
deps/scripts/update-android.sh
Open

chore(deps): update Android SDK to v8.51.0#6539
github-actions[bot] wants to merge 1 commit into
mainfrom
deps/scripts/update-android.sh

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Bumps scripts/update-android.sh from 8.50.1 to 8.51.0.

Auto-generated by a dependency updater.

Changelog

8.51.0

Features

  • Use Android's ProfilingManager (Perfetto) for continuous profiling on API 35+ devices (#5251)
    • On API 35+ devices, continuous profiling now automatically uses Android's system ProfilingManager with Perfetto-based stack sampling, providing lower-overhead and more accurate profiles. No configuration change is required.
    • Devices below API 35 keep using the legacy Debug-based profiler.
    • Added an enableLegacyProfiling option (default true) to disable the legacy Debug-based profiler. Setting it to false disables continuous profiling on API < 35 devices as well as transaction-based profiling (profilesSampleRate/profilesSampler) on all devices, since transaction-based profiling is not supported by Perfetto.
    • It can also be configured via the io.sentry.profiling.enable-legacy-profiling manifest flag.
    • See the Android profiling docs for details.

Behavioral Changes

  • The outbox and cache directories are no longer created by Sentry.init (#5792)
    • They are now created lazily by whichever component first writes into them, off the init thread. As a result, the directories at SentryOptions.getOutboxPath() and SentryOptions.getCacheDirPath() are not guaranteed to exist once Sentry.init returns.
    • If you write envelopes into the outbox path yourself instead of going through the SDK — as hybrid SDKs do for captureEnvelope — create the directory first, e.g. new File(outboxPath).mkdirs().

Improvements

  • Skip building Android manifest metadata debug log messages when debug logging is disabled, reducing allocations during SDK init (#5790)

Fixes

  • Use the original app build's ProGuard UUID for ANR profile chunks (#5852)
  • Fix potential ANR/deadlock in Session Replay when checkCanRecord runs on the replay executor thread (#5837)
  • Prevent concurrent PixelCopy access during Session Replay masking and bitmap cleanup (#5808)
  • Release MediaMuxer when the replay video encoder fails to start to avoid a resource leak (#5607)
  • Set the correct platform (android instead of java) on ANR profile chunks so they are billed as UI Profile Hours rather than Continuous Profile Hours (#5836)
  • Skip encoding and capturing buffered session replay segments while rate-limited, so we don't waste resources on envelopes the transport will drop (#5813)
    • These skipped replays are now reported as ratelimit_backoff discarded events in client reports, so they no longer disappear from drop statistics. One event is recorded per buffer flush rather than per segment.
    • Buffer mode is also kept while rate-limited instead of switching to session mode, so the rolling buffer stays warm and the next error after the rate limit expires can send a complete replay.

Performance

  • Create the outbox and cache directories lazily in their consumers instead of during SDK init, moving the mkdirs() calls off the init (main) thread (#5792)
  • Reduce the number of SDK threads: LifecycleWatcher now schedules the session-end task on the shared timer executor instead of creating a dedicated java.util.Timer thread (#5819)
  • Reduce the number of SDK threads: RateLimiter now schedules its rate-limit-lifted notifications on the shared timer executor instead of creating a dedicated java.util.Timer thread (#5814)
  • Speed up deserialization of arbitrary JSON objects by typing numbers without throwing exceptions (#5783)

Dependencies

@github-actions github-actions Bot added the dependencies Pull requests that update a dependency file label Jul 30, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-android.sh branch from 8006dbd to 5457f36 Compare July 30, 2026 04:00
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

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).


  • chore(deps): update Android SDK to v8.51.0 by github-actions[bot] in #6539
  • chore(deps): update Sentry Android Gradle Plugin to v6.17.0 by github-actions in #6544
  • feat(core): Extend TurboModule instrumentation to legacy NativeModules by alwx in #6504
  • feat(ios): Introduce enableMetricKit option by alwx in #6540

🤖 This preview updates automatically when you update the PR.

@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author
Warnings
⚠️

🤖 Replay Stubs Check

No changes detected in replay-stubs.jar

All file contents are identical (verified by SHA-256 hash comparison).

Generated by 🚫 dangerJS against 23db72a

Comment thread packages/core/sentry.gradle.kts

@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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5457f36. Configure here.

Comment thread packages/core/android/build.gradle
@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-android.sh branch 3 times, most recently from f627515 to 7595d9a Compare July 30, 2026 13:34
Comment thread packages/core/android/build.gradle
@antonis antonis added the ready-to-merge Triggers the full CI test suite label Jul 30, 2026
@sentry

sentry Bot commented Jul 30, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-react-native Build Distribution Settings

@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-android.sh branch from 7595d9a to 2388a8f Compare July 30, 2026 15:39
@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-android.sh branch from 2388a8f to 23db72a Compare July 30, 2026 15:48
@github-actions

Copy link
Copy Markdown
Contributor Author

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 517.09 ms 558.50 ms 41.41 ms
Size 49.74 MiB 55.44 MiB 5.70 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
1d3572b+dirty 435.35 ms 487.32 ms 51.96 ms
d2eadf8+dirty 414.64 ms 454.56 ms 39.92 ms
7d8c8bd+dirty 417.45 ms 462.10 ms 44.65 ms
bf168a4+dirty 418.21 ms 489.74 ms 71.53 ms
890d145+dirty 504.54 ms 491.55 ms -12.99 ms
ad66da3+dirty 468.46 ms 533.56 ms 65.10 ms
15d4514+dirty 406.77 ms 428.06 ms 21.29 ms
a0a3177+dirty 441.27 ms 499.86 ms 58.59 ms
6acdf1d+dirty 513.58 ms 608.31 ms 94.72 ms
038a6d7+dirty 524.82 ms 531.92 ms 7.10 ms

App size

Revision Plain With Sentry Diff
1d3572b+dirty 49.74 MiB 55.38 MiB 5.63 MiB
d2eadf8+dirty 48.30 MiB 53.48 MiB 5.18 MiB
7d8c8bd+dirty 48.30 MiB 53.54 MiB 5.23 MiB
bf168a4+dirty 49.74 MiB 55.09 MiB 5.35 MiB
890d145+dirty 43.75 MiB 48.14 MiB 4.39 MiB
ad66da3+dirty 48.30 MiB 53.49 MiB 5.19 MiB
15d4514+dirty 48.30 MiB 53.60 MiB 5.30 MiB
a0a3177+dirty 49.74 MiB 55.37 MiB 5.63 MiB
6acdf1d+dirty 49.74 MiB 55.09 MiB 5.34 MiB
038a6d7+dirty 48.30 MiB 53.60 MiB 5.30 MiB

Previous results on branch: deps/scripts/update-android.sh

Startup times

Revision Plain With Sentry Diff
8ad3a67+dirty 423.68 ms 469.96 ms 46.28 ms
e0efebc+dirty 334.33 ms 337.59 ms 3.27 ms
b3d7080+dirty 360.17 ms 366.32 ms 6.15 ms
51beb00+dirty 435.30 ms 475.23 ms 39.93 ms
0886964 420.28 ms 435.74 ms 15.46 ms
6c0a3f8+dirty 420.65 ms 471.42 ms 50.77 ms
9beea74+dirty 414.00 ms 430.26 ms 16.26 ms
8911c46+dirty 470.74 ms 478.98 ms 8.24 ms
70b4462+dirty 424.91 ms 474.28 ms 49.37 ms
fa62e21 432.46 ms 457.29 ms 24.83 ms

App size

Revision Plain With Sentry Diff
8ad3a67+dirty 43.75 MiB 48.02 MiB 4.27 MiB
e0efebc+dirty 17.75 MiB 19.75 MiB 2.00 MiB
b3d7080+dirty 17.75 MiB 19.74 MiB 1.99 MiB
51beb00+dirty 48.30 MiB 53.58 MiB 5.28 MiB
0886964 17.75 MiB 19.72 MiB 1.97 MiB
6c0a3f8+dirty 43.75 MiB 48.14 MiB 4.39 MiB
9beea74+dirty 43.75 MiB 48.39 MiB 4.64 MiB
8911c46+dirty 48.30 MiB 53.48 MiB 5.18 MiB
70b4462+dirty 48.30 MiB 53.58 MiB 5.28 MiB
fa62e21 17.75 MiB 19.68 MiB 1.94 MiB

@github-actions

Copy link
Copy Markdown
Contributor Author

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 416.80 ms 464.88 ms 48.08 ms
Size 49.74 MiB 55.44 MiB 5.70 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
1d3572b+dirty 444.48 ms 478.42 ms 33.94 ms
6177334+dirty 404.80 ms 456.74 ms 51.94 ms
5a23c47+dirty 406.83 ms 451.47 ms 44.64 ms
a3265b6+dirty 410.96 ms 444.76 ms 33.80 ms
bf168a4+dirty 430.60 ms 459.31 ms 28.71 ms
ca9d079+dirty 460.67 ms 512.54 ms 51.87 ms
ef27341+dirty 519.02 ms 553.42 ms 34.40 ms
23598c3+dirty 371.92 ms 420.65 ms 48.74 ms
7d6fd3a+dirty 435.06 ms 458.78 ms 23.72 ms
a50b33d+dirty 353.21 ms 398.48 ms 45.27 ms

App size

Revision Plain With Sentry Diff
1d3572b+dirty 49.74 MiB 55.38 MiB 5.63 MiB
6177334+dirty 48.30 MiB 53.54 MiB 5.23 MiB
5a23c47+dirty 49.74 MiB 54.82 MiB 5.07 MiB
a3265b6+dirty 48.30 MiB 53.58 MiB 5.28 MiB
bf168a4+dirty 49.74 MiB 55.09 MiB 5.35 MiB
ca9d079+dirty 48.30 MiB 53.58 MiB 5.28 MiB
ef27341+dirty 48.30 MiB 53.54 MiB 5.24 MiB
23598c3+dirty 43.94 MiB 49.02 MiB 5.08 MiB
7d6fd3a+dirty 43.94 MiB 49.00 MiB 5.06 MiB
a50b33d+dirty 43.94 MiB 48.94 MiB 5.00 MiB

Previous results on branch: deps/scripts/update-android.sh

Startup times

Revision Plain With Sentry Diff
8ad3a67+dirty 582.11 ms 624.33 ms 42.21 ms
e0efebc+dirty 354.72 ms 393.98 ms 39.26 ms
b3d7080+dirty 363.00 ms 369.73 ms 6.73 ms
51beb00+dirty 523.04 ms 598.50 ms 75.46 ms
6c0a3f8+dirty 515.18 ms 524.82 ms 9.64 ms
9beea74+dirty 364.98 ms 389.87 ms 24.89 ms
8911c46+dirty 403.54 ms 427.44 ms 23.89 ms
70b4462+dirty 401.78 ms 439.40 ms 37.62 ms
5c2b683+dirty 428.37 ms 443.18 ms 14.81 ms
fa62e21+dirty 366.25 ms 422.43 ms 56.18 ms

App size

Revision Plain With Sentry Diff
8ad3a67+dirty 43.94 MiB 48.85 MiB 4.91 MiB
e0efebc+dirty 7.15 MiB 8.46 MiB 1.31 MiB
b3d7080+dirty 7.15 MiB 8.46 MiB 1.30 MiB
51beb00+dirty 48.30 MiB 53.58 MiB 5.28 MiB
6c0a3f8+dirty 43.94 MiB 49.00 MiB 5.06 MiB
9beea74+dirty 43.94 MiB 49.22 MiB 5.28 MiB
8911c46+dirty 48.30 MiB 53.48 MiB 5.18 MiB
70b4462+dirty 48.30 MiB 53.58 MiB 5.28 MiB
5c2b683+dirty 43.94 MiB 48.87 MiB 4.93 MiB
fa62e21+dirty 7.15 MiB 8.41 MiB 1.26 MiB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ready-to-merge Triggers the full CI test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants