Custom kernel and Xposed module are available to get double tap-to-sleep and double-tap-to-wake function on any Android phone, but these methods requires root access on the phone. However, there is a very simple method to get double-tap-to-sleep function on any phone without root. Read on to know how it is. In this guide, we show you how to get double tap-to-sleep function on any phone without root. For this tutorial, we use two free apps – Apex Launcher and Greenfy. You can configure to put your phone to sleep using Apex Launcher, although this action will only work from the home screen. Note that, Nova launcher has also this feature, but only available with the prime version. Also, Greenfy is a best app that helps you fix most of the performance issues caused by battery leeching, memory hogging and stealthily running apps. You can enable double-tap-to-sleep function on any phone that supports Apex launcher and Greenify app.
Enable double tap to sleep function on your phone
Install Apex Launcher and Greenfy apps from Play Store.
Run Apex Launcher and go to Apex Settings -> Behavior settings ->and tap Desktop double tap.
A menu will appear. Swipe down and choose “Launch shortcut” option.
A new menu will appear. Choose “Hibernate + Lock Screen” option and close the Apex settings.
Now, you need to authorize Greenify to lock your screen. Go to your home screen and double-tap anywhere on an empty space. A dialogue will appear, asking you to grant the app device administrator rights. Just activate it. You are done!
Now, just double tap anywhere on your home screen and see how it is working. Enjoy your new gesture-based shortcut to lock down your Android phone! (Source)