diff --git a/src/sentry/utils/sdk_crashes/sdk_crash_detection_config.py b/src/sentry/utils/sdk_crashes/sdk_crash_detection_config.py index cf749e0efa3c14..370194ca6627e9 100644 --- a/src/sentry/utils/sdk_crashes/sdk_crash_detection_config.py +++ b/src/sentry/utils/sdk_crashes/sdk_crash_detection_config.py @@ -242,6 +242,7 @@ def build_sdk_crash_detection_configs() -> Sequence[SDKCrashDetectionConfig]: function_patterns={ r"sentry_*", # public interface r"sentry__*", # module level interface + r"Java_io_sentry_android_ndk_*", # JNI interface }, # The native SDK usually has the same path as the application binary. # Therefore, we can't rely on it. We set a fixed path of Sentry for diff --git a/tests/sentry/utils/sdk_crashes/test_sdk_crash_detection_native.py b/tests/sentry/utils/sdk_crashes/test_sdk_crash_detection_native.py index a6c6c25a0fd069..3b0cfa1977cc4e 100644 --- a/tests/sentry/utils/sdk_crashes/test_sdk_crash_detection_native.py +++ b/tests/sentry/utils/sdk_crashes/test_sdk_crash_detection_native.py @@ -112,6 +112,11 @@ def configs() -> Sequence[SDKCrashDetectionConfig]: "/apex/com.android.placeholder/liA/yes/yes", False, ), + ( + "Java_io_sentry_android_ndk_NativeScope_nativeAddBreadcrumb", + "/apex/com.android.placeholder/libA/yes/yes", + True, + ), ], ) @decorators