标签:
- (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;
}
标签:
原文地址:http://www.cnblogs.com/iOS-mt/p/5509485.html