Prevent instant lockscreen activation (Bring back "automatically lock after timeout") - MIUI Central

Prevent instant lockscreen activation (Bring back "automatically lock after timeout")
Premise:
I moved from LineageOS to MIUI 11 since a couple of months and I was immediately bothered by having to unlock my phone every time, even if I used it one minute ago. I have face recognition and the fingerprint sensor is fast, but that doesen't help (trusted networks/devices neither in my case). Apparently, there is no option to lock the screen after a period of inactivity and the typical "solution" I've seen around was just disabling the lockscreen or using a third-party one.
So, after a bit of search I found an alternative, quite simple and yet a bit hidden.
It requires CustoMIUIzer (so yes, root, possibly with Magisk, and the EdXposed module) and Tasker.
In CustoMIUIzer you should go in System > Lock screen > Disable screen lock and select "Enable mod". If in the settings below you select "Disable completely" in "Disable screen lock" menu and turn on "Skip lock screen", when you will turn off and on your screen you will see that the lockscreen doesn't appear. You can put it back to "System default" but leave "Skip lock screen" enabled.
Now let's make this easier with Tasker, that has a plugin for CustoMIUIzer. The simplest way is making a button or shortcut in your launcher that you would press to disable and enable lockscreen manually when you want, without going everytime in CustoMIUIzer. The other way is automating the process with a couple of profiles (and tasks): the first one will trigger on display unlock, disable lockscreen and set a time (eg. 10min later) when the second one will trigger and enable lockscreen again. The second task could also be used to lock the screen manually.
For simplicity, I'll attach my files and screenshots. That's not necessarily the best setting, but it works well. I set the timeout to 10 minutes (in "lockOff", %TIMES+60*10). The task that disables lock ("lockOff") creates a toast notification when you turn on the screen, so you can remove the last three actions if everithing is working. Both profiles have to be active. Make sure that Tasker won't be killed by MIUI or battery savers, maybe lock it in recent apps.

Related

Is there a way to lengthen the "time on" for the lockscreens w/o entering password?

Is there a way to lengthen the "time on" for the lockscreens w/o entering password?
Title asks it all 8)
Looking to extend the awake time for the lockscreen while it's waiting for one to enter the password, unlock pattern, etc.
EDIT: Reason being - while using the Xposed Quick Access module it would be nice if the screen didn't off itself after a couple of seconds whilst I'm reading whatever info I have set for Quick Access-ability.
Thanks!
Sooo... I think I've solved this issue with a Tasker task. Tested with an n = 1 data set, but that one was a success. Looking forward to future testings to see if this works and solves the issue.
For those interested - in Tasker, I set up an app profile and triggered screen on, never timeout while that app is open / on-screen. Not the most perfect task since I'll have to actively remove the app from the screen for the phone to operate the lock function as normal, but I think it'll work for what I was hoping to do.
- Using Xposed Notification mod, I can pull down the notification menu down when I receive a new notification (an email for example).
- Or even better, using the Dynamic Notifications app I can open the email straight from the dynamic notification (similar to the function found on the Moto X for those not familiar).
- Then through the Xposed Quick Access mod, the email opens right over the lockscreen without going through the whole unlocking the phone process saving a few motions, clicks, etc.
- Then the Tasker task takes over and keeps the screen on whilst I'm reading / responding to the email, then when I delete the email and the lockscreen appears, the Tasker task ends and the screen goes back into default screen off / timeout mode.
Hopefully this will help someone else out in the future, or give someone else another idea! 8)

Looking for a quick lock screen toggle option

Posted this in the LG section but have since rid of that phone for the S6.
I'm hoping to find a way to disable the lock screen when i'm at home or another trusted area, without the need for unnecessary GPS/Location usage as with what the 'smart lock' option demands. Also, without having to root the device.
On my S4 widgetsoid did this brilliantly right from the notification panel and it would coincide with the device locking features that were set.
For instance. Whenever i was home I'd disable by tapping the padlock icon. Then if i went out I'd just tap it again to enable it. If I forgot to enable it, the set time limit for the locking options would take control and eventually automatically lock the device on it's own.
Is there anything available like this? Widgetsoid needs system access for this feature to work now.

Toggleable Pattern/PIN Lockscreen?

I think this is the right place to post, since it's a security thing, although it's nothing to do with hacking.
When I was on JellyBean (turns head and spits) and SlimKat I used Secure Settings and Tasker to switch the pattern lock on and off depending on my situation (I mean, I had Tasker and SS change all my sound, screen and radios settings at the tap of a scene button). Now that I'm on Lollipop I can't use SS. Is there a way to easily toggle a pattern or PIN lockscreen on and off? The stock lockscreen and 3rd party apps require the pattern or PIN to be reinserted TWICE to enable them. I want an app that remembers it and doesn't require it to be re-entered to enable/disable.
(GS5 Neo, rooted, stock 5.1.1)
I've found something I can work with. Using shell commands I can emulate touches to activate/deactivate this:
http://repo.xposed.info/module/com.lr.keyguarddisabler

Screen security (silly?) question

Hi,
i'm on OOS 5.1.6 with unlocked bootlader, official TWRP, and root via Magisk, also got xposed and a few modules (greenify being one of them).
Now the noob silly part: how comes that even if i set fingerprint security for lockscreen (with PIN security behind), if i turn off the screen via power button, and then wake it up (after more than 5secs!) with button again, i am presented with a lockscreen with no security and i can simply swipe up the lock icon and enter the phone?
I'm for sure missing something really obvious here, OR one of my modules (GB, Greenify) might interfere with the security?
Just to be clear: fingerprint unlocking WORKS flawlessly, but if i use the button it just shows the small lock icon that i can simply swipe-up.
Thanks!
Maybe you have enabled face unlock?
Do you have smart lock on? Trusted place or similar, smart watch etc. If one of those are on, it will let you unlock just with a swipe.
And the default time for this lock is 5 sec, see the settings icon right of display lock in settings - security
Thanks guys, i had for some reason Smart Lock enabled, and specifically trusted places (Home) taken from Google Maps. I could not disable it (well i could, but it reverted back as active) until i found under 'Trust Agents' Smart Lock (Google) and disabled it.
Weird.

Where is the setting to turn on Ambient Display?

I really only want it to emulate an LED notification light while the screen is off. I've tried multiple 3rd party apps from the play store, but none of them work correctly, and when I looked for the Always-On-Display manually in System Settings, its not under Display or Lock Screen. Searching also comes up with nothing. Am I crazy? One of the selling points of this phone was AoD (like Pixel 4, and 3a before it) but I'm not finding it.
It took me a bit to find it on my wife's new 4a, but it's Settings/Display/Advanced/Lock screen display/Always on.
ETA...Ha! I never remember there's a search box at the top of Settings. I typed "always" into it and it immediately shows the "Always on" setting.
Thank you! This helped me track it down. Apparently the setting is hidden unless you have a lock screen set up, despite the fact that it works without a lock screen. That's also why it didn't appear in my search results. If you want an Always On Display but no lock, you have to enable Swipe to Unlock, enable the "always on" setting following your menu path, and then turn off Swipe to Unlock. Thanks Google ?

Categories

Resources