Skip to content

license(android): [Vendored Packages 2] Remove stale ANR exception attribution - #6819

Open
adinauer wants to merge 1 commit into
ref/consolidate-vendored-code-v9from
license/remove-application-not-responding-attribution-v9
Open

adinauer wants to merge 1 commit into
ref/consolidate-vendored-code-v9from
license/remove-application-not-responding-attribution-v9

Conversation

@adinauer

@adinauer adinauer commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

PR Stack (Vendored Packages)


📜 Description

Remove the ANR-WatchDog attribution header from ApplicationNotResponding, replace its copied Javadoc with an accurate description of the current class, and limit the ANR-WatchDog entry in THIRD_PARTY_NOTICES.md to the adapted ANRWatchDog implementation.

The ANR-WatchDog attribution and full MIT license remain in place for io.sentry.vendor.anrwatchdog.ANRWatchDog.

💡 Motivation and Context

The current ApplicationNotResponding implementation no longer retains the upstream ANRError structure: it does not use its error hierarchy, thread cause chain, duration field, factories, thread enumeration, or main-looper lookup. After replacing the copied Javadoc, the remaining behavior is SDK-owned exception state and the generic Java operation of copying a supplied thread's stack trace.

This PR is intentionally separated from #6796 so the attribution removal can receive explicit legal/compliance review. It should not merge until that review confirms the upstream copyright and notice are no longer required for this class.

💚 How did you test it?

  • Ran make format api.
  • Confirmed the generated ABI is unchanged.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the 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.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

  • Obtain legal/compliance confirmation before merging.

⚠️ Merge this PR into #6796 using a merge commit (not squash). Then squash-merge #6796 into 9.x.x.

#skip-changelog

Treat ApplicationNotResponding as an SDK-owned implementation now that it no longer retains the upstream ANRError structure or behavior. Replace the copied Javadoc and limit the ANR-WatchDog notice scope to the adapted watchdog implementation.

Co-Authored-By: Claude <[email protected]>
@github-actions github-actions Bot added the risk: low PR risk score: low label Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR risk: low

For commit fc5f062.

This label is a hint for reviewers, not an approval.

@sentry

sentry Bot commented Nov 30, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

@adinauer
adinauer marked this pull request as ready for review December 1, 2026 15:32
@adinauer
adinauer requested a review from a team as a code owner December 1, 2026 15:32
@adinauer
adinauer requested review from 0xadam-brown and markushi and removed request for a team December 1, 2026 15:32
@github-actions github-actions Bot added risk: low PR risk score: low and removed risk: low PR risk score: low labels Dec 1, 2026

This branch has not been deployed

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

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant