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
struct SBIconImageInfo { | |
struct CGSize size; | |
double scale; | |
double continuousCornerRadius; | |
}; | |
- (UIImage *)iconImageForIdentifier:(NSString *)identifier { | |
SBIconController *iconController = [NSClassFromString(@"SBIconController") sharedInstance]; | |
SBIcon *icon = [iconController.model expectedIconForDisplayIdentifier:identifier]; |
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
- (void)openShortcut:(SBSApplicationShortcutItem *)shortcutItem { | |
UIHandleApplicationShortcutAction *openAction = [[UIHandleApplicationShortcutAction alloc] initWithSBSShortcutItem:shortcutItem]; | |
NSDictionary *activationOptions = @{ | |
@"__ActivateSuspended" : [NSNumber numberWithBool:(shortcutItem.activationMode == 1)], | |
@"__Actions": @[ | |
openAction | |
], | |
@"__PromptUnlockDevice" : [NSNumber numberWithBool:YES], |
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
cycript -p SpringBoard | |
//Not sure if this one was required but I did run it first so theres that | |
[choose(SBFDeviceLockController)[0] _clearUnblockTimer]; | |
[choose(SBFDeviceLockController)[0] _clearBlockedState]; |