如何在不检查 SignerIdentity 的情况下检测应用程序是否已被破解? [英] How do I detect if an app has been cracked without examining the SignerIdentity?

查看:22
本文介绍了如何在不检查 SignerIdentity 的情况下检测应用程序是否已被破解?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

曾经有一种方法可以检查应用程序是否是从 App Store 购买的,以防止破解:

There used to be a method to check if an application was purchased from the App Store, to protect against cracking:

NSBundle *bundle = [NSBundle mainBundle]; 
NSDictionary *info = [bundle infoDictionary]; 
if ([info objectForKey: @"SignerIdentity"] != nil) 
{ /* do something */  }

但是这种方法不再有效,因为破解者已经找到了改变 Info.plist 的方法.我知道这个较旧的问题,但那里提供的答案依赖于上述内容技术,不再有效.

but this method no longer works because the crackers have found ways around altering the Info.plist. I'm aware of this older question, but the answers presented there rely on the above technique, which is no longer valid.

如何在不读取 Info.plist 中的 SignerIdentity 的情况下检测您的应用程序是否被破解或从 App Store 合法购买?

How can you detect whether your application was cracked or purchased legitimately from the App Store without reading the SignerIdentity from the Info.plist?

推荐答案

虽然不是检查应用程序是否是从 App Store 购买的,但我使用此代码来检查我的应用程序是否在越狱设备上运行:

While not a check to see if an Application was purchased from the App Store, I use this code to check to see if my application is running on a jailbroken device:

+(BOOL)isJailbroken { 
    NSURL* url = [NSURL URLWithString:@"cydia://package/com.example.package"]; 
    return [[UIApplication sharedApplication] canOpenURL:url]; 
} 

这篇关于如何在不检查 SignerIdentity 的情况下检测应用程序是否已被破解?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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