Created
January 13, 2014 16:47
-
-
Save n00neimp0rtant/8403581 to your computer and use it in GitHub Desktop.
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
static NSString *test; | |
%hook SpringBoard | |
-(id)init { | |
id obj = %orig; | |
test = @"i'm from springboard"; | |
return obj; | |
} | |
%end | |
%hook MyAppStoreApp | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
if (test != nil && [test isEqualToString:@"i'm from springboard"]) { | |
NSLog(@"i can access SB's static var"); | |
} else { | |
NSLog(@"i cannot access SB's static var"); | |
} | |
} | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment