Skip to content

Comments

fix: Propagate app context on Android#2557

Open
bitsandfoxes wants to merge 3 commits intofeat/app-runner-androidfrom
feat/sync-app-context-android
Open

fix: Propagate app context on Android#2557
bitsandfoxes wants to merge 3 commits intofeat/app-runner-androidfrom
feat/sync-app-context-android

Conversation

@bitsandfoxes
Copy link
Contributor

Following #2548

Added missing sync of app contexts.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

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


Bug Fixes 🐛

  • Propagate app context on Android by bitsandfoxes in #2557
  • Native configuration logging level for Switch by bitsandfoxes in #2541
  • Remove faulty token validation for symbol upload by bitsandfoxes in #2537

Internal Changes 🔧

Deps

  • Update Native SDK to v0.12.7 by github-actions in #2543
  • Update Cocoa SDK to v9.4.1 by github-actions in #2540

🤖 This preview updates automatically when you update the PR.

Copy link

@cursor cursor bot left a comment

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.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

RunJniSafe(() =>
{
using var app = new AndroidJavaObject("io.sentry.protocol.App");
app.SetIfNotNull("appStartTime", AppStartTime);
Copy link

Choose a reason for hiding this comment

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

String set on likely Date-typed Java field via JNI

Medium Severity

The appStartTime field on io.sentry.protocol.App in the sentry-java SDK is typically a Date type, but SetIfNotNull("appStartTime", AppStartTime) passes an ISO 8601 string. Since no valueClass is provided, SetIfNotNull calls javaObject.Set(property, value!) directly, which uses a String JNI signature. If the actual field type is Date, this would either fail at JNI field resolution (crashing the entire RunJniSafe lambda, which also prevents GPU context from syncing — a regression) or silently corrupt the field causing a ClassCastException during serialization. The buildType field is fine since it's a String in Java.

Fix in Cursor Fix in Web

@bitsandfoxes bitsandfoxes requested a review from a team February 20, 2026 13:28
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.

1 participant