yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Themes and Apps] orangekid:
With how much I change / update my ROM and kernel, I wanted a fast and easy way to just flash something to enable DoubleTap2Wake and Sweep2wake because I use both a lot.

I didn't want to have to download or pay for any 3rd party apps that stay open all the time, or only work half the time, and got tired of manually putting the init.d files and changing permissions every time I flash something, so I made some flashable zips (with a little help from XDA members efrant, Moscow Desire, Jonny, and GermainZ).

Figured I'd share, not sure if there's interest; but just in case you're like me and like these mods... Just make sure you have a kernel that supports these mods. I've been using bricked kernel for a while now with zero issues.

Flash the one you want, I included the uninstaller for all. If you flashed both DT2W and S2W and just want one of them, flash the one you want, it will remove the other one.

This eliminates the need to install any app or anything to enable these mods.

Use a kernel you find that specifically states it supports S2W and DT2W.
[Nexus 5 Themes and Apps] CRIME INC.:
Thanks for this. Great idea

sent from my HAMMERHEAD neXus
[Nexus 5 Themes and Apps] shogun656:
Thank you so much, was looking for a way to get it besides touch contro

Edit: I flashed the second and third one and they both didn't work and I got Franco kernel as my kernel

Sent from my Nexus 5
[Nexus 5 Themes and Apps] galaxys:
Awesome! Makes waking the N5 easier!! :)
[Nexus 5 Themes and Apps] orangekid:
I've only tested it using bricked kernel, but it should work on any of them that use the same enabling commands. Can you link me to the kernel thread you're talking about?
[Nexus 5 Themes and Apps] shogun656:
Here you go

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

Sent from my Nexus 5
[Nexus 5 Themes and Apps] yyz71:
Bookmarked
[Nexus 5 Themes and Apps] orangekid:
That kernel does not support S2W and DT2W.

Flash one of these:

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

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

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

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

or any others you find that specifically state they support S2W and DT2W.
[Nexus 5 Themes and Apps] rasta312:
Working stock 4.4.2 and stock kernel ?

