Detect if iOS application is hacked

My friend got a jailbroken iPad. When he installed the application for creating a business model from Installous and tried to use it, the application showed UIAlertView with the following message: Hacked version

Does anyone know how to do this?

I have 2 ideas:

  • If there is a certain flag when downloading the application from the App Store, you can use this flag: if flag = NO , you show UIAlertView .
  • Something with the server (but in this case you should know all the device identifiers and who installed your application from the App Store).

I'm right? How can I implement this feature?

+7
source share
3 answers

You can find two files: SC_Info and iTunesMetadata.​plist .

If you cannot find them, your application 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 } 
+9
source

There are several libraries where you can find that the application was jailbroken (and also jailbroken jailbroken), this question gives a good overview, but basically its verification of the subscriber’s identity

one AntiCrack library. I have not used this library, so I do not know how it works.

+2
source

It's pretty simple, but you can check if the cydia application is installed (by checking if its folder exists). If it is installed, you do not trust the device. This leaves the risk of incorrectly releasing hacked iPhone / iPad downloading your application from the application store.

-3
source

All Articles