Skip to content

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

Merged
antonis merged 1 commit into
mainfrom
deps/scripts/update-android.sh
Jul 31, 2026
Merged

chore(deps): update Android SDK to v8.51.0#6539
antonis merged 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 296606a

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 2 times, most recently from 2388a8f to 23db72a Compare July 30, 2026 15:48
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 495.98 ms 519.64 ms 23.66 ms
Size 49.74 MiB 55.44 MiB 5.70 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
37a2091+dirty 407.82 ms 441.22 ms 33.40 ms
4acd4e9+dirty 414.45 ms 448.55 ms 34.10 ms
5b7e8a7+dirty 418.55 ms 488.46 ms 69.91 ms
21a1e70+dirty 405.72 ms 436.16 ms 30.44 ms
4e0b819+dirty 420.56 ms 470.08 ms 49.52 ms
774257e+dirty 407.09 ms 447.46 ms 40.37 ms
3b6e9f9+dirty 442.70 ms 486.44 ms 43.74 ms
23598c3+dirty 414.12 ms 426.24 ms 12.12 ms
7d6fd3a+dirty 403.02 ms 422.56 ms 19.54 ms
41d6254+dirty 424.45 ms 474.34 ms 49.89 ms

App size

Revision Plain With Sentry Diff
37a2091+dirty 48.30 MiB 53.58 MiB 5.28 MiB
4acd4e9+dirty 49.74 MiB 55.26 MiB 5.52 MiB
5b7e8a7+dirty 48.30 MiB 53.58 MiB 5.28 MiB
21a1e70+dirty 49.74 MiB 54.82 MiB 5.07 MiB
4e0b819+dirty 49.74 MiB 54.81 MiB 5.07 MiB
774257e+dirty 48.30 MiB 53.58 MiB 5.28 MiB
3b6e9f9+dirty 48.30 MiB 53.54 MiB 5.23 MiB
23598c3+dirty 43.75 MiB 48.16 MiB 4.41 MiB
7d6fd3a+dirty 43.75 MiB 48.14 MiB 4.39 MiB
41d6254+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

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 480.60 ms 496.68 ms 16.08 ms
Size 49.74 MiB 55.44 MiB 5.70 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
5257d80+dirty 472.37 ms 494.54 ms 22.17 ms
4acd4e9+dirty 431.33 ms 477.68 ms 46.35 ms
0b1b5e3+dirty 425.58 ms 476.02 ms 50.44 ms
64630e5+dirty 427.13 ms 486.67 ms 59.55 ms
44c8b3f+dirty 492.13 ms 563.47 ms 71.34 ms
af33f3b+dirty 417.68 ms 448.04 ms 30.37 ms
c2e182c+dirty 468.50 ms 545.44 ms 76.94 ms
100ce80+dirty 463.28 ms 532.10 ms 68.82 ms
9c84b9a+dirty 429.26 ms 448.90 ms 19.64 ms
21a1e70+dirty 437.55 ms 507.10 ms 69.56 ms

App size

Revision Plain With Sentry Diff
5257d80+dirty 48.30 MiB 53.58 MiB 5.28 MiB
4acd4e9+dirty 49.74 MiB 55.26 MiB 5.52 MiB
0b1b5e3+dirty 48.30 MiB 53.60 MiB 5.29 MiB
64630e5+dirty 49.74 MiB 54.82 MiB 5.07 MiB
44c8b3f+dirty 48.30 MiB 53.46 MiB 5.15 MiB
af33f3b+dirty 49.74 MiB 55.09 MiB 5.35 MiB
c2e182c+dirty 49.74 MiB 54.85 MiB 5.11 MiB
100ce80+dirty 48.30 MiB 53.46 MiB 5.15 MiB
9c84b9a+dirty 49.74 MiB 55.36 MiB 5.62 MiB
21a1e70+dirty 49.74 MiB 54.82 MiB 5.07 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

@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-android.sh branch from 23db72a to 296606a Compare July 31, 2026 04:07
@antonis
antonis merged commit 7c6200e into main Jul 31, 2026
86 checks passed
@antonis
antonis deleted the deps/scripts/update-android.sh branch July 31, 2026 05:29
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