How do I detect that an iOS app is running on a jailbroken phone?

后端 未结 17 1577
情书的邮戳
情书的邮戳 2020-11-22 10:48

If I want my app to behave differently on a jailbroken iPhone, how would I go about determining this?

17条回答
  •  广开言路
    2020-11-22 11:23

    You can detect if a device is JailBroken or not by checking for the following:

    • Cydia is installed
    • Verify some of the system paths
    • Perform a sandbox integrity check
    • Perform symlink verification
    • Verify whether you create and write files outside your Sandbox

    There is an open source library I created from various articles and books. Try it out on GitHub!

提交回复
热议问题