Wysłane z mojego Nexus 5 przy użyciu Tapatalka
[Nexus 5 Themes and Apps] orangekid:
No, unless someone put up a stock kernel with showp's modifications.
[Nexus 5 Themes and Apps] shogun656:
So I tried bricked and its still not working:(

Sent from my Nexus 5
[Nexus 5 Themes and Apps] orangekid:
I use the betas, maybe it's not fully integrated in the "stable" ones, but have never had a single issue with the beta kernels.

Try this one, performs like a boss for me and 100% supports these mods

http://bricked.de/downloads/kernel/hammerhead/exp/bricked_hammerhead_20131206_183835_exp-516a802.zip

flash the kernel, flash the zip file from the OP you want, and let me know what happens
[Nexus 5 Themes and Apps] shogun656:
Sorry to keep bothering you but it's still not working and I flashed the kernel and the zip and its still not working, I even tried removing and reflashing the zip but it still isn't working

Sent from my Nexus 5
[Nexus 5 Themes and Apps] orangekid:
That's odd.

Which zip are you flashing?
[Nexus 5 Themes and Apps] shogun656:
S2W and DT2W.zip and the DT2W.zip

Sent from my Nexus 5
[Nexus 5 Themes and Apps] orangekid:
It might be a 4.4.2 thing, I am on 4.4.

Are you on a rooted stock ROM?
[Nexus 5 Themes and Apps] shogun656:
That is probably it, I'm on 4.4.2 stock odex, no custom rom

Sent from my Nexus 5
[Nexus 5 Themes and Apps] orangekid:
Do me a favor and try this one and let me know if it works.
[Nexus 5 Themes and Apps] shogun656:
It didn't work, it gave me [status 6] installation aborted

Sent from my Nexus 5
[Nexus 5 Themes and Apps] Galaxysm:
Does it work with Cataclysm?

Sent from My Nexus 5 ?.
[Nexus 5 Themes and Apps] riggs170:
OP how's the battery life with this mod?

It's a kernel thing the ROM shouldn't affect it.
[Nexus 5 Themes and Apps] orangekid:
Let me re-package it and see if I can fix it for 4.4.2

You might try another kernel besides bricked and use one from the OP again and report back.

I haven't noticed any more battery drain than usual with either mod.
[Nexus 5 Themes and Apps] letmedanz:
If you can get this to work with any of the custom kernels on 4.4.2 with minimal battery drain, you'll have a winner!

thanks for the effort [MENTION=1698146]orangekid[/MENTION]

much appreciated
[Nexus 5 Themes and Apps] orangekid:
Can you try this one?

edit: [MENTION=5401556]shogun656[/MENTION] too.
[Nexus 5 Themes and Apps] shogun656:
This one is working great, thanks sooo much, really appreciate it

Sent from my Nexus 5
[Nexus 5 Themes and Apps] orangekid:
Awesome!

[MENTION=2888538]letmedanz[/MENTION], try it out and let me know.

I will update the OP ASAP, need to make the same changes to all the files.
[Nexus 5 Themes and Apps] orangekid:
OP updated with all files that should work with 4.4.1 and 4.4.2
[Nexus 5 Themes and Apps] letmedanz:
Ok.. i have a question..

the kernel's you've listed already have these features enabled in them right?

why would there be a need for a separate instal?

is this intended to save battery something else or am i missing something.

i am currently of Franco test 20 (haven't yet tried the others) which obviously doesn't have these options enabled, but i ain't averse to using other kernels.

do you suggest any kernel?
[Nexus 5 Themes and Apps] orangekid:
The kernels I put in (probably there's more), have the option in the kernel, but it is disabled by default.

In order to enable the features, you either have to buy an app, or download a free app that does it, or put in a script that tells it to enable it. You can also do a terminal emulator command but it doesn't stick after a reboot.

What I have found is that if I have one of these apps open in the background then some of the time the feature does not work, either because Android kills the app at some point or some bug.

All these zips do is put a script in place that tells the kernel to enable the feature(s) when you start the phone up. To me it seems like it uses less battery than having an app always open to do that, but that could be placebo.

Which kernel you use is up to you, and bricked vs elementalX vs linaro with these added will give different battery life etc. because they are different kernels. It also depends what you set your min / max CPU speed to and your governor (through your ROM's settings), and many other things.

So I can't really recommend a kernel. The one I currently use is bricked, the beta from Nov 25 (I used the Dec 06 one, but it seems laggier, so I rolled back).

You just have to try a few and see which ones you like.

What I can tell you from personal experience is that after flashing the DT2W (that's the one I use most now) zip file, I have not noticed battery drain any more than before I had it. But that's just me, and I love the feature. I can easily turn on my phone and off with one hand very easily now (because I have my home button long-press set to turn off the screen).

Hope that answers your question.
[Nexus 5 Themes and Apps] letmedanz:
Yep! totally answers my question..

thanks for that..

will install a different kernel & give this a go.

will keep you updated orangekid

great job any which ways!
[Nexus 5 Themes and Apps] orangekid:
Sounds good.

After you get S2W, DT2W, or both going, you may never want to go without them again.

I picked up my friend's phone and started swiping the screen out of habit and he looked at me like i was crazy..
[Nexus 5 Themes and Apps] Meowdib:
What about this kernel?

http://xdaforums.com/showthread.php?t=2538441
[Nexus 5 Themes and Apps] orangekid:
Yeah should work with that kernel.
[Nexus 5 Themes and Apps] Cruzfire:
Just flashed this baby, works flawlessly. You are right about that the apps to activate this use to fail from time to time.

Back for report in a couple of days, God bless you sir.
[Nexus 5 Themes and Apps] v1c70r:
anyone knows how to activate it over faux kernel 005??

EDIT: I tried to enable it over Bricked Kernel and doesn't work either
[Nexus 5 Themes and Apps] Cruzfire:
Works for me on cataclysm with Bricked
[Nexus 5 Themes and Apps] handsomejesus:
Any possibility of having Double tap 2 Sleep?
[Nexus 5 Themes and Apps] orangekid:
Sounds good.

Which ROM are you on?

You flash bricked, then one of these mods, and it doesn't work?

I doubt it, because what if you want to zoom in on your web browser, or play any game,or type something? The phone would be unusable...
[Nexus 5 Themes and Apps] dankof:
Not working for me on Stock 4.4.2 with Franco Kernel Nightly r20.
[Nexus 5 Themes and Apps] orangekid:
I don't think kernel one supports these features. At least his OP doesn't say it does. Try a kernel that specifically says S2W or DT2W in the description somewhere.
[Nexus 5 Themes and Apps] letmedanz:
[MENTION=1698146]orangekid[/MENTION]

just about to flash ElementalX to try your mod.

from here

when there are options in aroma to enable S2W & DT2W, should these be enabled there or leave them disabled and then flash your zip?
[Nexus 5 Themes and Apps] orangekid:
If you enable them from aroma it will be the same as flashing any of my zips.

Most ROMs and kernels do not use aroma with that option though.
[Nexus 5 Themes and Apps] ceasee:
Thanks!

Working great on Cataclysm (latest stable) ROM with Bricked Stable (Dec 06) Kernel.
[Nexus 5 Themes and Apps] v1c70r:
I'm on stock rom rooted with bricked kernel and trying to activate S2W without success. Any help or suggestion??

Also I have TWRP as custom recovery.
[Nexus 5 Themes and Apps] orangekid:
I also use twrp.

I suggest try another kernel, or use a bricked beta instead of the stable.

Reflash the s2w and see what happens.
[Nexus 5 Themes and Apps] projectzero_droid:
Support Cataclysm rom ?

Now i'm using Cataclysm rom anyone have try this mod is working ?
[Nexus 5 Themes and Apps] sorcio91:
It's a kernel thing, you must be sure that you've installed a kernel with s2w or dt2w features. The ROM does not matter. If you have installed only cataclysm rom it will not work.
[Nexus 5 Themes and Apps] alturismo:
Is there a pure stock kernel with the features out there ?

Thanks ahead for a hint.

Gesendet von meinem Nexus 5 mit Tapatalk 4
[Nexus 5 Themes and Apps] orangekid:
Look thru both development forums and see if you find one.
[Nexus 5 Themes and Apps] DamBadz:
This is was I looking for Thx :)
[Nexus 5 Themes and Apps] projectzero_droid:
frozen

As someone mention on the post about supported Kernel and i have try with ElementalX 0.14 and Bricked-Kernel Hammerhead at first is working well after a few minute when i Double tab on screen (i flash DT2W.zip before) the screen frozen i can't unlock just only physical button still working. anyone have the same problem with me. i'm using Cataclysm rom 4.4.2
[Nexus 5 Themes and Apps] orangekid:
I'm on DroidKang 11 right now using ElementalX and I haven't had that happen once.
[Nexus 5 Themes and Apps] projectzero_droid:
Maybe the Rom itself have the problem but thank you anyway for good mod :cowboy:
[Nexus 5 Themes and Apps] orangekid:
You never know.

You might flash the a different bricked beta and see if that works better for your ROM.
[Nexus 5 Themes and Apps] projectzero_droid:
ok i will try for that will report soon
[Nexus 5 Themes and Apps] orangekid:
I'm working to see about slide to sleep (on the status bar) but I need to see what necessary kernel modules need to be there.
[Nexus 5 Themes and Apps] justmpm:
Since the OP can't be expected to test every kernel and ROM combination, we can help him troubleshoot problems getting these MODs to work.

The init.d scripts can be run from terminal or using something like Script Manager from the play store (https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en).

The script will have to be run as su, so you will need Root. After flashing the mod, you can try to activate it from the terminal: su sh /system/etc/init.d/dt2W

If you want to test other scripts just replace the "dt2W" with the name of the init.d script you want to test.

If there are errors running the script, report them because they will help the OP debug the problem. If you can activate the kernel modules with terminal commands, but it doesn't work at boot, then there is probably something wrong with your init.d support, or you have other scripts that run after this one that is inactivating the module.
[Nexus 5 Themes and Apps] ch0c0lateb0yctg:
no way to make it work on stock kernel?? :( i am kinda get messed up with al those custom kernel...
[Nexus 5 Themes and Apps] JokerAce:
Nope. The kernel itself must support the function. Otherwise this flashable zip does not help in anyway.
[Nexus 5 Themes and Apps] ch0c0lateb0yctg:
ok thnx bro...may b itz time to flash a custom kernel,,,whats ur personal fav? i prefer battery life and smoothness,double knk feature of course?
[Nexus 5 Themes and Apps] cd69:
I know you didn't ask me but I thought I will pitch in anyway :) it was my first time with custom kernel too and I switched from stock to bricked. Activated double tap to wake and alls good. 2-3% battery drop per hour but I love it. Also I use greenify to ensure max battery conservation.
[Nexus 5 Themes and Apps] ch0c0lateb0yctg:
[/COLOR]

thnx fr the suggestion bro....i will try the kernel...
[Nexus 5 Themes and Apps] orangekid:
I don't like recommending kernels or ROMs, but I currently use bricked with no issues.

Pretty sure you can't go wrong with any of the custom kernels for the N5.
[Nexus 5 Themes and Apps] rocksyjj:
thanks alot for this
[Nexus 5 Themes and Apps] anthonyly:
Not working for me!

Catalysm and France just saying

---------- Post added at 09:36 PM ---------- Previous post was at 09:36 PM ----------

Franco *
[Nexus 5 Themes and Apps] theremix:
Franco kernel doesn't support this module. Just read the thread for more kernel suggestions
[Nexus 5 Themes and Apps] cd69:
If you want to use Franco, then this might help

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

Sent from my Nexus 5
[Nexus 5 Themes and Apps] LGmarly:
Hey thanks for this, works like a charm.
[Nexus 5 Themes and Apps] fonzie444:
Hi, i've flashed DT2W with bricked kernel on 4.4.2 stock rom rooted, It works very well! Thanks a lot for this mod! Now i'll test battery's consumption... I hope it's not bad...

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Themes and Apps] ch0c0lateb0yctg:
flashed bricked kernel....looks like s2w or DT2W is already in the kernel...so do i need to flsh these files?? please reply
[Nexus 5 Themes and Apps] fonzie444:
You need to flash zip files and enable the functions through a program that manages the kernel.

However, tonight battery drain 21% in about 6 hours in airplane mode... a bit too much, don't you think?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Themes and Apps] ch0c0lateb0yctg:
please clarify abt da battery drain??
[Nexus 5 Themes and Apps] fonzie444:
Tonight I have put the phone in airplane mode and after 6 hours the battery gone down 21%

Ps: sorry for my english :)

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Themes and Apps] ch0c0lateb0yctg:
well thats a lot draining,,,,i thought minimizing battery drain was da main purpose of this script.
[Nexus 5 Themes and Apps] orangekid:
It depends on your kernel and settings. My battery drain isn't anything like that.
[Nexus 5 Themes and Apps] fonzie444:
I've bricked kernel like your, which are your settings?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Themes and Apps] orangekid:
Which ROM?
[Nexus 5 Themes and Apps] fonzie444:
Stock 4.4.2

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Themes and Apps] orangekid:
Dunno.

I'm on droidkang with bricked. I also use kernel tweaker app to uv etc
[Nexus 5 Themes and Apps] fonzie444:
I also use kernel tweaker, can you advise me some settings to increase battery's life?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Themes and Apps] orangekid:
Bottom line is this does reduce battery. But I still get all day usage.

UV 750, min CPU 192, interactive gov
[Nexus 5 Themes and Apps] fonzie444:
Ok, I set uv 750 and interactive governor, but i can't reduce cpu... original settings are 960 mhz (min/max), is this normal?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Themes and Apps] orangekid:
It should be like this
[Nexus 5 Themes and Apps] gbarayah:
I'm coming from the 'Touch Control' app - loved the features, but couldn't live with the battery drain issues on my N5.

My question is, has anyone tried to flash this mod with the modified Stock Kernel that Ponury was using to allow touch control to work with stock?

Also, if I were to flash the mod, and it DIDN'T work - is there any harm done? Or will I just not have S2W/DT2W? Of course, I'd make a nandroid first =)
[Nexus 5 Themes and Apps] orangekid:
It wouldn't have any negative consequences.

