- (BOOL)isJailbroken
{
BOOL jailbroken = NO;
NSString *cydiaPath = @"/Applications/Cydia.app";
NSString *aptPath = @"/private/var/lib/apt/";
if ([[NSFileManagerdefaultManager] fileExistsAtPath:cydiaPath])
{
jailbroken = YES;
}
if ([[NSFileManagerdefaultManager] fileExistsAtPath:aptPath])
{
jailbroken = YES;
}
return jailbroken;
}