FORUMS
Remove All Ads from XDA

[kernel-patch][dev][app] Tap2unlock - a new tap2wake feature [v_3.0 update]

634 posts
Thanks Meter: 1,075
 
Post Reply Email Thread
Announcement from goutamniwas: Version 3.0 is out ,now fully secure and stable
Praise be to God
Tap2Unlock - a new screen wake feature similar to d2w and s2w

Source commit link :
Initial v1.0

v2.0 commits

v 3.0 commits



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.
Code:
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
-Currently the pattern gets restored to 1234 after every boot(can be solved by init.d workaround)
(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 <[email protected]>
Many credits to showp-1984 for his D2w which made this possible.


[SIZE="3"]Want this for your phone ?
Post a link of this thread to your kernel developer .

have a moto E?
http://forum.xda-developers.com/moto...l-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 :

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 <[email protected]>"(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
The Following 139 Users Say Thank You to goutamniwas For This Useful Post: [ View ] Gift goutamniwas Ad-Free
 
 
7th December 2014, 02:48 PM |#2  
goutamniwas's Avatar
OP Senior Member
Flag coimbatore
Thanks Meter: 1,075
 
Donate to Me
More
T2u control app

Tap2unlock application is now open

https://github.com/goutamniwas/Tap2unlock


Screenshots :




Instructions :
-Download the latest version of the app(if u have already have installed previous version, just download apk and install)
-Push it to your system/priv-app/ and set permission rw-r-r
(or) Flash the flashable zip
-Open the app use the t2u on/off button once , and set a new pattern(default oldpin is :1234 )


T2u Control Application :

Download v0.6 apk
OR Flashable zip (v 0.6)
Download v0.5(push it to system/priv-app)
OR Flashable zip (v 0.5)
Download v0.4(for t2u v2.0 with call fix commit )
Download v0.3(for t2u v2.0 and above)
Download v0.2(for t2u v2.0)-not recommended
Download v0.1 (For t2u v1.0)


what can the app do ?

Code:
version 0.6(stable)
Fixes
-Failing to load the lockscreen at occassions
-Taking too much time load the lockscreen.
-Awkward looks
-Screen freezes some times.
-problems on lockscreen load after phonecalls.(sometimes screen appearing b4 incoming call)
changes
-compatible to t2u 3.0
-Prevent app getting shown in recent appslists(its a lockscreen afterall)
-Fixed all know securit glitches
-T2u is now a daily lockscreen driver 

version 0.5(major upgrade)
-Fix a lot of bugs
-Fix t2u getting off after an incoming call sometimes.
-Now u can pattern with ur screen ON also
-After attending an incoming call you are shown a screen to input pattern

version 0.4
-No screen freeze whatsoever during calls
-Fix t2u switch settings not getting set after boot
-Now u cant mess up with pattern inputs as the app checks if ur pattern and entered data
is valid b4 accepting it.
-when u havent used the t2u switch once with the app , t2u switch sets to default 0 (untested)
-when u havent set a new pattern with the app , t2u pattern is set to default 1234 by the app now (untested)

version 0.3
-Fix screen freeze after outgoing call.
-Now the t2u switch(on/off) is also set at boot time in addition to the pattern
-New icon

version 0.2
-Integrated working with t2u 2.0
-Leave security to kernel
-Allow incoming call without entering pattern
-Pattern can be changed only if u know the old pin
-Freeze touch after incoming call if u havent pattern unlocked it 

version 0.1
-switch on/off t2u
-change pattern
-set pattern on boot(takes some time though)

The kernel mod is currently available for :

Motorola Moto E

Alpha kernel -thread link

Motorola Moto G

Felcia kernel -thread linkby @Shuttwind215

-


Notify here if you have added t2u to your device .
If you want support for your device , find a kernel developer of ur device's forum and notify him about this thread,request him kindly
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-12-30-18-01-06.png
Views:	85782
Size:	33.4 KB
ID:	3089236   Click image for larger version

Name:	Screenshot_2014-12-30-18-01-21.png
Views:	85900
Size:	30.1 KB
ID:	3089237   Click image for larger version

Name:	Screenshot_2014-12-30-18-02-09.png
Views:	85456
Size:	40.2 KB
ID:	3089238  
Attached Files
File Type: apk Tap2unlock.apk - [Click for QR Code] (427.5 KB, 812 views)
File Type: apk Tap2unlock_v0.3.apk - [Click for QR Code] (438.4 KB, 514 views)
File Type: apk Tap2unlock-v0.4.apk - [Click for QR Code] (438.8 KB, 546 views)
File Type: apk Tap2unlock-v0.5.apk - [Click for QR Code] (443.5 KB, 558 views)
File Type: zip Tap2unlock-0.5-flashable.zip - [Click for QR Code] (615.4 KB, 420 views)
File Type: apk Tap2unlock-V0.6.apk - [Click for QR Code] (443.7 KB, 5382 views)
File Type: zip Tap2unlock-0.6-flashable.zip - [Click for QR Code] (615.7 KB, 3076 views)
The Following 13 Users Say Thank You to goutamniwas For This Useful Post: [ View ] Gift goutamniwas Ad-Free
7th December 2014, 03:03 PM |#3  
AshuGite's Avatar
Senior Member
Flag Off the Edge!!!
Thanks Meter: 182
 
More
Quote:
Originally Posted by goutamniwas

Praise be to God
Tap2Unlock - a new screen wake feature similar to d2w and s2w

Source commit link : https://github.com/goutamniwas/andro...8b636a6f78c9d2


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 1.0
-Ability - 4 number pattern (will be improved)
-Currently the pattern gets rstored to 1234 after every boot
(This can only be fixed if a kernel mod app provides support for it in the future.)

All copyrights of t2u is reserved with goutamniwas <[email protected]>
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://forum.xda-developers.com/moto...l-0-1-t2931985

hope for kernel control apps to support this sooner....
.
any way init.d can work this out??
The Following User Says Thank You to AshuGite For This Useful Post: [ View ] Gift AshuGite Ad-Free
7th December 2014, 03:12 PM |#4  
Senior Member
Thanks Meter: 52
 
More
So is like patern-pin unlock but without turn on the screen?
7th December 2014, 03:24 PM |#5  
goutamniwas's Avatar
OP Senior Member
Flag coimbatore
Thanks Meter: 1,075
 
Donate to Me
More
Quote:
Originally Posted by AshuGite

hope for kernel control apps to support this sooner....
.
any way init.d can work this out??

Probably if you personally copy your init.d statement in it , so everytime it sets ur default pattern

Quote:
Originally Posted by eloko

So is like patern-pin unlock but without turn on the screen?

we do this double tap 2 wake and then a pattern , so its like combining it wake+unlock
The Following 3 Users Say Thank You to goutamniwas For This Useful Post: [ View ] Gift goutamniwas Ad-Free
7th December 2014, 03:46 PM |#6  
AshuGite's Avatar
Senior Member
Flag Off the Edge!!!
Thanks Meter: 182
 
More
Quote:
Originally Posted by goutamniwas

Probably if you personally copy your init.d statement in it , so everytime it sets ur default pattern

as screen is divided into 4 regions which yields mostly 24 combinations so if we define a numeric code to each one it can be set easily...
7th December 2014, 03:55 PM |#7  
goutamniwas's Avatar
OP Senior Member
Flag coimbatore
Thanks Meter: 1,075
 
Donate to Me
More
Quote:
Originally Posted by AshuGite

as screen is divided into 4 regions which yields mostly 24 combinations so if we define a numeric code to each one it can be set easily...

Adding echo "4letter-pattern" > sys/android_touch/tap2unlock_pattern to init.d file will do it
The Following 2 Users Say Thank You to goutamniwas For This Useful Post: [ View ] Gift goutamniwas Ad-Free
7th December 2014, 04:01 PM |#8  
AshuGite's Avatar
Senior Member
Flag Off the Edge!!!
Thanks Meter: 182
 
More
Quote:
Originally Posted by goutamniwas

Adding echo "4letter-pattern" > sys/android_touch/tap2unlock_pattern to init.d file will do it

okay that's good...then there is not a great need for an app to do it.... BTW very good implementation...
8th December 2014, 06:31 AM |#9  
goutamniwas's Avatar
OP Senior Member
Flag coimbatore
Thanks Meter: 1,075
 
Donate to Me
More
New video description !!
i have made a video to describe how it works and how to change the pattern
The Following 3 Users Say Thank You to goutamniwas For This Useful Post: [ View ] Gift goutamniwas Ad-Free
10th December 2014, 05:02 AM |#10  
ChinmayKunkikar's Avatar
Senior Member
Flag Pune
Thanks Meter: 1,141
 
Donate to Me
More
Hello!
Awesome work!

Is this similar to the LG G3's Tap Code?

Sent from my Xperia Sola using XDA Premium 4 mobile app
10th December 2014, 05:29 AM |#11  
syedtahir16's Avatar
Senior Member
Thanks Meter: 88
 
More
This is awesome. Thank you
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes