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

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

    Some common files to check for: /Library/MobileSubstrate/MobileSubstrate.dylib

    /Applications/Cydia.app

    /var/cache/apt

    /var/lib/apt

    /var/lib/cydia

    /var/log/syslog

    /var/tmp/cydia.log

    /bin/bash

    /bin/sh

    /usr/sbin/sshd

    /usr/libexec/ssh-keysign

    /etc/ssh/sshd_config

    /etc/apt

    Most check for Cydia related files.

提交回复
热议问题