Skip to content

Instantly share code, notes, and snippets.

@devbug
Created August 7, 2014 06:49
Show Gist options
  • Save devbug/98f46601944c6bfeef77 to your computer and use it in GitHub Desktop.
Save devbug/98f46601944c6bfeef77 to your computer and use it in GitHub Desktop.
MSHookInterface example with THEOS
#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