The roots and / or jailbreak are not officially supported by Microsoft, and therefore you do not have an official way to check whether your application is running on such a device.
In principle, you can verify this, but this verification will include adding material to your application that does not pass certification, which means that you can only run this application on a jailbreak device.
Which means that you do not need to check at all, since you already know that you are working on such equipment.
source
share