And you can flash the remove all zip to take out the init.d files.
[Nexus 5 Themes and Apps] gbarayah:
In case anyone was wondering...

I tested it with Ponury's Modified Stock Kernel for the N5 and it does NOT work.
[Nexus 5 Themes and Apps] orangekid:
bponury and showp use different modules I believe, so you have to use a kernel with showps modules, not bponury's.

Any of the kernels that say "DT2W and S2W..." use showp's modules and will work.
[Nexus 5 Themes and Apps] memnoc:
can you link the bponury stock kernel please?
[Nexus 5 Themes and Apps] Cruzfire:
Based on my testing with this mod+different kernel and without messing with uv/uc,it drains about 5%/hour on stand by.

Since this is very useful to me on my work,I need to unlock my cell fast,I found a widget which enable/disable this mod whenever you need it.

http://xdaforums.com/showpost.php?p=49735729&postcount=586
[Nexus 5 Themes and Apps] orangekid:
That looks good, and it works every time?

I've had widgets like that or apps that only worked some of the time, which was very annoying.
[Nexus 5 Themes and Apps] Cruzfire:
Yes,it works like a charm, it's ugly like hell do :)
[Nexus 5 Themes and Apps] gbarayah:
I downloaded it through the app - I'll see if I can extract it from my device and post it here.

