From fc5f062d1e046b0f4673ca86682d036e5ed38a3e Mon Sep 17 00:00:00 2001 From: Alexander Dinauer Date: Mon, 30 Nov 2026 17:10:22 +0100 Subject: [PATCH] license(android): Remove ANR exception attribution 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 --- THIRD_PARTY_NOTICES.md | 2 +- .../android/core/ApplicationNotResponding.java | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 3640426729a..39604d4e11c 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -455,7 +455,7 @@ limitations under the License. ### Scope -The Sentry Java SDK includes an adapted version of the ANR-WatchDog library for Application Not Responding (ANR) detection on Android. The code resides in `io.sentry.vendor.anrwatchdog.ANRWatchDog` and `io.sentry.android.core.ApplicationNotResponding` (adapted from `ANRError`). +The Sentry Java SDK includes an adapted version of the ANR-WatchDog library for Application Not Responding (ANR) detection on Android. The code resides in `io.sentry.vendor.anrwatchdog.ANRWatchDog`. ``` MIT License diff --git a/sentry-android-core/src/main/java/io/sentry/android/core/ApplicationNotResponding.java b/sentry-android-core/src/main/java/io/sentry/android/core/ApplicationNotResponding.java index 18279fbeaf9..ab0d11c05f1 100644 --- a/sentry-android-core/src/main/java/io/sentry/android/core/ApplicationNotResponding.java +++ b/sentry-android-core/src/main/java/io/sentry/android/core/ApplicationNotResponding.java @@ -1,8 +1,3 @@ -// Adapted from ANR-WatchDog. -// Copyright (c) 2016 Salomon BRYS. -// Licensed under the MIT License. -// https://github.com/SalomonBrys/ANR-WatchDog/blob/1969075f75f5980e9000eaffbaa13b0daf282dcb/anr-watchdog/src/main/java/com/github/anrwatchdog/ANRError.java -// The API unnecessary here was removed. package io.sentry.android.core; import io.sentry.util.Objects; @@ -11,12 +6,8 @@ import org.jetbrains.annotations.Nullable; /** - * Error thrown by ANRWatchDog when an ANR is detected. Contains the stack trace of the frozen UI - * thread. - * - *

It is important to notice that, in an ApplicationNotResponding, all the "Caused by" are not - * really the cause of the exception. Each "Caused by" is the stack trace of a running thread. Note - * that the main thread always comes first. + * Represents an Android application-not-responding condition and carries a snapshot of the + * unresponsive thread's stack trace when available. */ @ApiStatus.Internal public final class ApplicationNotResponding extends RuntimeException {