yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] goutamniwas:
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 ?

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 [MENTION=5259490]Shuttwind215[/MENTION]

-

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
[Android Software/Hacking General [Developers Only]] AshuGite:
hope for kernel control apps to support this sooner....

.

any way init.d can work this out??
[Android Software/Hacking General [Developers Only]] eloko:
So is like patern-pin unlock but without turn on the screen?
[Android Software/Hacking General [Developers Only]] goutamniwas:
Probably if you personally copy your init.d statement in it , so everytime it sets ur default pattern

we do this double tap 2 wake and then a pattern , so its like combining it wake+unlock
[Android Software/Hacking General [Developers Only]] 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...
[Android Software/Hacking General [Developers Only]] goutamniwas:
Adding echo "4letter-pattern" > sys/android_touch/tap2unlock_pattern to init.d file will do it
[Android Software/Hacking General [Developers Only]] AshuGite:
okay that's good...then there is not a great need for an app to do it.... BTW very good implementation...
[Android Software/Hacking General [Developers Only]] goutamniwas:
New video description !!

i have made a video to describe how it works and how to change the pattern
[Android Software/Hacking General [Developers Only]] ChinmayKunkikar:
Hello!

Awesome work!

Is this similar to the LG G3's Tap Code? :)
[Android Software/Hacking General [Developers Only]] syedtahir16:
This is awesome. Thank you :)
[Android Software/Hacking General [Developers Only]] matmutant:
[MENTION=4575244]goutamniwas[/MENTION] : 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:
[Android Software/Hacking General [Developers Only]] EasyGoingXD:
[MENTION=3685904]ak[/MENTION] Kernel for the OnePlus One would be awesome if you would work together with him :angel:
[Android Software/Hacking General [Developers Only]] goutamniwas:
Its not possible as we need edits with the device's touch , proximity and display drivers

Pm him the link to this thread
[Android Software/Hacking General [Developers Only]] manups4e:
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 :)
[Android Software/Hacking General [Developers Only]] goutamniwas:
as the post says the users need to edit their init.d for their own pattern , otherwise we need an application level support
[Android Software/Hacking General [Developers Only]] manups4e:
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
[Android Software/Hacking General [Developers Only]] goutamniwas:
I dont think if they have implemented it through kernel , probably they did it with an application ???

a github link wud be appreciated and useful
[Android Software/Hacking General [Developers Only]] manups4e:
https://github.com/tectas/android_kernel_lge_msm8974ac/tree/lollipop
[Android Software/Hacking General [Developers Only]] dansou901:
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.
[Android Software/Hacking General [Developers Only]] goutamniwas:
I don think thats even possible but i will try (bw as i said before this commit is altering the devices driver files also)
[Android Software/Hacking General [Developers Only]] thahim:
[MENTION=4575244]goutamniwas[/MENTION] where to download this?
[Android Software/Hacking General [Developers Only]] benderboe:
I have s5 running cm12 and ktoonsez kernel. What I have to do for hav this awesome mod?
[Android Software/Hacking General [Developers Only]] goutamniwas:
post this thread link to ur kernel developer (for ur device)

the op says it , ask ur kernel developer (of ur device)
[Android Software/Hacking General [Developers Only]] thahim:
So it isnt an app or a mod?
[Android Software/Hacking General [Developers Only]] goutamniwas:
No , ur going to need a developer to bring support to ur device

EDIT:

Patch files are attached to the OP , for easy applying for the kernel devs

git apply it , dont forget git commit --author="goutamniwas <goutamniwas@gmail.com>"
[Android Software/Hacking General [Developers Only]] Defferex:
It would be great if we can use more than 4 numbers but... omg, that's awesome...