I check his forums and I see a link to the N4 kernels but not the N5 =/
[Nexus 5 Themes and Apps] fonzie444:
Why sometimes screen doesn't respond to double tap?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Themes and Apps] orangekid:
That's a kernel issue.

change kernels.
[Nexus 5 Themes and Apps] cd69:
Hi Guys, I posted this in the kernel thread too, but I think its an issue with the zip file. So here is the story:

I was using Bricked and it was working great apart from the proximity sensor issue (it was not being detected). So I flashed back to stock and everything was good. Since I missed the dt2w feature I decided to give Franco modified (dt2w) kernel a shot. Installs well, however dt2w does not function. I use dt2w zip file which I had flashed and works with Bricked. However on this kernel no matter how many times i flash/unflash, wipe cache dt2w doesnt seem to work. I am on stock 4.4.2 +N5+ (currently bricked as I flashed back to it) + Xposed + GB.

PS: Tried this with Linaro too and no response on dt. Seems to work only on Bricked so far but the dialler error is terrible. Any ideas anybody?

Appreciate any input.
[Nexus 5 Themes and Apps] orangekid:
can you link me to the thread of the kernel you're talking about that it doesn't work on?
[Nexus 5 Themes and Apps] cd69:
Here is one of the them :

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

Edit: For now using the widget. Looks like it works. I believe for some reason this zip file wasnt working for me. Not an issue, but leaving it here just in case anyone else runs into this problem.

