判断设备是否越狱的方法


- (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; }

 

posted @ 2014-12-08 15:09  haroel  阅读(337)  评论(0编辑  收藏  举报