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
%hook SBDeviceLockController | |
-(BOOL)isPasswordProtected | |
{ | |
return %orig || ([JWLPiano sharedInstance].isForcingPianoToShow && [JWLPiano sharedInstance].isEnabled); | |
} | |
%end |
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
UIView *re = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds]; | |
re.backgroundColor = [UIColor redColor]; | |
re.layer.borderWidth = 2; | |
re.layer.borderColor = [UIColor greenColor].CGColor; | |
self.view = re; | |
[self.view setAutoresizesSubviews:YES]; | |
[self.view setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight]; | |
[re release]; | |
//[self.view setAutoresizesSubviews: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
#include "_own_/Preferences5/Preferences.h" | |
@interface PathCell : PSTableCell <PreferencesTableCustomView,UIGestureRecognizerDelegate> | |
{ | |
NSArray * directoryContents; | |
} | |
@end | |
@implementation PathCell | |
- (id)initWithSpecifier:(PSSpecifier *)specifier |
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
UIImage* i = _UICreateScreenUIImage(); | |
UIImageView* bg = [[UIImageView alloc] initWithImage:i]; | |
static NSArray *filters; | |
if (!filters) { | |
CAFilter *filter = [CAFilter filterWithType:@"gaussianBlur"]; | |
[filter setValue:[NSNumber numberWithFloat:10] forKey:@"inputRadius"]; | |
[filter setValue:[NSNumber numberWithBool:YES] forKey:@"inputHardEdges"]; | |
filters = [[NSArray alloc] initWithObjects:filter, nil]; | |
} |
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
<dict> | |
<key>cell</key> <string>PSLinkCell</string> | |
<key>bundle</key> <string>AppList</string> | |
<key>isController</key> <string>1</string> | |
<key>label</key> <string>Hide apps</string> | |
<key>ALSettingsPath</key> <string>/var/mobile/Library/Preferences/com.jontelang.instalauncherprefs.plist</string> | |
<key>ALSingleEnabledMode</key> <false/> | |
<key>ALSettingsKeyPrefix</key> <string>ILBlacklist-</string> | |
<key>ALSectionDescriptors</key> <array> | |
<dict> |
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
UIImage* i = _UICreateScreenUIImage(); | |
UIImageView* bg = [[UIImageView alloc] initWithImage:i]; | |
static NSArray *filters; | |
if (!filters) { | |
CAFilter *filter = [CAFilter filterWithType:@"gaussianBlur"]; | |
[filter setValue:[NSNumber numberWithFloat:10] forKey:@"inputRadius"]; | |
[filter setValue:[NSNumber numberWithBool:YES] forKey:@"inputHardEdges"]; | |
filters = [[NSArray alloc] initWithObjects:filter, nil]; | |
} | |
CALayer *layer = bg.layer; |
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
UIImage* i = _UICreateScreenUIImage(); | |
UIImageView* bg = [[UIImageView alloc] initWithImage:i]; | |
static NSArray *filters; | |
if (!filters) { | |
CAFilter *filter = [CAFilter filterWithType:@"gaussianBlur"]; | |
[filter setValue:[NSNumber numberWithFloat:10.0f] forKey:@"inputRadius"]; | |
[filter setValue:[NSNumber numberWithBool:YES] forKey:@"inputHardEdges"]; | |
filters = [[NSArray alloc] initWithObjects:filter, nil]; | |
} | |
CALayer *layer = bg.layer; |
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 void LoadSettings() | |
{ | |
NSMutableDictionary *prefs = [[NSMutableDictionary alloc] initWithContentsOfFile:@"/var/mobile/Library/Preferences/com.jontelang.ncenoughprefs.plist"]; | |
if(prefs){ | |
isEnabled = [[prefs valueForKey:@"isEnabled"] boolValue]; | |
} | |
} | |
%ctor { | |
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (void *)LoadSettings, CFSTR("com.jontelang.ncenoughprefs/settingschanged"), NULL, CFNotificationSuspensionBehaviorCoalesce); |
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
hook SBBulletinListController | |
-(void)positionListViewAtY:(float)arg1 | |
{ | |
NSLog(@"1"); | |
SBBulletinListView *xxx = MSHookIvar<SBBulletinListView*>(self,"_listView"); | |
NSLog(@"2"); | |
float original_height = [xxx onscreenY]; | |
NSLog(@"3"); |
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
UInt32 otherAudioIsPlaying; | |
UInt32 propertySize = sizeof (otherAudioIsPlaying); | |
AudioSessionGetProperty ( | |
kAudioSessionProperty_OtherAudioIsPlaying, | |
&propertySize, | |
&otherAudioIsPlaying | |
); | |
NSLog(@"isother? %u", otherAudioIsPlaying); |