摘要:
iOSOpenDev-troubleshoothttps://github.com/kokoabim/iOSOpenDev/wiki/TroubleshootTroubleshootPage HistoryThis article will help you self-troubleshoot iOSOpenDev-specific issues you may encounter.iOSOpenDev Installer FailuresView installer logProblem:Installer fails with:Resolution:1. Press ⌘L to view
阅读全文
posted @ 2012-11-21 19:54
smartch
阅读(216)
推荐(0)
编辑
摘要:
添加头#import <sys/sysctl.h>代码如下:- (NSArray *)runningProcesses { int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_ALL, 0}; size_t miblen = 4; size_t size; int st = sysctl(mib, miblen, NULL, &size, NULL, 0); struct kinfo_proc * process = NULL; struct kinfo_proc * newprocess = NULL; do {...
阅读全文
posted @ 2012-11-21 16:43
smartch
阅读(428)
推荐(0)
编辑
摘要:
分2中情况:1.越狱之后的设备,可以获取完整的列表,获取也比较方便,方法如下:http://stackoverflow.com/questions/3878197/is-it-possible-to-get-information-about-all-apps-installed-on-iphone/3878220#3878220http://www.iphonedevsdk.com/forum/iphone-sdk-development/22289-possible-retrieve-these-information.html也有如下代码可以获取:NSFileManager* fileM
阅读全文
posted @ 2012-11-21 16:19
smartch
阅读(255)
推荐(0)
编辑
摘要:
自从NetworkController失效后, 一般都是采用 erica的方法https://github.com/erica/uidevice-extension/blob/master/UIDevice-IOKitExtensions.mUIDevice继承了IOKit_Extensions, 通过读取IO端口的方法, 取 device-imei这种方法比较繁琐, 并且 尽管IOKit是一个公开的framework, 但是非常底层地同硬件和内核服务打交道, 苹果不鼓励任何人使用它, 并且这样的程序进入AppStore审核时会被拒绝的所以,还不如直接使用CoreTelephony库,它也是一
阅读全文
posted @ 2012-11-21 16:18
smartch
阅读(1414)
推荐(0)
编辑
摘要:
ios 检测是否越狱代码尚未调研一定靠谱的方案,有个方案如下:@interface UIDevice (Helper)- (BOOL)isJailbroken;@end@implementation UIDevice (Helper)- (BOOL)isJailbroken {BOOL jailbroken = NO;NSString *cydiaPath = @"/Applications/Cydia.app";NSString *aptPath = @"/private/var/lib/apt/";if ([[NSFileManager defaul
阅读全文
posted @ 2012-11-21 15:40
smartch
阅读(256)
推荐(0)
编辑