4

Possible Duplicate:
How do I detect that an SDK app is running on a jailbroken phone?

My Applications don't have JailBroken Protections features implemented.

This often helps the attackers who would use the Jailborken device to analyse and exploit the vulnerabilities. How can I implement JailBroken protection that prevents applications running on the JailBroken device ?

Community
  • 1
  • 1
NISHAN gp
  • 121
  • 1
  • 1
  • 5
  • This is only to check if "Cydia" is installed. But in general I need to know how is it possible to prevent. – NISHAN gp Oct 29 '12 at 07:23
  • 1
    As you can see from the linked answers, you try to detect if the phone is jailbroken by one of various means. If you detect it, you have can deal with it, e.g. Show an alert or just close the app. But that doesn't come out of the box. – Holger Just Oct 29 '12 at 07:28
  • 1
    As Holger say's once you know it's jailbroken, it's up to you to handle it. Note that it is more then Cydia, also look for folders outside your sandbox like bin/bash – Frank Oct 29 '12 at 07:42

1 Answers1

0

Have a look at this SO article, it has the code you need.

You can also see if you can fork a process (This will only work on jailbroken phones)

And one more. And another.

Community
  • 1
  • 1
Frank
  • 16,476
  • 7
  • 38
  • 51