├── .github ├── FUNDING.yml └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── Tweak.xm ├── control ├── lockscreenwithoutbutton.plist └── release └── com.haoict.lockscreenwithoutbutton_0.0.1_iphoneos-arm.deb /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [haoict] 2 | custom: ["https://www.paypal.me/haoict"] -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | --- 11 | name: Bug report 12 | about: Report a bug 13 | title: '' 14 | labels: bug 15 | assignees: '' 16 | 17 | --- 18 | 19 | ### Environment 20 | - Platform+version: **iOS 14** 21 | - Tweak version: **0.0.0** 22 | - Do you have jailbreak detection bypass tweaks (FlyJB, HideJB, kernbypass, ...): **Yes/No** 23 | - If yes, are you sure that it does not block this tweak: **Yes/No** 24 | 25 | ### Bug Report 26 | 27 | Note: Providing steps to reproduce, screenshot or screen recording are always helpful! 28 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .theos 2 | packages -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Lock Screen Without Button 2 | 3 | Copyright (c) 2020 Hao Nguyen 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | ifeq ($(SIMULATOR), 1) 2 | ARCHS = x86_64 3 | TARGET = simulator:clang:13.7:12.0 4 | else 5 | ARCHS = arm64 arm64e 6 | TARGET = iphone:clang:13.6:12.0 7 | endif 8 | 9 | PREFIX = "$(THEOS)/toolchain/XcodeDefault-11.5.xctoolchain/usr/bin/" 10 | 11 | INSTALL_TARGET_PROCESSES = SpringBoard 12 | 13 | include $(THEOS)/makefiles/common.mk 14 | 15 | TWEAK_NAME = lockscreenwithoutbutton 16 | lockscreenwithoutbutton_FILES = Tweak.xm 17 | lockscreenwithoutbutton_CFLAGS = -fobjc-arc 18 | 19 | include $(THEOS_MAKE_PATH)/tweak.mk 20 | 21 | ifneq (,$(filter x86_64,$(ARCHS))) 22 | setup:: clean all 23 | @rm -f /opt/simject/$(TWEAK_NAME).dylib 24 | @cp -v $(THEOS_OBJ_DIR)/$(TWEAK_NAME).dylib /opt/simject/$(TWEAK_NAME).dylib 25 | @codesign -f -s - /opt/simject/$(TWEAK_NAME).dylib 26 | @cp -v $(PWD)/$(TWEAK_NAME).plist /opt/simject 27 | endif 28 | 29 | clean:: 30 | rm -rf .theos packages 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Lock Screen Without Button 2 | 3 | [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) 4 | [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](./LICENSE) 5 | 6 | Simple tweak to lock Screen without button, just double tap from Home 7 | Super lightweight. No battery affect. Just install, no preferences 8 | 9 | ## Features 10 | 11 | - Lock Screen without button, just double tap from Home 12 | - Support iOS 12 - 14 13 | 14 | ## Cydia Repo 15 | 16 | [https://haoict.github.io/cydia](https://haoict.github.io/cydia) 17 | 18 | ## Screenshot 19 | 20 | N/A 21 | 22 | ## Building 23 | 24 | [Theos](https://github.com/theos/theos) required. 25 | 26 | ```bash 27 | make do 28 | ``` 29 | 30 | ## Contributors 31 | 32 | Contributions of any kind welcome! 33 | 34 | ## License 35 | 36 | Licensed under the [GPLv3 License](./LICENSE), Copyright © 2020-present Hao Nguyen 37 | 38 | ## [Note] Advanced thingy for development 39 | 40 |
41 | Set up SSH Key - Click to expand! 42 | 43 | Add your device IP in `~/.bash_profile` or `~/.zprofile` or in project's `Makefile` for faster deployment 44 | ```bash 45 | THEOS_DEVICE_IP = 192.168.1.12 46 | ``` 47 | 48 | Add SSH key for target deploy device so you don't have to enter ssh root password every time 49 | 50 | ```bash 51 | cat ~/.ssh/id_rsa.pub | ssh -p 22 root@192.168.1.12 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" 52 | ``` 53 | 54 | Build the final package 55 | 56 | ```bash 57 | FINALPACKAGE=1 make package 58 | ``` 59 | 60 |
61 | 62 |
63 | Build with Simulator (simject) - Click to expand! 64 | 65 | Set up simject: https://github.com/angelXwind/simject 66 | 67 | Get 13.7 patched SDK from https://github.com/opa334/sdks, copy iPhoneSimulator13.7.sdk to $THEOS/sdks folder 68 | 69 | Build and setup with simject 70 | ```bash 71 | SIMULATOR=1 make 72 | 73 | SIMULATOR=1 make setup 74 | ``` 75 | 76 | Respring simulator 77 | ```bash 78 | ./simject/bin/resim 79 | ``` 80 | 81 |
82 | -------------------------------------------------------------------------------- /Tweak.xm: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface SpringBoard : UIApplication 5 | - (void)_simulateLockButtonPress; 6 | @end 7 | 8 | %hook SBIconListView 9 | - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { 10 | if ([[touches anyObject] tapCount] == 2) [(SpringBoard *)[%c(SpringBoard) sharedApplication] _simulateLockButtonPress]; 11 | } 12 | %end 13 | -------------------------------------------------------------------------------- /control: -------------------------------------------------------------------------------- 1 | Package: com.haoict.lockscreenwithoutbutton 2 | Name: Lock Screen Without Button 3 | Depends: mobilesubstrate 4 | Version: 0.0.1 5 | Architecture: iphoneos-arm 6 | Description: Lock Screen without button, just double tap from Home 7 | Maintainer: Hao Nguyen 8 | Author: Hao Nguyen 9 | Section: Tweaks 10 | -------------------------------------------------------------------------------- /lockscreenwithoutbutton.plist: -------------------------------------------------------------------------------- 1 | { Filter = { Bundles = ( "com.apple.springboard" ); }; } 2 | -------------------------------------------------------------------------------- /release/com.haoict.lockscreenwithoutbutton_0.0.1_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haoict/lock-screen-without-button/37e935fb6e5f9f1adf2cedbaf8f09a1b9c799431/release/com.haoict.lockscreenwithoutbutton_0.0.1_iphoneos-arm.deb --------------------------------------------------------------------------------