Skip to content
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

### Significant change in behavior
- The NDK is now disabled by default on Android, to prevent SIGSEGV errors resulting from managed NullReferenceExceptions ([#3903](https://github.com/getsentry/sentry-dotnet/pull/3903))

### Features

- .NET on iOS: Add experimental EnableAppHangTrackingV2 configuration flag to the options binding SDK ([#3877](https://github.com/getsentry/sentry-dotnet/pull/3877))
Expand Down
10 changes: 8 additions & 2 deletions src/Sentry/Platforms/Android/NativeOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,19 @@ internal NativeOptions(SentryOptions options)
public TimeSpan ConnectionTimeout { get; set; } = TimeSpan.FromSeconds(5);

/// <summary>
/// <para>
/// Gets or sets a value that indicates if the NDK (Android Native Development Kit) is enabled.
/// The default value is <c>true</c> (enabled).
/// The default value is <c>false</c> (disabled).
/// </para>
/// <para>
/// NOTE: We do not currently recommend enabling this feature.
/// See: https://github.com/getsentry/sentry-dotnet/issues/3902
/// </para>
/// </summary>
/// <remarks>
/// See https://docs.sentry.io/platforms/android/using-ndk/#disable-ndk-integration
/// </remarks>
public bool EnableNdk { get; set; } = true;
public bool EnableNdk { get; set; } = false;

/// <summary>
/// Gets or sets a value that indicates if the hook that flushes when the main Java thread shuts down
Expand Down
Loading