码迷,mamicode.com
首页 > 移动开发 > 详细

IOS判断设备是否已越狱

时间:2016-02-22 19:03:26      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:

转自:http://www.cnblogs.com/supercheng/archive/2012/12/05/2804166.html

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

IOS判断设备是否已越狱

标签:

原文地址:http://www.cnblogs.com/muyushifang07/p/5207740.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!