I know a little bit about sandbox. However, can I get a list of total applications installed in user's iPhone.I want this to be done with the all iPhone device whether they are jailbroken or not.
Asked
Active
Viewed 412 times
1 Answers
1
I got a list of all installed application in my iPhone. It uses private framework but it's not jail broken device.
#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]);
I have tried this code and it's workings well on iOS9.

ramesh bhuja
- 171
- 1
- 9
-
absolutely great! thanks a lot buddy!! upvoted! – Anurag Sharma Jul 28 '16 at 10:28
-
can i get the icons of all installed apps? – Anurag Sharma Jul 28 '16 at 10:29
-
I have googled it a lot but not able to fetch the icons using bundle identifier, I need it urgently. Any help will be appreciated. – Anurag Sharma Jul 28 '16 at 11:47