我们知道 ios8 更新就除掉了 com.apple.mobile.installation.plist 那么我想重新构建一个怎么弄com.apple.mobile.installation.plist 里重要的就是 CFBundleIdentifier Path CFBundleExecutable
我用 applist 列出了 iOS 设备的 CFBundleIdentifier
现在问题是怎么得到 Path CFBundleExecutable?
我们知道 ios8 更新就除掉了 com.apple.mobile.installation.plist 那么我想重新构建一个怎么弄com.apple.mobile.installation.plist 里重要的就是 CFBundleIdentifier Path CFBundleExecutable
我用 applist 列出了 iOS 设备的 CFBundleIdentifier
现在问题是怎么得到 Path CFBundleExecutable?
AppList没有获取CFBundleExecutable的功能?
SBApplication *application = %c(SBApplicationController) sharedInstance] applicationsWithBundleIdentifier:@"bundle ID"];
用这个函数获取到一个SBApplication对象,这个类里面有返回可执行文件地址的函数,你一看就知道了
大神你这种方法 只适用于 tweak吧?
1)在 console 中怎么加载 SpringBoard 的库呢?
我的目的是写一个 console 程序 然后打印全部app的 CFBundleIdentifier Path CFBundleExecutable
applist 我只找到了CFBundleIdentifier的打印方法,
2) CFBundleExecutable 不知道怎么得到
ALApplicationList *apps = [ALApplicationList sharedApplicationList];
// sort the apps by display name. displayIdentifiers is an autoreleased object.
NSArray *displayIdentifiers = [apps.applications allKeys] sortedArrayUsingComparator:^NSComparisonResult(id obj1, id obj2) {
return [apps.applications objectForKey:obj1] caseInsensitiveCompare:[apps.applications objectForKey:obj2]];}];
NSLog(@“displayIdentifiers = %@\n”,displayIdentifiers);
最后打印出来是
2015-03-03 13:00:16.374 ApplistTest[1364:73756] displayIdentifiers = (
“com.taofang.iphone”,
“com.apple.appleaccount.AACredentialRecoveryDialog”,
“com.apple.AccountAuthenticationDialog”,
libactivator,
“com.apple.AppStore”,
“com.apple.AskPermissionUI”,
“com.aaronash.BarrelSettings”,
“com.apple.calculator”,
“com.apple.mobilecal”,
。。。。
在deb里面打包一个tweak,注入SpringBoard,你的command line tool需要信息时,直接找tweak要就可以了
我只知道 iOS app 可以喝 tweak 通信 因为 tweak 直接Hook 了 app 的功能
求知 command line tool 怎么和 tweak 通信啊?
就是进程间通信啊,论坛里搜一下
我最后解决了这个问题 方法是 iOS 8 中的 /var/mobile/Library/MobileInstallation/LastLaunchServicesMap.plist 里面有 identifier 和 path 再获得 ExecutePath
~_~ 结贴