How To Detect Jailbroken iPhone

We can find Whether the Apple iPhone device is Jail Broken or not

Here the code to Check whether the iPhone is jailborken or not
note: Itís a UIDevice Category. Call it via [[UIDevice currentDevice] isJailbroken].

@implementation UIDevice (Helper)
- (BOOL)isJailbroken {
BOOL jailbroken = NO;
NSString *cydiaPath = @"/Applications/";
NSString *aptPath = @"/private/var/lib/apt/";

if ([[NSFileManager defaultManager] fileExistsAtPath:cydiaPath]) {
jailbroken = YES;

if ([[NSFileManager defaultManager] fileExistsAtPath:aptPath]) {
jailbroken = YES;

return jailbroken;

Related Topic Detecting iPhone, IPod
How to detect iPhone in PHP code
Detect iPhone | iPod | iPad using JQuery
How to Detect An Ipad Browser
How to Block Unwanted Phone Calss in iPhone with iBlacklist © 2011   Privacy Policy  Terms of Service  Feedback