Write telemetry system settings
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
Edited by Jonathan Klee