how to disable crash reports?

36 views
Skip to first unread message

ye yuan

unread,
Jun 18, 2025, 11:27:14 PMJun 18
to android-webview-dev
Hi,
  I've noticed this: 
<meta-data android:name="android.webkit.WebView.MetricsOptOut" android:value="true" /> It doesn't disable crash reporting.
    and i want to know how can i disable crash reports in chroium/src?


Torne (Richard Coles)

unread,
Jun 26, 2025, 3:17:11 PMJun 26
to ye yuan, android-webview-dev
MetricsOptOut is a property that individual apps which use WebView can set; you are correct that it doesn't disable crash reporting.

Are you trying to disable WebView's crash reporting for a specific app that uses WebView, or are you building WebView itself and want to disable crash reporting for all apps? I'm guessing you mean the latter given you mention chromium/src, but it'd be helpful if you can confirm that.

Currently the state of crash reporting in the non-Google-branded build of WebView is not ideal (or clearly documented/understood) - we have an open bug for this at https://g-issues.chromium.org/issues/40943032 which explains some of the context and issues, but unfortunately I haven't had a chance to look into it in more detail.

Note that crash reports will never be uploaded to Google unless Google Play Services is installed on the device and the user has consented to telemetry reporting via Play Services, so even if reports are generated and passed to the :webview_service process they don't actually go anywhere on AOSP devices.

Do you want to entirely disable Crashpad and not even get the encoded dumps to logcat, or still log the crash information but just disable the mechanism that sends the reports off to the service?

 

--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/android-webview-dev/286d803d-9b8b-45a3-bd3d-1e33b2b4b29an%40chromium.org.
Reply all
Reply to author
Forward
0 new messages