美文网首页
swift获取越狱信息

swift获取越狱信息

作者: 6a948902fef0 | 来源:发表于2017-08-15 14:53 被阅读67次

NSFileManager *fm = [NSFileManager defaultManager];
NSMutableString *jodoEnrche = [NSMutableString string];
NSArray *enrfile = @[@"/Applications/Cydia.app",
@"/Library/MobileSubstrate/MobileSubstrate.dylib",
@"/bin/bash",
@"/usr/sbin/sshd",
@"/etc/apt",
@"/private/var/lib/apt/"];
for (NSString *path in enrfile) {
if([fm fileExistsAtPath:path])
{
[jodoEnrche appendString:@"1"];
}
else
{
[jodoEnrche appendString:@"0"];
}
}

相关文章

网友评论

      本文标题:swift获取越狱信息

      本文链接:https://www.haomeiwen.com/subject/opndnttx.html