├── .theos ├── fakeroot └── packages │ ├── com.twodayslate.alwaysunlock-0.0.2 │ └── com.twodayslate.alwaysunlock-0.0.1 ├── theos ├── README.md ├── .gitignore ├── alwaysunlock.plist ├── control ├── Makefile └── Tweak.xm /.theos/fakeroot: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /theos: -------------------------------------------------------------------------------- 1 | /opt/theos -------------------------------------------------------------------------------- /.theos/packages/com.twodayslate.alwaysunlock-0.0.2: -------------------------------------------------------------------------------- 1 | 13 -------------------------------------------------------------------------------- /.theos/packages/com.twodayslate.alwaysunlock-0.0.1: -------------------------------------------------------------------------------- 1 | 0.0.1-12 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | == alwaysunlock == 2 | 3 | Uses libpassword and flipswitch -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .theos 2 | theos 3 | _ 4 | obj 5 | .DS_Store 6 | *.deb 7 | 8 | -------------------------------------------------------------------------------- /alwaysunlock.plist: -------------------------------------------------------------------------------- 1 | { Filter = { Bundles = ( "com.apple.springboard" ); }; } 2 | -------------------------------------------------------------------------------- /control: -------------------------------------------------------------------------------- 1 | Package: com.twodayslate.alwaysunlock 2 | Name: alwaysunlock 3 | Depends: mobilesubstrate 4 | Version: 0.0.3 5 | Architecture: iphoneos-arm 6 | Description: Unlock your device with any passcode! 7 | Maintainer: twodayslate 8 | Author: twodayslate 9 | Section: Tweaks 10 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | THEOS_DEVICE_IP = 127.0.0.1 2 | THEOS_DEVICE_PORT = 2222 3 | 4 | THEOS_PACKAGE_DIR_NAME = debs 5 | TARGET := iphone:clang 6 | ARCHS := armv7 arm64 7 | 8 | include theos/makefiles/common.mk 9 | 10 | BUNDLE_NAME = alwaysunlock 11 | alwaysunlock_FILES = Tweak.xm 12 | alwaysunlock_LIBRARIES = Pass flipswitch substrate 13 | alwaysunlock_INSTALL_PATH = /Library/Switches 14 | alwaysunlock_ARCHS = armv7 armv7s arm64 15 | 16 | include $(THEOS_MAKE_PATH)/bundle.mk 17 | 18 | after-install:: 19 | install.exec "killall -9 SpringBoard" 20 | -------------------------------------------------------------------------------- /Tweak.xm: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | BOOL enabled = YES; 6 | 7 | @interface alwaysunlockSwitch : NSObject 8 | @end 9 | 10 | @interface alwaysunlock : NSObject 11 | @end 12 | 13 | @implementation alwaysunlock 14 | -(BOOL)shouldAllowPasscode:(NSString*)password 15 | { 16 | return enabled ? YES : NO; 17 | } 18 | @end 19 | 20 | @implementation alwaysunlockSwitch 21 | -(FSSwitchState)stateForSwitchIdentifier:(NSString *)switchIdentifier 22 | { 23 | return enabled ? FSSwitchStateOn : FSSwitchStateOff; 24 | } 25 | -(void)applyState:(FSSwitchState)newState forSwitchIdentifier:(NSString *)switchIdentifier 26 | { 27 | switch (newState){ 28 | case FSSwitchStateIndeterminate: return; 29 | case FSSwitchStateOff: { enabled = NO; return; } 30 | case FSSwitchStateOn: { enabled = YES; return; } 31 | 32 | } 33 | } 34 | - (NSString *)titleForSwitchIdentifier:(NSString *)switchIdentifier { 35 | return @"alwaysunlock"; 36 | } 37 | @end 38 | 39 | %ctor 40 | { 41 | [[LibPass sharedInstance] registerDelegate:[[[alwaysunlock alloc] init] retain]]; 42 | } --------------------------------------------------------------------------------