R
+ (id)sharedInstance;
- (bool)_currentlyShowsPercentage;
@end
%hook SpringBoard
static SpringBoard *__strong sharedInstance;
- (id)init {
id original = %orig;
sharedInstance = original;
return original;
}
%new
+ (id)sharedInstance {
return sharedInstance;
}
%end
void loader(void) {
[[objc_getClass("SpringBoard") sharedInstance] _currentlyShowsPercentage];
}
I want to force them to be called so it can update itself immediately