Is there any way in windows phone 8 or higher to detect if the mobile is jail-broken or rooted, pragmatically?
I dont think there is any official way of doing it as Microsoft does not support Jailbreaking and rooting.
The only thing I am aware of is the developer unlock but that too you cannot check programatically.