加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ios – 没有越狱检测

发布时间:2020-12-15 01:48:59 所属栏目:百科 来源:网络整理
导读:我正在尝试制作一个可以在越狱的iDevices上运行的应用程序.我已经进行了越狱检测: ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"cydia://"]]);{ UIAlertView *cydiaisinstalled=[[UIAlertView alloc]initWithTitle:@"Cydia is i
我正在尝试制作一个可以在越狱的iDevices上运行的应用程序.我已经进行了越狱检测:

([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"cydia://"]]);{
    UIAlertView *cydiaisinstalled=[[UIAlertView alloc]initWithTitle:@"Cydia is installed!"
                                                            message:@"You can use Respring!"
                                                           delegate:self
                                                  cancelButtonTitle:@"OK"
                                                  otherButtonTitles:nil];
    [cydiaisinstalled show];
}}

但现在我需要相反的事情.我需要一个非JAILBREAK检测.

我需要你的帮助我需要这个用于Weblin.请帮帮我!!!

解决方法

尝试访问应用程序沙箱外的任何文件.例如:

BOOL IsDeviceJailbroken(void) {
    #if TARGET_IPHONE_SIMULATOR
    return NO;
    #else
    return [[NSFileManager defaultManager] fileExistsAtPath: @"/bin/bash"];
    #endif
}

请注意,安装Cydia并使用越狱设备是两回事.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读