19
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JailBreak端末のチェック

Last updated at Posted at 2013-03-17

不当にアプリを解析されたくないときに。
SOFでググった結果、Cydiaがインストールされてるかチェックするのが一番手っ取り早いみたい。
もちろんCydiaがインストールされていることがJailBreakされた端末であることの必要十分条件ではないが、ほとんどのJailBreak端末に見られる傾向なので一定有効ではありそう。

howToDetectJailBrokenDevice
NSString *filePath = @"/Applications/Cydia.app";
if ([[NSFileManager defaultManager] fileExistsAtPath:filePath])
{
   // do something useful
}

JB端末でNHNのアプリを起動するとAlertViewが立ち上がりゲーム起動できない状態となるが、上記コードのようなチェックをしているのだろうか。
(見当違いかもしれないし、別の手法もあるのかもしれない)

参考
LINE POP・LINE バブルで「お使いのスマートフォン端末が正規の状態ではない場合は、ゲームを起動できません」と表示される理由と対策 | 情報科学屋さんを目指す人のメモ
iphone - How do I detect that an SDK app is running on a jailbroken phone? - Stack Overflow

19
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?