I am looking for a global function
for apps in iOS 7.
More specifically, I want to injected code into the app(s) upon launch, which will only effect the app
, and not the SpringBoard
.
I have tried a couple of things but they only affect the SpringBoard
:
%hook SBApplicationIcon
- (id)application {
return %orig;
}
- (id)initWithApplication:(id)arg1 {
return %orig;
}
%end
%hook SBApplicationController
- (id)init {
return %orig;
}
%end
%hook SBUIController
- (void)launchIcon:(id)arg1 fromLocation:(int)arg2 {
%orig;
}
- (id)contentView {
return %orig;
}
%end
%hook SBApplication
- (void)didLaunch:(id)arg1 {
%orig;
}
%end
These are just a couple of examples of functions
I've tried.
I suspect the filter needs to be changed as well, but that depends on where the function is located ofc (com.apple.springboard
is set atm).
I was received a tip to set the filter to *
, but that doesn't do me much good if I don't know what function
to %hook
.
Please explain your answer if possible.