sentry-java
sentry-java copied to clipboard
Report if `DEVELOPMENT_SETTINGS_ENABLED` is enabled on Android
Description
This can be part of the device context most likely.
fun Context.isDeveloperOptionsEnabled(): Boolean = Settings.Global.getInt(
contentResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0
) != 0
@marandaneto Do you have specific use-cases for this in mind? We're wondering if it makes sense to provide more granular information (e.g. Do not keep activities is enabled or not) in addition / instead.
Let's check which level of detail can be read out
Update: Yes, we could retrieve some more granular settings, e.g.
Settings.Global.ALWAYS_FINISH_ACTIVITIES,
Settings.Global.AIRPLANE_MODE_ON,
Settings.Global.ADB_ENABLED,
Settings.Global.DEVELOPMENT_SETTINGS_ENABLED,
Settings.Global.DATA_ROAMING
Let's remember to update relay with the new fields