doorxp

Blog

private api


 Class LSApplicationWorkspace = objc_getClass("LSApplicationWorkspace");


    




    id workspace = [LSApplicationWorkspace  performSelector:NSSelectorFromString(@"defaultWorkspace")];


    NSArray *appList = [workspace performSelector:@selector(allApplications)];


    


    for (id LSApplicationProxy_class in appList)


        {


            NSString *bundleID = [LSApplicationProxy_class performSelector:@selector(applicationIdentifier)];


            NSString *version =  [LSApplicationProxy_class performSelector:@selector(bundleVersion)];


            NSString *shortVersionString =  [LSApplicationProxy_class performSelector:@selector(shortVersionString)];


            NSLog(@"bundleID:%@\n version: %@\n ,shortVersionString:%@\n", bundleID,version,shortVersionString);


        }


    


    NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/FTServices.framework"];


    BOOL success = [b load];


    


    Class FTDeviceSupport = NSClassFromString(@"FTDeviceSupport");


    id si = [FTDeviceSupport valueForKey:@"sharedInstance"];


    


    NSLog(@"-- %@", [si valueForKey:@"deviceColor"]);

发表评论:

«   2024年11月   »
123
45678910
11121314151617
18192021222324
252627282930
控制面板
您好,欢迎到访网站!
  查看权限
网站分类
搜索
最新留言

    Powered By Z-BlogPHP 1.5.1 Zero

    Copyright doorxp.com Rights Reserved.