Sent from my Nexus 5
[Nexus 5 Themes and Apps] D6E:
EHNDROIX V 14.5.9 / ElementalX (CM version) / enabled Tap2Wake / worked once

Flashed your zip / worked once / doesn't work anymore?

Anyone else had this issue? Should I flash a different kernel? ElementalX has this feature available but it doesn't seem to work.
[Nexus 5 Themes and Apps] orangekid:
I'm on elementalX .38 and these still work for me.

try flashing the kernel again, then flashing one of the zips again.
[Nexus 5 Themes and Apps] unciviilized:
Tried this on rom mentioned above but doesnt work.
[Nexus 5 Themes and Apps] orangekid:
What doesn't work exactly, the DT2W, the S2W, or both?

Do they work once, then not again, or not at all?
[Nexus 5 Themes and Apps] unciviilized:
Ive had only tried the DT2W i reflashed elemental then selected DT2W rebooted then flasher your zip.
[Nexus 5 Themes and Apps] orangekid:
Try it with only the bottom or top half of the screen, there may be something I need to fix in the zip file due to a change in that kernel.

Let me know if just bottom half or just top half works atm.
[Nexus 5 Themes and Apps] unciviilized:
I tried bottom and it didnt work i try whole screen now and report back

---------- Post added at 09:24 AM ---------- Previous post was at 09:21 AM ----------

