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

Search This thread

goutamniwas

Senior Member
Apr 2, 2012
634
1,045
coimbatore
www.galaxyminidoubts.co.cc
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
-[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 <[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-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 :


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
 

Attachments

  • 0003-t2u-Improve-t2u-detect-algorithm-much-much-better.patch
    6.1 KB · Views: 2,368
  • 0002-t2u-fix-screen-freeze-after-wakeup-during-call.patch
    1 KB · Views: 778
  • 0001-Tap2Unlock-a-new-screen-wake-feature-similar-to-d2w-.patch
    23.7 KB · Views: 1,789
Last edited:

goutamniwas

Senior Member
Apr 2, 2012
634
1,045
coimbatore
www.galaxyminidoubts.co.cc
T2u control app


Tap2unlock application is now open

https://github.com/goutamniwas/Tap2unlock


Screenshots :

attachment.php
attachment.php
attachment.php



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
 

Attachments

  • Tap2unlock.apk
    427.5 KB · Views: 841
  • Tap2unlock_v0.3.apk
    438.4 KB · Views: 520
  • Tap2unlock-v0.4.apk
    438.8 KB · Views: 554
  • Tap2unlock-v0.5.apk
    443.5 KB · Views: 570
  • Tap2unlock-0.5-flashable.zip
    615.4 KB · Views: 434
  • Tap2unlock-V0.6.apk
    443.7 KB · Views: 5,474
  • Tap2unlock-0.6-flashable.zip
    615.7 KB · Views: 3,135
  • Screenshot_2014-12-30-18-01-06.png
    Screenshot_2014-12-30-18-01-06.png
    33.4 KB · Views: 85,882
  • Screenshot_2014-12-30-18-01-21.png
    Screenshot_2014-12-30-18-01-21.png
    30.1 KB · Views: 86,001
  • Screenshot_2014-12-30-18-02-09.png
    Screenshot_2014-12-30-18-02-09.png
    40.2 KB · Views: 85,558
Last edited:

AshuGite

Senior Member
Oct 6, 2012
334
172
Off the Edge!!!
OnePlus 8T
Praise be to God
Tap2Unlock - a new screen wake feature similar to d2w and s2w

Source commit link : https://github.com/goutamniwas/andr...mmit/3ebee969b400254817ef97d3ce8b636a6f78c9d2


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-e/orig-development/cm11-0-kernel-alpha-kernel-0-1-t2931985

hope for kernel control apps to support this sooner....
.
any way init.d can work this out??
 
  • Like
Reactions: [email protected]

goutamniwas

Senior Member
Apr 2, 2012
634
1,045
coimbatore
www.galaxyminidoubts.co.cc
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

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
 

goutamniwas

Senior Member
Apr 2, 2012
634
1,045
coimbatore
www.galaxyminidoubts.co.cc
@goutamniwas : looks great :laugh:, but what about trying to make a .ko module instead, that end-user could insmod at will (via init.d?) and that wouldn't require any kernel modifications ? :cool:

Its not possible as we need edits with the device's touch , proximity and display drivers

@ak Kernel for the OnePlus One would be awesome if you would work together with him :angel:

Pm him the link to this thread
 
  • Like
Reactions: matmutant

manups4e

Senior Member
Aug 15, 2010
2,696
2,790
Torino
hi ^^ i was looking it to cherry-pick it into my kernel repo.. but ^^ this "Currently the pattern gets rstored to 1234 after every boot" prevents me from doing it ^^ mmm i was thinking.. you could check the LG G3 kernel sources for some improvements with their knock code :)
 

goutamniwas

Senior Member
Apr 2, 2012
634
1,045
coimbatore
www.galaxyminidoubts.co.cc
hi ^^ i was looking it to cherry-pick it into my kernel repo.. but ^^ this "Currently the pattern gets rstored to 1234 after every boot" prevents me from doing it ^^ mmm i was thinking.. you could check the LG G3 kernel sources for some improvements with their knock code :)

as the post says the users need to edit their init.d for their own pattern , otherwise we need an application level support
 

manups4e

Senior Member
Aug 15, 2010
2,696
2,790
Torino
mmm understood :) thank you :) well anyway if you want to take a look at the G3 knock code you can download kernel sources here :) don't know if it could help ^^ but i hope so
 

dansou901

Recognized Contributor
Apr 10, 2012
3,120
1,209
30
Aachen
OnePlus Nord
@goutamniwas : looks great :laugh:, but what about trying to make a .ko module instead, that end-user could insmod at will (via init.d?) and that wouldn't require any kernel modifications ? :cool:

I would second that. To think this further: If you make a module, you could also do a flashable zip for this. In the flashable zip, you could use aroma to let the user set his/her code initially. Changing the code could be done by aroma again. Just an idea.
 
  • Like
Reactions: matmutant

Top Liked Posts