Nice job!
[Android Software/Hacking General [Developers Only]] goutamniwas:
Its not a big deal , those will be soon implemented in upcoming versions
[Android Software/Hacking General [Developers Only]] ketm:
I hope your contribution moving forward, to enjoy this patch on our devices.
[Android Software/Hacking General [Developers Only]] dansou901:
Please read the OP. This is a patch for kernel developers, not something to flash or install directly.
[MENTION=4575244]goutamniwas[/MENTION]: Please edit the title of this thread with the tag [patch], so people won't come here asking for a downloadable installable kernel. An idea would be to have a list of working kernels/devices in the second post with corresponding links to the threads.
[Android Software/Hacking General [Developers Only]] shawnstewartx22:
hey plASE TELL ME HOW TO STOP THIS T2U FEATURE?

GAUTAMNIWAS , thanks for providing us with this feature , but as soon as the mobile reboots , everything restores to same .

even unlock pattern .

and what if i want to disable this feature? i find no way to stop this , and sincerely i didnt want this feature . please guide me on how to stop this feature , it is freaking me out . i am not against it, but it's something i din't want . so please help me out . :D

^^):confused::(:rolleyes:
[Android Software/Hacking General [Developers Only]] casperpas:
I think it's 4^4 = 256 combinations :D

Hope that it would be implemented in many kernels (with options, of course :D )
[Android Software/Hacking General [Developers Only]] :
Question

Let me get this straight. A developer edits a kernel with this tweak, then I flash. What if I want to change the pattern, I do as you showed in the video. It's right?
[Android Software/Hacking General [Developers Only]] fritzcola:
Can i run it on the P880?
[Android Software/Hacking General [Developers Only]] abhi08638:
No

sent from my amazingly awesome OnePlus One with Stereo Mod

http://xdaforums.com/showthread.php?t=2967925

Don't forget to hit thanks!
[Android Software/Hacking General [Developers Only]] DubleJayJ:
What if I tap the wrong corner, will turning on the screen reset the input?
[Android Software/Hacking General [Developers Only]] fritzcola:
Why not:(
[Android Software/Hacking General [Developers Only]] Dilshad969:
Go to sys>android_touch and open tap2unlock (Note: It's tap2unlock not tap2unlock_pattern)

and change it's value to 0

that's it
[Android Software/Hacking General [Developers Only]] abhi08638:
Because it would require the digitizer to be constantly on, which would kill the P880's already crappy battery much faster

sent from my amazingly awesome OnePlus One with Stereo Mod

http://xdaforums.com/showthread.php?t=2967925

Don't forget to hit thanks!
[Android Software/Hacking General [Developers Only]] goutamniwas:
If ur using the alpha kernel , copy the pattern change command given in the op , to ur init.dscript file so that it stands even after reboot
[Android Software/Hacking General [Developers Only]] goutamniwas:
yes each and every wrong input resets the inout again , tap ur correct pattern again
[Android Software/Hacking General [Developers Only]] Swapnil Solanki:
Ultimately it's awesome but it's a battery drainage too!! And can you tell me how to apply the patches.
[Android Software/Hacking General [Developers Only]] shawnstewartx22:
searched but ...

I searched but file not found init.dscript ....could you please tell me its location in root .
[Android Software/Hacking General [Developers Only]] daradan:
can it wotks on mtk6589? thanks
[Android Software/Hacking General [Developers Only]] dummie999:
This may have been said before, but I'm kind of worried about security.

For example: if people have a init.d script with 755 permissions that reads:

echo "1224" > sys/android_touch/tap2unlock_pattern

Then that's not really safe, right? Since that's a world readable file containing your password.

When you have this installed, you won't have a normal lock pattern.

Then, what prevents someone from:

1. hitting the pwr key to turn on the screen

2. connecting an adb cable when the screen is on.

3. reading your password from /system/etc/init.d (the permission on init.d files is usually 755)

Also, with adb access, people might be able to just write a 1 to /sys/android_touch/enable (not sure about this - might need root) which would bypass the security completely.

I'm sure that there are ways around this, however, they are not all convenient (e.g. disabling adb). Do you have any idea how to allow us to set default passwords without hardcoding or using init.d scripts??

However, beyond this, I like the feature and I'm going to implement this in my own kernel soon. But it would be at least fair to warn people that this is not (yet) as secure as having a normal pattern/pin.
[Android Software/Hacking General [Developers Only]] NicestRudeGuy:
someone post a video how to use it couz im a newbie :o
[Android Software/Hacking General [Developers Only]] mrrocketdog:
just my ¢2. on a lot of devices , once the lock screen is lit up, all you need to do is pull down notification panel, click settings or any of a few other quick tiles and , viola! your in.

p.s. i think this is a great mod , i would just be careful what i included in my quick settings tiles. [MENTION=4575244]goutamniwas[/MENTION] , thank you for sharing this mod, your time and knowledge. :cowboy:

"all I can really do, is stay out of my own way and let the will of heaven be done"
[Android Software/Hacking General [Developers Only]] drasko85:
Is it possible to wake up screen by touching capacitive buttons instead hw button (galaxy s4). Do you have idea maybe how to achieve this.
[Android Software/Hacking General [Developers Only]] goutamniwas:
All the security concerns will be removed in time

Edit :

Now pattern can be set, t2u can be switched off/on with th app provided , pattern is set at boot by the app

Read post #2

This is so basic and is under development

Edit : app updated
[Android Software/Hacking General [Developers Only]] rogersb11:
How hard to adapt to galaxy note 2 in your opinion? Saw this like 2 days ago and forgot to post and ask. Thanks in advance
[Android Software/Hacking General [Developers Only]] jazzh:
On my crdroid it doesn't stay on, as it doesn't ask for root rights?
[Android Software/Hacking General [Developers Only]] rogersb11:
Meant to mention I already have touchwake, dt2w and s2w in my kernel. ROUGH adding first commit while skipping a few things got me sysfs files but in a slightly different location but it doesn't work. BUT that is my fault as I need to add more but read over OP again and you mentioned to just say if kernel has others (dt2w for example) so thought you might be able to speed my process up as I'm working on L too lol. Just pulled the config app to install and look at. I plan to add it to my stweaks configuration
[Android Software/Hacking General [Developers Only]] goutamniwas:
i cant understand what you are trying to say through this post , can u make the point clear
[Android Software/Hacking General [Developers Only]] rogersb11:
Sorry. Basically I have touchwake. dt2w and Slide2Wake use the existing touchwake to function so my setup is nothing like yours lol. I have all 3 features but I only have a touchwake.c and touchwake.h with NO double tap or Slide2Wake file so I'm winging it a little on the port. I added a PARTIAL commit and it gave me sys files under sys/tap2unlock but it doesn't work YET because I need to add the rest I assume. 1 simple question for now and also any ideas you may have with the info I just provided. What does this file actually control? drivers/video/msm/mdss/mdss_dsi_panel.c

Then I can try to implement it in my source to a similar device file. Having touchwake, dt2w and s2w all together I fear is going to make this more difficult than it may normally be
[Android Software/Hacking General [Developers Only]] hell_lock:
Great work! Truly remarkable idea put in there :)

Btw.. I want to make my device 'wake'able when the screen is off.. Do you know what do I have to do for that?

source
[Android Software/Hacking General [Developers Only]] VoLTaqe:
Hi dev. Thanks for your idea and commit. I want add this commit to https://github.com/maxfu/android_kernel_samsung_exynos5410 this i9500 s4 kernel but i couldnt find lge_touch_core.c. Do you know which one on s4 have this codes for change ?
[Android Software/Hacking General [Developers Only]] goutamniwas:
Thats not gonna add tour difficulty , mdss_dsi_panel is for the lcd screen , it can control turning on and off of the lcd screen
[Android Software/Hacking General [Developers Only]] goutamniwas:
Why would u require that file , is that your touchscreen driver ?

Bw i couldnt find the config file that ur using to compile the source , without that its not possible to find ur touchscreen driver file
[Android Software/Hacking General [Developers Only]] VoLTaqe:
i dont know which file touchscreen driver on s4
[Android Software/Hacking General [Developers Only]] rogersb11:
Oh. So what's the synaptics file then? Touchscreen is not my favorite lol. Many files control one thing

---------- Post added at 03:07 AM ---------- Previous post was at 03:03 AM ----------

Then you may not be able to do this yourself. Ask a s4 dev. Maybe [MENTION=4325945]ktoonsez[/MENTION] tho I'm not sure he still builds for s4 but worth a shot. He could pick this right up for sure
[Android Software/Hacking General [Developers Only]] lozohcum:
When you wake device with power button touchscreen doesn't work, is it bug or you did it on porpouse?
[Android Software/Hacking General [Developers Only]] Maxr1998:
Watch the video in the first post..

Short answer: purpose

Sent using my nexus⁴ running Mahdi 2.8 with Xposed and hells-Core B64

Bitcoin donation address
[Android Software/Hacking General [Developers Only]] lozohcum:
how to turn it off?
[Android Software/Hacking General [Developers Only]] Shuttwind215:
@up you can neither do that via terminal emulator or the app provided by the OP.
[Android Software/Hacking General [Developers Only]] goutamniwas:
synaptics - touchscreen ct406 - proximity
[Android Software/Hacking General [Developers Only]] hell_lock:
Nvm.. problem solved
[Android Software/Hacking General [Developers Only]] rogersb11:
EDIT

Ok just being thorough. So Synaptics is proximity and the other one (panel) is the LCD correct? Thank you very much. Plan to work more on this tonight. I put it on new expendable branch and when ALL done and working I'll squash it and cherry pick my squash with the proper credits once it's working
[Android Software/Hacking General [Developers Only]] goutamniwas:
Update to v2.0

Much better , see changelog
[Android Software/Hacking General [Developers Only]] sutt2m:
will this work on the xperia L with thunderzap 4.10? thanks
[Android Software/Hacking General [Developers Only]] Maxr1998:
No, this is only a patch for developers, your kernel dev/rom & kernel dev needs to implement this feature, ask him kindly and point him to this thread.

Sent using my nexus⁴ running Mahdi 2.8 with Xposed and hells-Core B64

Bitcoin donation address
[Android Software/Hacking General [Developers Only]] r03ter:
LG G3 and G2 have this feature right now... It is implemented through the kernel, no apps required.

If you want more information, then I highly suggest that you talk to [MENTION=2376110]dorimanx[/MENTION] and [MENTION=270378]Cloudyfa[/MENTION] because they both are highly experienced with this feature and kernels.. I'm sure you'll be able to benefit from them ;)
[Android Software/Hacking General [Developers Only]] antarix:
[MENTION=4575244]goutamniwas[/MENTION] does it needs dt2w active?
[Android Software/Hacking General [Developers Only]] goutamniwas:
No , even if its active dt2w wont unlock the phone
[Android Software/Hacking General [Developers Only]] antarix:
Tried it on moto g with felcia kennel.

Doesn't work without dt2w on.

Even it shows wing old code then t2u doesn't work and reboot is the only option via long pressing power key.
[Android Software/Hacking General [Developers Only]] Shuttwind215:
[MENTION=4644796]antarix[/MENTION]

TBH ,that's weird ,because I can have dt2w on/off and the T2U[V2.0] works.

I also checked the md5sums ,and everything is allright...

I haven't touched T2U sources since V103.

Also what su binaries do you use ,and which kernel tweaker do you use ,as I think that's the main problem.
[Android Software/Hacking General [Developers Only]] antarix:
i'm using mokee rom and even tried it on validus as well.

used trickstermod in both the roms to tweak the kernel.

i'm using supersu 2.02 as it works flawlessly with kitkat.
[Android Software/Hacking General [Developers Only]] Shuttwind215:
Well I use the newest: XperienceCyanogeN #20141124

SuperSu V2.37

Aero Kernel Control V2.0

And it works flawlessly
[Android Software/Hacking General [Developers Only]] antarix:
it works now with v107 test build.

still using the same supersu2.02 with t2u 0.3 apk and suggested way for the app to work by goutamniwas.
[Android Software/Hacking General [Developers Only]] goutamniwas:
Update

The app as well as t2u is updated with some critical changes
[Android Software/Hacking General [Developers Only]] VoLTaqe:
Before edit your changes we must do add doubletaptowake or only your changes will be okey ? And whats wrong ( https://github.com/maxfu/android_kernel_samsung_exynos5410/tree/master/drivers/video/msm ) with mdss folder. I edited touchscreen driver only left mdss problem. What about that ? (samsung s4)

Thanks.
[Android Software/Hacking General [Developers Only]] fonsigno:
nexus 5 kernel
[Android Software/Hacking General [Developers Only]] goutamniwas:
The applications is updated to v 0.5

Screenshots :

Now its possible to inut the pattern also when the screen is on and also after incoming call
[Android Software/Hacking General [Developers Only]] goutamniwas:
Update

T2u app 0.6 is updated along with the t2u kernel version (3.0)

with many changes and fixes

which makes t2u a stable , daily lockscreen driver

Screenshots :

EDIT :

Tap2unlock application is now open

https://github.com/goutamniwas/Tap2unlock

-
[Android Software/Hacking General [Developers Only]] millerboy3:
Is it possible to not set a pin and just tap twice on the screen to unlock?
[Android Software/Hacking General [Developers Only]] goutamniwas:
What do u mean , isnt what u ask is the dubletap2wake feature
[Android Software/Hacking General [Developers Only]] Shuttwind215:
[MENTION=4575244]goutamniwas[/MENTION] I think what [MENTION=2336041]millerboy3[/MENTION] meant is when you have t2u on you can't use dt2w ,and If he wants to use t2u and dt2w then it's kinda silly ,or he wants to just use dt2w with t2u compilled kernel ,or he wants double tap 2 unlock ,so screen is locked ,and when he double taps on off screen ,it unlocks.

T2u with only one tile and 2 long pin. Hmm here what you can do ,go to my kernel thread download "t2u off" and flash it[it's just a init.d script ,it should have a name that is going to be easilly recognizeable in /system/etc/init.d ] ,you propably tweaked screen size while adding this feature to the kernel. So when you compile ,instead of half horizontal and half of vertical screen size set full screen size[it mightn't work ,but worth a try] ,and in app set a pin 1111 ,those are 4 taps ,but still should do ,then delete my script from /system/etc/init.d/t2u ,restart phone ,and if it doesn't work then flash your previous kernel.

So to use dt2w normally turn off the t2u and make sure dt2w is on.

Or turn off t2u in build config and set correct config when you compile your kernel.
[Android Software/Hacking General [Developers Only]] sarthaks793:
What to do after flashing the alpha kernel ?
[Android Software/Hacking General [Developers Only]] sarthaks793:
I am just getting 0 as my default pattern and also I am unable to change it.
[Android Software/Hacking General [Developers Only]] goutamniwas:
There is an application provided to change patterns , you can change it with file manager (Its an outdated method)
[Android Software/Hacking General [Developers Only]] 0G72:
[Q] Lollipop

Will this kernel work with this ROM?

http://xdaforums.com/moto-e/development/rom-motorola-stock-rom-t2935429

Thanx
[Android Software/Hacking General [Developers Only]] goutamniwas:
theoretically yes
[Android Software/Hacking General [Developers Only]] Voterx:
How can I install this? I have Gustavo_s kernel on Galaxy S2 LP and it have S2W option enabled. How i can install this patch? Or I just need to install that .apk (or flash zip)?
[Android Software/Hacking General [Developers Only]] 0G72:
And if it not work, can i flash my old kernel back?