Windows 10 UWP - Programatically detect change in developer features

556 views Asked by At

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:

  1. Use developer features.
  2. Device discovery.
  3. Device Portal

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.

1

There are 1 answers

3
Martin Zikmund On BEST ANSWER

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.