Is there a way to detect if the device is rooted or jailbreak?

Is there a way to detect if the device is rooted or jailbreak?

Corona SDK does not provide a way of detecting this. We do not support rooted/jailbroken devices.

Corona SDK does not provide a way of detecting this. We do not support rooted/jailbroken devices.