如何获取iPhone(Jailbroken)中所有已安装应用程序的列表?

时间:2013-03-05 10:53:06

标签: iphone

如何获取iPhone中所有已安装应用程序的列表(Jailbroken)。我想从appstore获取已安装应用的完整列表?

1 个答案:

答案 0 :(得分:1)

您无法从Appstore获取设备的安装应用程序列表,但您可以从设备获取安装应用程序的列表。我只是谷歌,并从

获得最佳答案

get list of installed applications on iphone objective-c

Get list of installed apps on iPhone

Get list of all installed apps

你可以这样: -

-(void)appInstalledList
{
      BOOL isDir = NO;
      NSDictionary *cacheDienter;
      NSDictionary *user;
      static NSString *const cacheFileName = @"com.apple.mobile.installation.plist";

    NSString *relativeCachePath = [[@"Library" stringByAppendingPathComponent: @"Caches"] stringByAppendingPathComponent: cacheFileName];
    NSString *path = [[NSHomeDirectory() stringByAppendingPathComponent: @"../.."] stringByAppendingPathComponent: relativeCachePath];
    if ([[NSFileManager defaultManager] fileExistsAtPath: path isDirectory: &isDir] && !isDir) // Ensure that file exists
    {
        cacheDienter    = [NSDictionary dictionaryWithContentsOfFile: path];
        user = [cacheDienter objectForKey: @"System"];
        NSLog(@"%@",user);
        // Then all the user (App Store /var/mobile/Applications) apps
    }
}