My friend got a jailbroken iPad. When he installed Business Model Generation App from Installous and tried to use it, the application showed a UIAlertView
with the following message:
Does anybody know how to do that?
I have 2 ideas:
flag = NO
, you show the UIAlertView
.Am I right? How can I implement this feature?
You can detect two files: SC_Info
and iTunesMetadata.plist
.
If you can't find them, then your app was pirated: these files are installed after downloading from the App Store.
This is the code to check:
NSString * bundlePath = [ [NSBundle mainBundle] bundlePath ];
if ( ! [ [NSFileManager defaultManager] fileExistsAtPath: ( @"%@/SC_Info", bundlePath ) ] )
{
// jailbroken
}
if ( ! [ [NSFileManager defaultManager] fileExistsAtPath: ( @"%@/iTunesMetadata.plist", bundlePath ) ] )
{
// jailbroken
}
There are some libraries around which can detect if an app is cracked (and jailbroken as well), this question gives a good overview but basically its done by checking the signer identity
one library is AntiCrack. I havent used this library so I dont know how well it works
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With