Skip to content

backtrace-android: add support for dynamic attachments#208

Merged
gm4sl merged 1 commit intomasterfrom
gm4sl/dynatt
Mar 31, 2026
Merged

backtrace-android: add support for dynamic attachments#208
gm4sl merged 1 commit intomasterfrom
gm4sl/dynatt

Conversation

@gm4sl
Copy link
Copy Markdown
Collaborator

@gm4sl gm4sl commented Mar 31, 2026

Previously, crashpad, used for handling native crashes, did not support additional file attachments to the crash report context after initialization. Recent changes, however, have been made to the Backtrace fork of crashpad to allow this. The crashpad submodule reference has been updated in this commit to point to this change.

This commit adds support for adding file attachments after initialization to native crash reports.

The changes follow the existing pattern for adding attributes dynamically which forward the request to the crashpad backend in response to a call to addAttachment on the Backtrace client.

@gm4sl gm4sl self-assigned this Mar 31, 2026
@melekr
Copy link
Copy Markdown
Collaborator

melekr commented Mar 31, 2026

Any need to stress/test adding attachments during minidump generation? If that’s already safe, this looks ready to land.

…ashes

Previously, crashpad, used for handling native crashes, did not support
additional file attachments to the crash report context after
initialization. Recent changes, however, have been made to the Backtrace
fork of crashpad to allow this. The crashpad submodule reference has
been updated in this commit to point to this change.

This commit adds support for adding file attachments after initialization
to native crash reports.

The changes follow the existing pattern for adding attributes
dynamically which forward the request to the crashpad backend in response
to a call to `addAttachment` on the Backtrace client.
@gm4sl gm4sl merged commit 080a39b into master Mar 31, 2026
2 of 3 checks passed
@gm4sl gm4sl deleted the gm4sl/dynatt branch March 31, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants