You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.7 KiB

  1. DTTJailbreakDetection
  2. =====================
  3. # tl;dr
  4. A library to detect an iOS device is jailbroken or not.
  5. # The good
  6. > Checking whether a device is jailbroken or not can have many advantages for your application. As we have already seen, an attacker can run tools like Cycript, GDB, Snoop-it etc to perform runtime analysis and steal sensitive data from within your application. If you are really looking to add an extra layer of security for your application, you should not allow your application to be run on a jailbroken device. [Prateek Gianchandani]
  7. # The bad
  8. > Please note that millions of users jailbreak their devices and hence not allowing an application to be run on a jailbroken device could have a significant impact on your user base. Another thing you can do is instead block some of the features in your application rather than disabing it entirely. [Prateek Gianchandani]
  9. # Installation
  10. The easiest way to install DTTJailbreakDetection is to use CocoaPods. Just add the following line to your Podfile:
  11. pod 'DTTJailbreakDetection'
  12. # Usage
  13. To start using DTTJailbreakDetection:
  14. ```obj-c
  15. #import <DTTJailbreakDetection/DTTJailbreakDetection.h>
  16. ```
  17. ## Example
  18. ```obj-c
  19. if ([DTTJailbreakDetection isJailbroken]) {
  20. UIAlertView * alert =[[UIAlertView alloc ] initWithTitle:@"System Requirements"
  21. message:@"This app is only supported on unmodified versions of iOS."
  22. delegate:self
  23. cancelButtonTitle:@"OK"
  24. otherButtonTitles:nil];
  25. [alert show];
  26. // End your app
  27. }
  28. ```
  29. # License
  30. [MIT](http://thi.mit-license.org/)