[Android Software/Hacking General [Developers Only]] goutamniwas:
Praise be to God

Tap2Unlock - a new screen wake feature similar to d2w and s2w​

Source commit link :

Initial v1.0

https://github.com/goutamniwas/andr...mmit/3ebee969b400254817ef97d3ce8b636a6f78c9d2

fix : https://github.com/goutamniwas/andr...mmit/71c423bc8bffbe6e9d6c1a95da94179bbe85dedc

improvement : https://github.com/goutamniwas/andr...mmit/96480aff38d7bcd852cd66880e09cc4bff6a216c

v2.0 commits

https://github.com/goutamniwas/andr...mmit/956ddedbca377e39b23e9f8fad997f86a77229d6

https://github.com/goutamniwas/andr...mmit/c62c2a994d65e5976217b33158fdd1d57aed7f5e

https://github.com/goutamniwas/andr...mmit/72de46bece81c53bd4f520f31321accdd656f79f

v 3.0 commits

Fix freeze during calls for 2.0 (need 0.4 t2u app)

https://github.com/goutamniwas/andr...mmit/653bfaa962669e5611b8e1289218c8e4ff1ce4dc

Commits for using 0.5 app

https://github.com/goutamniwas/andr...mmit/653bfaa962669e5611b8e1289218c8e4ff1ce4dc

https://github.com/goutamniwas/andr...mmit/f40f0a652ac100ccebef198606fa6466638657ee

https://github.com/goutamniwas/andr...mmit/b016699bd30a441961d1e206d493bc7ad8acbf22

https://github.com/goutamniwas/andr...mmit/9b9a28ef427b4b676f6e8db91ae5f32b8dff19b5

https://github.com/goutamniwas/andr...mmit/f40f0a652ac100ccebef198606fa6466638657ee

https://github.com/goutamniwas/andr...mmit/b016699bd30a441961d1e206d493bc7ad8acbf22

https://github.com/goutamniwas/andr...mmit/9b9a28ef427b4b676f6e8db91ae5f32b8dff19b5

https://github.com/goutamniwas/andr...mmit/e3c136ea8bedc675ace191490c085d4f5e7368ba

But with patterns here

How it works ?

Divide your screen vertically and horizontally , you get four divisions

They are numbered as

1 | 2

-----

3 | 4

The pattern is stored in sysfs file sys/android_touch/tap2unlock_pattern

You tap the right combination to open your screen

Pressing the power button will turn your display on but not the touch sensor.

version 3.0
-Disable t2u by default.
-Fix reboot security vulnerability.
-Remove many security vulnerability
-Finally it can be a reliable daily lockscreen driver
version 2.0
-You cant view your pin from sysfs file
-You cant change your pin without tap2unlock app (v0,2 is a must)
-You dont need to press pwr button then pattern and attend call
-Incoming calls (and only that) is allowed without entering your pin
-After the call your phone will go to touch freeze(if u havent entered ur pin to attend call)

version 1.0
-Ability - 4 number pattern
-[STRIKE]Currently the pattern gets restored to 1234 after every boot(can be solved by init.d workaround)[/STRIKE]
(download the appfrom 2nd post)

-keeping your phone facedown will suspend touch sensor , so needless to worry about battery drain during nights or when within ur pockets

-deep sleep will work even when its on

All copyrights of t2u is reserved with goutamniwas <goutamniwas@gmail.com>

Many credits to showp-1984 for his D2w which made this possible.

Want this for your phone ?

Post a link of this thread to your kernel developer .

have a moto E?

http://xdaforums.com/moto-e/orig-development/cm11-0-kernel-alpha-kernel-0-1-t2931985

It required heavy commitment, testing and hardwork give credits if you use it , press thanks it encourages

Download the Application for T2u Control in the second post

Note : even during a call u have to press power button , pattern then open to attend call

Video description :

[YOUTUBE]IRuHzmDuKyk[/YOUTUBE]

Message for kernel control application developers and kernel developers :

If you would like to provide support to this feature , i can help you with whatever details you want to.

There is patch files provided below for convenience git apply it , --author="goutamniwas <goutamniwas@gmail.com>"(this assumes u have already implemented dt2w and s2w , if not u wud be required remove some lines after imlementing the patch

if u use this in ur kernel source u are very free to use it (giving credits is optional) -any support will be provided

developers - If you have a working kernel with t2u for ur device notify me , so that i add it here

-

XDA:DevDB Information

[kernel-patch][dev] Tap2unlock - a new tap2wake feature with pattern update to v2!, Tool/Utility for the Android General

Contributors

goutamniwas, showp-1984

Version Information

Status: Stable

Current Stable Version: v2.0

Created 2014-12-10

Last Updated 2014-12-25

XDA:DevDB Information

[kernel-patch][dev] Tap2unlock - a new tap2wake feature [v_3.0 update], Tool/Utility for the Android General

Contributors

goutamniwas, showp-1984

Version Information

Status: Stable

Current Stable Version: v3.0

Created 2014-12-10

Last Updated 2014-12-30