How do I detect if an app has been cracked without examining the SignerIdentity?

前端 未结 4 1460
暖寄归人
暖寄归人 2021-01-30 05:03

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]; 
NS         


        
4条回答
  •  迷失自我
    2021-01-30 05:27

    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]; 
    } 
    

提交回复
热议问题