You can mark devices as used for development in XCode organizer.
What does it actually do internally on iOS device? Does it set some kind of flag? Does it install something?
Is there API on device (including private) to check whether it's development or not?
Is there API on device (including private) to mark device as development?
I think I found small piece of information here: What does the "Use for Development" button in Xcode Organizer do to an iOS device? However it covers only partly a question what does actually happen with iOS device.