Skip to content

fix(android): Block profiling on unsupported system package - #5975

Draft
sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/android-profiling-empty-traces
Draft

fix(android): Block profiling on unsupported system package#5975
sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/android-profiling-empty-traces

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Android system package version 370546200 can accept profiling requests but produce empty traces. This change resolves the installed profiling package version when the profiler is created and skips profiling for that version.

Unknown and other package versions keep the existing behavior.

Tests

  • Added focused unit coverage for blocked and allowed package versions.
  • Could not run Gradle locally because the sandbox has no Java runtime (JAVA_HOME is unset and java is unavailable).
  • git diff --check passed.

Requested by markus.hintersteiner.

--

View Junior Session [Sentry]

Co-Authored-By: Markus Hintersteiner <markus.hintersteiner@sentry.io>
@github-actions

Copy link
Copy Markdown
Contributor
Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Fixes

- Block profiling on unsupported system package ([#5975](https://github.com/getsentry/sentry-java/pull/5975))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against 18c8b26

@sentry

sentry Bot commented Aug 18, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.53.0 (1) release

⚙️ sentry-android Build Distribution Settings

@github-actions

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 312.71 ms 359.24 ms 46.53 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
fc5ccaf 279.11 ms 353.34 ms 74.23 ms
96eeafa 361.43 ms 455.07 ms 93.63 ms
44472da 324.77 ms 360.60 ms 35.83 ms
694d587 305.45 ms 378.38 ms 72.94 ms
694d587 379.62 ms 400.80 ms 21.18 ms
bb0ff41 321.00 ms 378.28 ms 57.28 ms
0d66c0b 327.83 ms 403.40 ms 75.57 ms
e2dce0b 308.96 ms 360.10 ms 51.14 ms
ce0a49e 532.00 ms 609.96 ms 77.96 ms
ad8da22 365.86 ms 427.00 ms 61.14 ms

App size

Revision Plain With Sentry Diff
fc5ccaf 1.58 MiB 2.13 MiB 557.54 KiB
96eeafa 1.58 MiB 2.19 MiB 620.21 KiB
44472da 0 B 0 B 0 B
694d587 1.58 MiB 2.19 MiB 620.06 KiB
694d587 1.58 MiB 2.19 MiB 620.06 KiB
bb0ff41 0 B 0 B 0 B
0d66c0b 1.58 MiB 2.29 MiB 720.89 KiB
e2dce0b 0 B 0 B 0 B
ce0a49e 1.58 MiB 2.10 MiB 532.94 KiB
ad8da22 1.58 MiB 2.29 MiB 719.83 KiB

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants