Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get list of all installed application in ios 8

How to get list of all installed Applications on iPhone device programmatically in iOS 8.

If anyone knows the solution by using private APIs(but device non-jailbroken) then its well and good.

I know that it is possible using iTunes Search API, but it gives only those applications that are installed from iTunes. I need all the applications on device, whether it is from iTunes or user-developed or system apps.

like image 721
Mehul Thakkar Avatar asked Nov 17 '14 09:11

Mehul Thakkar


People also ask

How can I see the full app list?

Swipe up from the bottom of your screen to the top. If you get All Apps , tap it. Tap the app that you want to open.

How do I see a list of all My apps on iPad?

Summon Spotlight by tapping and holding on the iOS home screen and pulling down. Enter any single character, like a slash (/), dash (-), or a period (.) to see the application list.


2 Answers

I refactored above code for Xcode 7.3. It is working perfectly fine on iOS9.

 #include <objc/runtime.h>
 Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
 SEL selector=NSSelectorFromString(@"defaultWorkspace");
 NSObject* workspace = [LSApplicationWorkspace_class performSelector:selector];
 SEL selectorALL = NSSelectorFromString(@"allApplications");
 NSLog(@"apps: %@", [workspace performSelector:selectorALL]);
like image 129
Stalin Pusparaj Avatar answered Sep 22 '22 01:09

Stalin Pusparaj


try this. it works,I've tested.

#include <objc/runtime.h>
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);
like image 39
Roxasora Avatar answered Sep 23 '22 01:09

Roxasora