从iOS应用程序中识别越狱设备 [英] Identify jailbroken device from iOS application

查看:160
本文介绍了从iOS应用程序中识别越狱设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个用于商业目的的iPhone应用程序,它在SQlite数据库中存储了许多记录。因此,我的客户不希望该应用程序在越狱设备上运行。

I am developing an iPhone application which is used for business purposes and it is storing many number of records in SQlite database. So my client don't want the app to run on the jailbroken devices.

因此,如何在应用程序启动期间识别被监禁的设备并阻止用户继续进行通过显示一些消息。

So how to identify the jail broken devices during the app launch and preventing the user from proceeding further by showing some message.

提前致谢。

推荐答案

你可以通过代码检测应用程序是否在监狱设备上运行。

通过这种方式,您可以弹出警报并关闭应用程序。

你可以做任何你想做的事。

You can detect through code that if the app is running on a jail broken device or not.
Through that way you can pop up a alert and close the app.
You can do whatever you want to do.

这是一个教程。

检测

NSString *filePath = @"/Applications/Cydia.app";
if ([[NSFileManager defaultManager] fileExistsAtPath:filePath])
{
   // do something useful
}

此外,如果你想要完整的解决方案,你可以在tapjoy sdk代码中看到。

Also if you want complete solution you can see in tapjoy sdk code.

他们正在侦测越狱的iphone。

They are detecting jailbroken iphone.

这是tapjoy网址 tapjoy

Here is tapjoy URL tapjoy

这篇关于从iOS应用程序中识别越狱设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