How do I hook multiple process with Logos ?
I’ve given the com.apple.springboard in MyTweak.plist
but I have to hook many apps with my tweak …
I coded like this but not worked or hooked …
…
…
%ctor {
NSString* processName = [[NSProcessInfo processInfo] processName];
if( [processName isEqualToString:@"Facebook"]) {
%init(HookForFacebook);
}
}
What would I need to be add ? thanks
Page 59 on the book has already made a clear explanation of the filter file.
For multi-process hook, the filter looks like this:
{
Filter = {
Executables = (
callservicesd,
imagent,
identityservicesd,
);
Bundles = (
"com.apple.Preferences",
"com.apple.facetime",
"com.apple.springboard",
"com.apple.mobilephone",
"com.apple.MobileSMS",
"com.apple.InCallService",
);
};
}
And you can tell each process from others in the ctor just like what you did.
3 个赞