Source: https://android.gadgethacks.com/how-to/lock-your-android-with-quick-shake-instead-pressing-power-0160224/