Ok tried whole screen and nothing
[Nexus 5 Themes and Apps] orangekid:
You're on the latest elementalx kernel?
[Nexus 5 Themes and Apps] unciviilized:
Yes
[Nexus 5 Themes and Apps] orangekid:
That's odd.

Can you do me a favor and try S2W?

Let me know what happens and I will take a look.
[Nexus 5 Themes and Apps] unciviilized:
Didnt work ether..
[Nexus 5 Themes and Apps] orangekid:
I'll check it out. Are you doing the aroma version or the default zip.

Also, are you doing the latest?
[Nexus 5 Themes and Apps] unciviilized:
Aroma and latest
[Nexus 5 Themes and Apps] orangekid:
Hmm.

On the aroma, are you checking DT2W or leaving it deselected and flashing the zip afterward?
[Nexus 5 Themes and Apps] unciviilized:
I flashed S2W and ur zip and nothing then selected DT2W and ur zip and still nothing
[Nexus 5 Themes and Apps] orangekid:
No, I mean when you flashed the kernel using Aroma what did you select during installation?
[Nexus 5 Themes and Apps] unciviilized:
I selected ea one seperately
[Nexus 5 Themes and Apps] orangekid:
Well if you're selecting it during installation, you probably don't need the zip, it does the same thing, but I still need to look at it, because it should still work.

In the meantime, just try to flash the kernel in aroma, select DT2W, then don't flash the zip, and see if it works (can try with S2W too).

If it doesn't work then it's something with the ROM possibly, but if it does, then I need to fix the zip files, possibly a new flag when the "top half of screen" option was introduced.

This is more for kernels that do not have Aroma installation and it is more difficult to turn it off and on (if you don't want to use terminal emulator).
[Nexus 5 Themes and Apps] ColdFire InOx:
Does this still not work with franco.kernel?
[Nexus 5 Themes and Apps] orangekid:
Not as far as I know. It has to say S2W / DT2W in the thread OP or title.
[Nexus 5 Themes and Apps] lk5plus:
my stock kernel of K5 Plus don't have dt2w ability.

what tou can help me to add this function on this kernel?
[Nexus 5 Themes and Apps] orangekid:
You are going to have to flash a new kernel that has it built in.
[Nexus 5 Themes and Apps] lk5plus:
my kernel doesnt support dt2w. how to add this support? thanka
[Nexus 5 Themes and Apps] Dreamer(3MF):
Download The Module Of MultiFunctions From This Thread https://xdaforums.com/apps/magisk/module-multifunctions-bootloop-t3933386 For Getting The Ability To Use The Function Of DT2WStatus Inverter To Invert The Default DT2W Status ([From Disabled To Enabled] Or [From Enabled To Disabled]).

P.S. The Installed/Flashed Rom/Kernel Must Support The Feature Of DT2W (DoubleTap2Wake)​
[Galaxy S III General] A.S._id:
GT-I9300XXUGMK6_BTU_2168382

Model: GT-I9300

Country: United Kingdom

Version: Android 4.3

Changelist: 2168382

Build date: Thu, 28 Nov 2013 21:02:26 +0000

Product Code: BTU

PDA: I9300XXUGMK6

CSC: I9300OXAGMK6

MODEM: I9300XXUGMK6

BOOTLOADER I9300XXUGMK6

WARNING!

No wipe data

bootloader has bootsequre - non dowgradable via Odin

Modem - efs v.2

Available included CSC: BTU, KOR, XEO, CPW, DBT, ITV, XEF
[Galaxy S III General] f0xy:
Don't we already have this?