判断设备是否越狱的方法
- (BOOL)isJailbroken { BOOL jailbroken = NO; //判断cydia商店是否存在; NSString *cydiaPath = @"/Applications/Cydia.app"; //判断apt目录存在 NSString *aptPath = @"/private/var/lib/apt/"; if ([[NSFileManager defaultManager] fileExistsAtPath:cydiaPath]) { jailbroken = YES; } if ([[NSFileManager defaultManager] fileExistsAtPath:aptPath]) { jailbroken = YES; } return jailbroken; }