Lightweight  AIR solution that tells you if an iDevice is jailbroken or if and Android device is rooted