Skip to content
Guest Big Announcement

[help]custom lock screen slider

Featured Replies

  • Replies 25
  • Views 4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Author

Castix its not outdated its for ios8 i get it from flex i on l'y get the NSStringmutable from google

I want to build text editor for slider

I dont know how to make it with this

I make a tweaks with some function i want to add slider text custom

Castix its not outdated its for ios8 i get it from flex i on l'y get the NSStringmutable from google

what castix said is right. that language which you mentioned above is a bit old. nowadays new code is used like the one mentioned above as it is quite common and easy to use with the available headers on iOS


%hook SBLockScreenView

 

- (id)_defaultSlideToUnlockText

 

{

     NSDictionary *unlocktext = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/preference.plist"]];

     return [[unlocktext objectForKey:@"kKey"] intValue];

     NSLog(unlocktext);

     return 0;

}

 

%end


<dict>

                <key>cell</key>

                    <string>PSGroupCell</string>

                <key>label</key>

                    <string>Custom Unlock Text</string>

            </dict>

            <dict>

                <key>cell</key>

                    <string>PSEditTextCell</string

                <key>default</key>

                    <integer>preference</integer>

                <key>defaults</key>

                    <string>preference</string>

                <key>key</key>

                    <string>kKey</string>

                <key>label</key>

                    <string></string>

            <key>isNumeric</key>

    <false/>

    <key>noAutoCorrect</key>

    <true/>

</dict>

  • Author

Get this error

 

http://i.imgur.com/lD0h61t.jpg

This is m'y tweak.xm

 

#import <Foundation/Foundation>

 

#define kPath @"/var/mobile/Library/Preferences/SBMultiFunction.plist"

 

%hook SpringBoard

 

-(long long)homeScreenRotationStyle {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"k3"] boolValue]){

return 2;

}

[prefs release];

return %orig;

}

 

-(BOOL)lockScreenCameraSupported {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"k1"] boolValue]){

return false;

}

[prefs release];

return %orig;

}

 

%end

 

%hook SBFolderBackgroundView

 

-(bool)_shouldUseDarkBackground {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"k4"] boolValue]){

return TRUE;

}

[prefs release];

return %orig;

}

 

%end

 

%hook SBFWallpaperSettings

 

-(bool)replaceBlurs {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"ka"] boolValue]){

return TRUE;

}

[prefs release];

return %orig;

}

 

%end

 

%hook SBIconColorSettings

 

-(double)colorAlpha {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"ka"] boolValue]){

return 0;

}

[prefs release];

return %orig;

}

 

-(double)whiteAlpha {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"ka"] boolValue]){

return 0;

}

[prefs release];

return %orig;

}

 

-(bool)blurryFolderIcon {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"ka"] boolValue]){

return false;

}

[prefs release];

return %orig;

}

 

%end

 

%hook SBFolderSettings

 

-(BOOL)allowNestedFolders {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"kc"] boolValue]){

return TRUE;

}

[prefs release];

return %orig;

}

 

-(void)setAllowNestedFolders:(BOOL)fp8 {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"kc"] boolValue]){

%orig(fp8);

fp8 = TRUE;

}

[prefs release];

return %orig;

}

 

%end

 

%hook SBLockOverlayStyleProperties

 

-(double) blurRadius{

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"kB"] boolValue]){

return 0;

}

[prefs release];

return %orig;

}

 

-(double)tintAlpha {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"kB"] boolValue]){

return 0;

}

[prefs release];

return %orig;

}

 

%end

 

%hook SBSearchScrollView

 

-(BOOL)gestureRecognizerShouldBegin:(id)fp8{

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"kC"] boolValue]){

return false;

}

[prefs release];

return %orig;

}

 

%end

 

%hook SBLockScreenManager

 

-(BOOL) _shouldAutoUnlockFromUnlockSource:(int)fp8 {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"kD"] boolValue]){

return TRUE;

}

[prefs release];

return %orig;

}

 

%end

 

%hook SBLockScreenView

 

- (id)_defaultSlideToUnlockText

 

{

NSDictionary *unlocktext = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/SBMultiFunction.plist"]];

return [[unlocktext objectForKey:@"kKey"] intValue];

NSLog(unlocktext);

return 0;

}

 

%end

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.