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

后端 未结 17 1552
情书的邮戳
情书的邮戳 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:31

    The most sophisticated method I know is using objc_copyImageNames() function. It returns a list of currently loaded libraries and since most people have MobileSubstrate on jailbroken devices and most iAP crack tools depend on it, at least some MobileSubstrate libraries will show up.

提交回复
热议问题