Lock your device by flipping it over and/or by Proximity Sensor, optionally, after a delay.
If you have FlipSwitch installed, it can be disabled/enabled via FlipSwitch.
You can set FlipSwitch to activate Flip Mode or Pocket Mode.
You can long press on the FlipSwitch to pop up a list of options.
Turn on the screen when your device is flipped face up.
See the known Issues (1) section below.
The tweak has two modes of operation for locking your device.
With Flip Mode enabled, you must flip your device over to lock it.
You can set a delay so that it has to be continuously flipped over for X seconds before locking.
You can turn on "With Proximity Sensor" so that it has to be flipped over with the proximity sensor covered for it to lock.
With Pocket Mode enabled, you only have to cover the proximity sensor to lock your device.
You can set a delay so that the proximity sensor has to be continuously covered for X seconds before locking.
Experimental option to enable DND when your device is flipped down and the proximity sensor is activated (face down on table, etc). Should automatically disable when you flip your device face up.
See the known Issues (2) section below.
All options are avaibale under LockDown in the Settings App.
KNOWN ISSUES
1) ScreenOn does not work reliably after your device has been locked and idle for several minutes. Your device has gone to sleep to conserve battery and the proximity sensor and PocketMode flip detection are turned off by iOS and only wake up periodically. This means LockDown cannot reliably turn your screen on.
2) On iOS 9, and probably 10 and 11, the experimental option to enable DND is not working very well. It times out and re-enables after your device has been asleep for awhile. Do not rely it for now.
LATEST CHANGES 1.0.7~beta5 - 2018/05/12
iOS 10 and probably 11 - Fix an issue that caused a crash to SafeMode when Flip or Flip with Proximity was enabled with Blacklsted Apps.
Make the enableDND feature more reliable.
Change how enable DND works to use the proximity monitor event instead of the PocketState monitor because there is something about how "inPocket" is being detected that I don't understand.
Add option to force DND Always (while locked and unlocked) or use the current iOS setting.
Hopefully fix device incorrectly locking sometimes when you are receiving an incoming phone/FaceTime call.
Hopefully fix device incorrectly locking when Flip only mode is enabled and you are on a phone/FaceTime call.
Add option to keep device from locking while specific Apps are open in the foreground.
Add experimental option to enable DND when device is flipped down and the proximity sensor is activared (face down on table, etc). Should automatically disable when you flip your device face up.
Add an internal 5 second delay after a respring to delay the tweak from running and hopefully fix a respring loop reported by two users.
DEPENDENCIES
iOS 9, 10 or 11, Cydia Substrate, PreferenceLoader, FlipSwitch (optional).