Skip to content

fix(android): OS & device context in crash daemon events - #2354

Merged
jpnurmi merged 5 commits into
v1from
jpnurmi/fix/android-os-context
Dec 1, 2026
Merged

jpnurmi merged 5 commits into
v1from
jpnurmi/fix/android-os-context

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Required for:

Inproc crashes are sent from the outbox by the Android SDK, which populates the OS and device contexts. The crash daemon sends its events itself, so they had neither.

Report the same OS and device contexts as the Android SDK:

Before After Note
os.name Linux Android
os.version 6.1.162 17 ro.build.version.release
os.build android14-… CP3A.261005.005 ro.build.display.id
os.kernel_version 6.1.162-… uname release
device.manufacturer Google ro.product.manufacturer
device.brand google ro.product.brand
device.model Pixel 8 Pro ro.product.model
device.model_id CP3A.261005.005 ro.build.id
device.family Pixel first word of model

Inproc crashes are sent from the outbox by the Android SDK, which
replaces the OS context. The crash daemon sends its events itself, so
they reported `uname`, e.g. `Linux 6.1.162`.

Report Android as the OS with the same values as the Android SDK:

| Field            | Before        | After             | Note                       |
|------------------|---------------|-------------------|----------------------------|
| `name`           | `Linux`       | `Android`         |                            |
| `version`        | `6.1.162`     | `17`              | `ro.build.version.release` |
| `build`          | `android14-…` | `CP3A.261005.005` | `ro.build.display.id`      |
| `kernel_version` |               | `6.1.162-…`       | `uname` release            |
@jpnurmi
jpnurmi force-pushed the jpnurmi/fix/android-os-context branch from 060fed0 to 78c72fb Compare November 30, 2026 11:08
@jpnurmi
jpnurmi added this pull request to stack #2356 November 30, 2026 11:39
@jpnurmi
jpnurmi removed this pull request from stack #2356 November 30, 2026 14:47
Inproc crashes are sent from the outbox by the Android SDK, which adds
the device context. The crash daemon sends its events itself, so they
had none.

Add the same static fields as the Android SDK:

| Field          | Example           | Source                    |
|----------------|-------------------|---------------------------|
| `manufacturer` | `Google`          | `ro.product.manufacturer` |
| `brand`        | `google`          | `ro.product.brand`        |
| `model`        | `Pixel 8 Pro`     | `ro.product.model`        |
| `model_id`     | `CP3A.261005.005` | `ro.build.id`             |
| `family`       | `Pixel`           | first word of `model`     |
@jpnurmi
jpnurmi force-pushed the jpnurmi/fix/android-os-context branch from 78c72fb to 4aec0f5 Compare November 30, 2026 14:51
@jpnurmi jpnurmi changed the title fix(android): OS context in crash daemon events fix(android): OS & device context in crash daemon events Nov 30, 2026
@jpnurmi
jpnurmi added this pull request to stack #2358 November 30, 2026 14:58
@jpnurmi
jpnurmi merged commit 2d5e4fe into v1 Dec 1, 2026
73 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/fix/android-os-context branch December 1, 2026 11:34
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.

3 participants