Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Write telemetry system settings

Jonathan Klee requested to merge 857os-s-write-system-settings into v1-s

Description

We would like to setup telemetry with Sentry to monitor crashes of some apps and unexpected state. We want telemetry to be disabled by default and activable for the user through the developers settings.

Screenshots

Technical details

The developers option sets a system setting accessible from the settings provider. An application will need to read the value with the following command:

Settings.System.getInt(contentResolver, "e_telemetry")

1 means the telemetry is on.

0 means the telemetry is off.

Tests

Tested with a sample app that we can retrieve the e_telemetry setting.

Issues

https://gitlab.e.foundation/e/os/backlog/-/issues/857

10 commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/development/code-review

Merge request reports

Loading