首页 > 代码库 > 判断设备是否越狱的方法

判断设备是否越狱的方法

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

 

判断设备是否越狱的方法