Created
July 23, 2012 01:19
-
-
Save taberh/3161590 to your computer and use it in GitHub Desktop.
check jailbreak device for iPhone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BOOL isJailbreak() | |
{ | |
int res = access("/var/mobile/Library/AddressBook/AddressBook.sqlitedb", F_OK); | |
if (res != 0) | |
return NO; | |
return YES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment