Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %ctor {
- if ([NSBundle.mainBundle.bundleIdentifier isEqualToString:@"com.apple.springboard"]) {
- [OBJCIPC registerIncomingMessageFromAppHandlerForMessageName:@"respringnow" handler:^NSDictionary *(NSDictionary *message) {
- [[objc_getClass("FBSystemService") sharedInstance] exitAndRelaunch:1];
- return nil;
- }]; }
- return; }
- /////////////////////
- [OBJCIPC sendMessageToSpringBoardWithMessageName:@"respringnow" dictionary:@{ @"respring": @"now" } replyHandler:^(NSDictionary *response) {
- NSLog(@"Received reply from SpringBoard: %@", response);
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement