@interface SBApplication : NSObject -(id)bundleIdentifier; @end #pragma mark 隐藏应用图标 %hook SBIconModel - (void)addIconForApplication:(SBApplication *)app{ PY_Log(@"[++++]SBIconModel:addIconForApplication"); %log; // TODO: 动态获取需要隐藏的bundleId即可,这里用微信做实验 // By PiaoYun // www.dllhook.com NSString *bundleId = [app bundleIdentifier]; // 略过SpringBoard if(![bundleId isEqualToString:@"com.apple.springboard"]){ if([bundleId isEqualToString:@"com.tencent.xin"]){ return; } } return %orig; }
发表评论