Created
August 7, 2014 06:49
-
-
Save devbug/98f46601944c6bfeef77 to your computer and use it in GitHub Desktop.
MSHookInterface example with THEOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
#import <substrate.h> | |
/** | |
* | |
* Aug 7 15:46:09 deVbugs-i5 SpringBoard[12620] <Warning>: @@@@@@@@@@@ <SpringBoard: 0x156d4330>!!!!!!!!!!!!!!!!!!! | |
* | |
*/ | |
%hook SpringBoard | |
- (void)applicationDidFinishLaunching:(id)application { | |
%orig; | |
NSLog(@"@@@@@@@@@@@ %@", self); | |
} | |
%end | |
MSHookInterface(SpringBoard, MySpringBoard, UIApplication) | |
@implementation MySpringBoard | |
- (NSString *)description { | |
NSString *description = [super description]; | |
description = [description stringByAppendingString:@"!!!!!!!!!!!!!!!!!!!"]; | |
return description; | |
} | |
@end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment