Easer icon indicating copy to clipboard operation
Easer copied to clipboard

lockdown after inactivity

Open CorruptCommit opened this issue 4 years ago • 2 comments

I am wondering if the ability to place a device in lockdown mode after inactivity could be added. While fingerprint readers and face unlock are convenient features, it would be nice to have a dead man's switch to fall back to a more secure mode.

Does Android even have API calls for this request?

CorruptCommit avatar Apr 11 '20 00:04 CorruptCommit

I was worried about this exact same issue, and I used Easer to solve it in the following way: The basic idea is to use Easer to launch an app that locks the device (I used “Lock Screen” from F-Droid) if the screen has been turned off for some time. Locking the device using such an app (which is registered as what Android calls a “device administrator”) disables all of the “quick unlock” options (fingerprint scanner, smart unlock/NFC, etc.) and requires entering the more secure lock pattern/password/PIN.

This is what I did in Easer:

Easer screenshot

The corresponding Easer data export is here.

Note: This detects whether the screen has been turned off for a given amount of time. If you want to do the lockdown after the device has been locked for some time, this is a bit more problematic, since Android/Easer doesn’t provide a straightforward way to detect when the screen is locked (see e.g. https://github.com/renyuneyun/Easer/pull/105#issuecomment-391623489).

@renyuneyun: I suppose this issue can be closed, since it’s possible to achieve the requested functionality with Easer.

Socob avatar Aug 02 '20 13:08 Socob

Hey @Socob,

Thanks for taking the time to share your solution. It is pretty clever.

I think detecting the time the screen has been off is an acceptable alternative to time from when the device was locked.

@renyuneyun: I suppose this issue can be closed, since it’s possible to achieve the requested functionality with Easer.

I would still like to see the ability to disable “quick unlock” options within Easer and not have to rely on another application.

CorruptCommit avatar Aug 02 '20 22:08 CorruptCommit