iOS app detect jailbreak

  • Post author:
  • Post category:其他


It depends what you mean by jailbreak. In the simple case, you should be able to see if Cydia is installed and go by that – something like

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

For hacked kernels, it’s a little (lot) more involved.



版权声明:本文为primer_programer原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。