Skip to content

Instantly share code, notes, and snippets.

@zedzhao
Created November 5, 2014 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zedzhao/7223890f1bdec4638722 to your computer and use it in GitHub Desktop.
Save zedzhao/7223890f1bdec4638722 to your computer and use it in GitHub Desktop.
Get all apps in the device
#include <objc/runtime.h>
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment