• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[APP][4.0+][Material] Easy Lock - Double tap status bar/nav bar to sleep

Search This thread

aravindsagar

Senior Member
Feb 14, 2012
331
310
Champaign, IL
Easy Lock
Double tap status bar/nav bar/lockscreen/notification shade to quickly put your device to sleep!
Double-tapping status bar does NOT work in Android 8 and above. Only double tap anywhere or double tap homescreen will work due to changes in system APIs.
app_icon.png

  • Especially useful in devices where power button is hard to reach
  • Often faster and easier than using the power button
  • Reduce the wear and tear of power button :)
  • Also has the option of double tapping anywhere/double tapping homescreen to lock.
_
Requirements
  • Android 4.0 (ICS) or higher
  • NO root required

_
Screenshots
Screenshot_20151010-022139.png
Screenshot_20151010-022152.png
Screenshot_20151010-022200.png

_
Downloads
Version 1.3: http://bit.ly/2oDv77H (Please uninstall the previous version first)
All features of the app are available for free, without any ads. (The in-app purchase inside the app will not work as the app has been removed from play store)

Please do not mirror without permission. Link to this thread or play store page if you want to share this app elsewhere. So that users will know where to check for updates and get support from.

Please note: Hopefully it won't come to this, but just in case, to uninstall the app, you'll have to deactivate device admin permission first (Settings -> Security -> Device Admin -> Easy Lock).[/SIZE]
_
Permissions explained
  • Admin permission is required to turn of the screen and put the phone to sleep
  • Lollipop smart lock is not supported by Device Admin. It's an Android system limitation. However, smart lock is supported by Easy Lock if you have root access. If you see a prompt for root access, this is what that's for.
  • Draw over other apps permission is required to detect double taps.
  • App Usage Statistics (in Lollipop and above) is required if you enable the option 'Try to avoid soft key presses'. This permission will be requested only if you enable this option.
_
Source code
Source code is distributed under Apache v2 license. Source repository: https://github.com/aravindsagar/EasyLock

_
Developed by
Aravind Sagar
Find me in G+
 
Last edited:

aravindsagar

Senior Member
Feb 14, 2012
331
310
Champaign, IL
Update to Easy Lock

v1.3
- Fixed a bug which causes the app to request admin permissions even when it was already granted.

Update is available in Google Play Store.

I had added an option to enable double-tap anywhere to lock the screen. I'm sure it'll be a nuisance for most people, since it'll get activated while typing, double tap to zoom photos etc, but there were some requests for it. However, that update was rejected by Play Store. Hence I've disabled that feature in the play store version of the app. If anyone is interested in the above mentioned feature, I can upload an apk having double tap anywhere to lock functionality. :)
 

Justing6

Member
Mar 26, 2011
10
7
Amazing work!

I've traditionally always rooted my android devices, but with marshmallow I'm trying to keep them stock for the security/stability benefits. My new Huawei Honor 8 didn't have a double tap to sleep feature built in, and with no root I couldn't use gravitybox to get it. I also couldn't find anything satisfactory in the app store, as I just wanted something that would make the device sleep, but not wake up (my phone wakes up by itself as soon as you touch the fingerprint scanner). The V1.2 of this app works perfectly! I lowered the double tap to 150ms, which seems to be about as fast as I can comfortably double tap the status bar/nav bar, but is faster than I would normally mash the back button, removing the need for ignoring the nav buttons. Plus it seems to take no more than 40mb of ram, with it averaging more about 25mb, which is great. Luckily for me, Huawei's EMUI implementation of android prevents your app from interfering with the fingerprint scanner, even without root. I tested your app on my galaxy tab s2 (also running android 6.0.1) and as expected, using it to sleep the device interfered with the fingerprint scanner, but not so on this great little Huawei device (I just had it on my tablet for testing, it already turns itself on/off with its flip cover). I can understand why Google removed it from the play store (at anything over 250ms it's easily to accidentally trigger with the back button) but I'm glad I found it. I've never actually had a button wear out or break on me because I upgrade phones too often, but it still feels nice to be able to turn my phone on and off without any buttons. Great work!

Edit: it's really too bad that the donate button doesn't work. Do you have any other apps in the play store that I could buy/donate to support you?
 

shadowdrag96

Senior Member
Jul 12, 2011
61
5
Just tried it on my pixel xl works great but the only gripe I have is that when it locks the phone I can't use my fingerprint reader to open it after which is making me not use it anymore because it's so much faster to use the fingerprint scanner. If that's fixed I'll definitely be using it.
Thanks
 
Last edited:

Thibault1171

Senior Member
Feb 20, 2011
309
27
Just tried it on my pixel xl works great but the only gripe I have is that when it locks the phone I can't use my fingerprint reader to open it after which is making me not use it anymore because it's so much faster to use the fingerprint scanner. If that's fixed I'll definitely be using it.
Thanks

@aravindsagar Hi, I have the same problem on my Z5 Compact. When I double tap the status bar, the phone locks.
But when I wake it up, if I use my fingerprint to unlock, I also have my patern (or pin, or password, whatever security is set) → Double security instead of one.
I only encounter this issue while using your app. If Easy Lock is disabled, I can unlock my phone just with my fingerprint.
Is their a way to fix this issue? (or an alternative to double tap status bar to lock?)

Thanks
 

Ayan Uchiha Choudhury

Senior Member
Dec 30, 2013
1,180
1,759
Barrackpore
@aravindsagar Hi, I have the same problem on my Z5 Compact. When I double tap the status bar, the phone locks.
But when I wake it up, if I use my fingerprint to unlock, I also have my patern (or pin, or password, whatever security is set) → Double security instead of one.
I only encounter this issue while using your app. If Easy Lock is disabled, I can unlock my phone just with my fingerprint.
Is their a way to fix this issue? (or an alternative to double tap status bar to lock?)

Thanks

same problem, any way to fix this issue?
 

mcgrathpatj

Senior Member
Nov 13, 2012
165
31
Bump on this. Love it but need to be able to unlock with fingerprint sensor.

Other apps get around this by simply turning the screen off. Works great with amoled. Not sure how easy that is to implement.
 

roirraW "edor" ehT

Recognized Contributor
I would donate for this if it would implement the method to lock the screen with root instead of using Admin (so, as mentioned in previous posts above, I could use the fingerprint reader to unlock afterwards). The shell command "input keyevent 26" does this as long as it's done with superuser access. I have a QuickTile through the Automate script app do exactly that currently, but I'd prefer to be able to double-tap the status bar instead of using a prime Quick Tile space.
 

V0idst4r

Senior Member
Jun 13, 2016
303
100
This is horrible and will never replace the custom ROM feature. I can't use my fingerprint and I can't even enter my password without it locking again. It also locks when I double tap a softkey (even with the option to prevent against it).
 
Last edited:

fahmi182

Senior Member
Apr 1, 2017
249
104
Jakarta
If use device administrator, open lock cant using fingerprint, btw good app.. i search tap to sleep app that can using fingerprint to wake/unlock..
 

Dovidhalevi

Senior Member
Jun 26, 2012
2,729
1,171
Arrow launcher has this. Always work.
Trying the Lawnchair (Pixel) launcher which lacks this feature. Only works on status bar. Users of this launcher want this!
(All permissions set up. MIUI device.)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 45
    Easy Lock
    Double tap status bar/nav bar/lockscreen/notification shade to quickly put your device to sleep!
    Double-tapping status bar does NOT work in Android 8 and above. Only double tap anywhere or double tap homescreen will work due to changes in system APIs.
    app_icon.png

    • Especially useful in devices where power button is hard to reach
    • Often faster and easier than using the power button
    • Reduce the wear and tear of power button :)
    • Also has the option of double tapping anywhere/double tapping homescreen to lock.
    _
    Requirements
    • Android 4.0 (ICS) or higher
    • NO root required

    _
    Screenshots
    Screenshot_20151010-022139.png
    Screenshot_20151010-022152.png
    Screenshot_20151010-022200.png

    _
    Downloads
    Version 1.3: http://bit.ly/2oDv77H (Please uninstall the previous version first)
    All features of the app are available for free, without any ads. (The in-app purchase inside the app will not work as the app has been removed from play store)

    Please do not mirror without permission. Link to this thread or play store page if you want to share this app elsewhere. So that users will know where to check for updates and get support from.

    Please note: Hopefully it won't come to this, but just in case, to uninstall the app, you'll have to deactivate device admin permission first (Settings -> Security -> Device Admin -> Easy Lock).[/SIZE]
    _
    Permissions explained
    • Admin permission is required to turn of the screen and put the phone to sleep
    • Lollipop smart lock is not supported by Device Admin. It's an Android system limitation. However, smart lock is supported by Easy Lock if you have root access. If you see a prompt for root access, this is what that's for.
    • Draw over other apps permission is required to detect double taps.
    • App Usage Statistics (in Lollipop and above) is required if you enable the option 'Try to avoid soft key presses'. This permission will be requested only if you enable this option.
    _
    Source code
    Source code is distributed under Apache v2 license. Source repository: https://github.com/aravindsagar/EasyLock

    _
    Developed by
    Aravind Sagar
    Find me in G+
    4
    Update v1.1
    • Added option to avoid lock screen touches
    • Minor bug fixes

    Update is currently rolling out in Google Play.
    3
    Lock via double tapping notification/status bar doesn't work for Android 8. My device is Nokia 6. Also please add support for double tap lock on anywhere in the home screen. The current version supports double tap lock anywhere, which means when in use of other apps.

    Thanks! :)
    Updated the app with an option to double tap anywhere in the home screen. Download link in OP. Please uninstall old version first (I lost the original keys). Double tapping status bar will still not work in Android 8 and above.
    2
    Update to Easy Lock

    v1.3
    - Fixed a bug which causes the app to request admin permissions even when it was already granted.

    Update is available in Google Play Store.

    I had added an option to enable double-tap anywhere to lock the screen. I'm sure it'll be a nuisance for most people, since it'll get activated while typing, double tap to zoom photos etc, but there were some requests for it. However, that update was rejected by Play Store. Hence I've disabled that feature in the play store version of the app. If anyone is interested in the above mentioned feature, I can upload an apk having double tap anywhere to lock functionality. :)
    2

    With root, the app will emulate a power button press. So the effects will be exactly the same as you pressing the power button. Without root, currently the app uses device admin APIs which disables fingerprint and smart lock for unlocking the phone next time.