We have a use case in which we want to monitor some windows devices remotely. In Windows 10 mobile OS Settings > Update & Security > For developers there are three options:
We want to detect any change in above three settings through a UWP app. I searched a lot but couldn't find a way to do this. I am also open to periodically check the settings and detect a change if its possible.
Note: This app is not a windows store app, it is for our internal use.
For the developer features you can use registry to poll the current setting:
Sideloading of apps
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\AllowAllTrustedApps
Developer mode
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\AllowDevelopmentWithoutDevLicense
For Device discovery and Device Portal I haven't been able to find a solution unfortunately. It is possible that these are also somehow configurable through registry, but I haven't found the keys so far.