yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] TheDarkDefender:
[MENTION=4684315]flar2[/MENTION] could you point out the commits needed for this to work please?

Edit : just the sweep and double tap to wake commits?
[Android Apps and Games] flar2:
Thanks, I need the log from a system where it doesn't work.

You shouldn't need permissive for this app, but certain Roms have weird selinux policies.
[Android Apps and Games] flar2:
You need s2w/dt2w implemented first. Then you have to add an input device and function to report the gestures to the input device. It looks complicated, but is actually very simple.

The wake gestures part is clearest if you look at this file:

https://github.com/flar2/shamu/blob/stock/drivers/input/touchscreen/wake_gestures.c

All the necessary additions are surround by this:

#if (WAKE_GESTURES_ENABLED)

...

#endif

Another example, when I added it to flo:

https://github.com/flar2/flo/commit/e4c8fffca47961eb0f224b2dd5d8f1a7268dcb52

Here's the original impmementation, on HTC m7:

https://github.com/flar2/m7-GPE-5.0.1/commit/b7ff66754e554fdea9d0680480caadac921a1422

Here it is on N5:

https://github.com/flar2/ElementalX-N5/commit/2c0abe9ad62ac526f3ae6ddb819e959941cbd777
[Android Apps and Games] TheDarkDefender:
Thank you so much! Appreciate it. Gonna try to port it to the nexus 4. Great work btw. Kudos.

Cheers,

D
[Android Apps and Games] Ciao600:
Installed the app but it says me wake gestures not supported.

Please, can you add support to Nexus 4? Thanks

Ps: I have Hellscore kernel b69t4.
[Android Apps and Games] jaibar:
Try reading OP again? I think this app is tailored for ElementalX kernel (by its creator, btw). There is a suggestion it could work on some other kernels, apparently not hellscore...
[Android Apps and Games] santod040:
[MENTION=4684315]flar2[/MENTION] Thanks for yet another awesome development and without Xposed, really great work!

I did run into one odd side effect on my m7 running my custom GPE rom.

So it could be a conflict in my rom with the app or maybe the way I compiled the kernel, which I don't think it's that.

Anyway, the issue is when powering the screen off with this service active, I get double, if not triple, lock screen sounds.

Again, this may be an issue with something on my end, so feel free to tell me so and I will look into things on my end.

Just wanted to mention it, in case it was reproducible for you or any other m7 GPE users.

Regardless, thanks again for your time and efforts. Very much appreciated, as always! :good:

Also, if you need a log from me for it, just let me know.

I will gladly capture and upload one for you if needed/wanted.
[Android Apps and Games] flar2:
I didn't notice that because I have lock sounds turned off.

This is due to the unlock hack. If you have unlock checked in the wake gestures settings, it's basically locking and unlocking when you turn the screen off, so you hear the lockscreen sound doubled and then don't hear the sound when you turn the screen back on.

As long as I can't figure out another way to globally dismiss keyguard when the screen turns on, the options are to turn off the unlock option, turn off the unlock sound, or live with the multiplied lockscreen sound.
[Android Apps and Games] santod040:
Perfect!

Thanks for your explanation and provided options, as well as another great piece of work! :good:

It truly is very cool, I wondered about doing this without Xposed when the initial version for Kk came out that required it and this is awesome!

Thanks for sharing...
[Android Apps and Games] fabio000:
Here you go :highfive:

I tried to turn on the service 3 times in this log

I didn't changed to permisive (still using enforcing)

also, if I restart the phone with the wake gestures app installed, it resets all the configurations of ElementalX app to the default (max cpu to 2265, GPU to 400, graphics controls red green and blue to 255, governor options, everything is reseted to the default...)

Using latest EuphoriaOS and latest elementax on a Nexus 5
[Android Apps and Games] flar2:
Do you have SuperSU?

Install SuperSU or you'll have to run permissive.

dmesg output would be helpful

Assuming that's the problem, does anyone know where to find good info about superuser? Like how to change selinux policies and contexts?
[Android Apps and Games] purian23:
I know [MENTION=3357040]Imoseyon[/MENTION] has put out a test lean kernel trying to conquer that very issue with CM's Superuser I believe. He's more than helpful and I'm sure would be glad to point you in the right direction to start looking. You guys are all awesome!
[Android Apps and Games] Phamwich:
I'm on a Nexus 6 running the latest Euphoria-OS which incorporate's leanKernel, and I'm happy to report that Wake Gestures have not given me any problems so far. Awesome work. Donated!
[Android Apps and Games] alex26aly:
Just installed the app, WOW insane control, much perfect, such awesome
[Android Apps and Games] georgios73:
Great app however what about battery drain? Enabling these gestures using the ElementalX app caused serious drain on my N5.
[Android Apps and Games] matitorres07:
Hi [MENTION=4684315]flar2[/MENTION] awesome work just want to ask cause I see no answer to my question on op.

I'm on m7,gestures are supported with 19.2 and now since I just saw an update 19.3 kernel since we don't have anymore gestures option on aroma?

Cheers!
[Android Apps and Games] flar2:
N5 drains the same as usual, other devices have negligible drain.

The option is not necessary because the app automatically enables it. That option caused way too much confusion so I put it "backstage"
[Android Apps and Games] guy4jesuschrist:
[MENTION=4684315]flar2[/MENTION], is there any way that you could add a "play/pause" selection to the actions menu? Also, is it currently possible without Xposed, to make it so that we can individually set one action to unlock and the other to just turn the screen on? I ask this because, I'd prefer to use 'swipe up' to unlock the phone, and 'd2tw' to only turn the screen on, revealing the still locked screen and it's notifications. If so, those options would make this a perfect companion to your kernel! Thanks in advance for whatever you may do with these suggestions!
[Android Apps and Games] thekkk:
I'm on HTC One M7 5.0.2 ARHD and ElementalX 19.1, Can you add the functionality to not allways bypass? for example swipe down is bypass to homescreen and swipe up just screen on for the lockscreen?
[Android Apps and Games] guy4jesuschrist:
Basically echoing part of what I requested above, haha. Great minds think alike. ?
[Android Apps and Games] saj2001ind:
to use this I need to have super su and CM in built root will not work right ?
[Android Apps and Games] DinarQ8:
not work with stock ROM and kernel

but good work
[Android Apps and Games] Primokorn:
Of course :)
[Android Apps and Games] thientran0532:
nice app and work well.
[Android Apps and Games] virus3003:
Does it works with Oneplus One wake gesture ?
[Android Apps and Games] aminov:
Can you add play/pause ?
[Android Apps and Games] flar2:
Unfortunately I can't do that. The way I had to implement it means it would require the ability to predict the future.

Not unless a kernel dev modifies it

Should be able to.
[Android Apps and Games] purian23:
Awesome dude!
[Android Apps and Games] thekkk:
Even if i have no security pin set to unlock?

Or would it be possible to integrate this directly to kernel?
[Android Apps and Games] guy4jesuschrist:
So considering I requested the same thing, as well as play/pause, I have a related question seeing as it's not currently possible to implement swiping up to unlock and swiping down to access the lockscreen only...would this capability be possible if you added Xposed compatibility as the KK version had? Or is Lollipop preventing that feature from being implemented?

Also, another feature suggestion; could you add the action to activate Ambient Display with a user-defined swipe for those who have it enabled? I'm using a modPack that adds the ability to the M7, and that would be a great alternative to not being able add the previously requested "not always bypass the lockscreen" feature. Sorry for my post being so wordy, I tend to be a bit detailed, haha.
[Android Apps and Games] nicochoco03:
Thank's for this app ! it's very cool ! Nexus 5 ;)

from France!
[Android Apps and Games] esprout:
Service could not start

I'm getting the error "Service could not start" when trying to turn it on.

This is on candy5 v1.0.1-20150220 ROM on Nexus 7 2013 with ElementalX 3.05-cm kernel. Anyone else getting this error?

I'm able to set /sys/android_touch/wake_gestures to 1 from terminal command line. However trying to activate the Wake Gestures app reverts the value in /sys/android_touch/wake_gestures back to 0.
[Android Apps and Games] flar2:
Could be selinux. Try setting it to permissive

If you want to keep it enforcing, install SuperSU
[Android Apps and Games] esprout:
I installed SuperSU, and now it works. Thanks!
[Android Apps and Games] D_Angelos:
Is any way to bypass the lockscreen when you open apps only(like swipe for camera bypass it but to turn screen on not)? Also i cannot bypass third party lockscreens like cm lockscreen.

Thanks for the great app!
[Android Apps and Games] D-m-x:
[MENTION=4684315]flar2[/MENTION]: Is there anything that can be done to make the Knock on Feature on the N6 more relyable if your App is used? I found DT2W slightly more unreliable when the App is used.

Most of the Time it responds the 2nd Time. Just curious if the implementation is different somehow!?
[Android Apps and Games] flar2:
I don't know why it doesn't respond. Can't figure it out. All the other devices work great.
[Android Apps and Games] D-m-x:
Any way we can help you?
[Android Apps and Games] flar2:
Not really, I have the same problem.

I'm also away on vacation for the next 10 days
[Android Apps and Games] D-m-x:
Alright, in the future let me know if i can help by testing or anything.

And a nice vacation to you ;)
[Android Apps and Games] iDpC1:
This 100% working me
[Android Apps and Games] blinqipa:
Is it possible to bypass the lockscreen only when an app is triggered to open? I like to use the lockscreen when I double tap (to wake) or press my power button to light my screen up.
[Android Apps and Games] Phamwich:
Is anyone getting in-call touches with their ear? I'm on Euphoria-OS which uses leanKernel, which has support for Wake Gestures. Would installing this help disable touches while in calls? I suppose I will give it a shot and see.
[Android Apps and Games] D-m-x:
Yes, thats exactly the purpose of this App. But try it for yourself, should work.

Here's the Topic btw. http://xdaforums.com/nexus-6/themes-apps/app-s2w-phone-call-disabler-t3018512
[Android Apps and Games] tealio:
I've been discussing reboot issues in the Nexus 6 ElemntalX kernel thread and and the S2W Call Disabler app thread. The reboots have been tracked down to this app thru my own testing, and also according to [MENTION=4684315]flar2[/MENTION].

I'd be happy to reinstall this app and provide whatever logs are needed to help clear up this bug.

What logs would be needed?
[Android Apps and Games] C3C076:
[MENTION=4684315]flar2[/MENTION]

Just wondering what happened to WAKE_GESTURES config that was available in aroma as well as elementalx.conf, or in elementalx kernel control app.

I can't find it anymore. Does it mean /sys/android_touch/wake_gestures is controlled only by Wake Gesture app?

I was thinking about updating my Wake Gestures xposed module but if wake_gestures flag is solely controlled by this app

it doesn't make sense to update/maintain the xposed module, anymore. Please, let me know.
[Android Apps and Games] Hollilightman:
Help

Hello,

with me, but also "Service Could not start"

I have ElementalX-m7-19.5 scythe with the ViperOne_8.0.0 and with the latest firmware 7.15.401.1

What can I do?:confused:

Thank You ...:D

PS. App is activated at the Viper Super User
[Android Apps and Games] flar2:
/sys/android_touch/wake_gestures is still there, I just didn't include it in aroma or the EX app because I was getting constant complaints about gestures not working. Users were confused and thought this setting needed to be enabled for dt2w or s2w, and would end up with nothing working.

This app just enables it when the service is started and disables it when the service stops so everything is seamless.

I think it would be worth maintaining the xposed module if it can solve the big problem with this app. I think everything works fine except the option to bypass the lockscreen. It's either on or off, it can't be set for individual gestures. And to make it work at all, I had to use a brutal hack that doesn't always work well for everyone.

Basically, I made a transparent activity that doesn't show up in recents. The activity is set to dismiss the keyguard. Then I have a broadcast that starts the activity when the screen turns off. So, when the screen turns on, this activity is in the foreground and the keyguard is dismissed, then the activity immediately finishes. I couldn't think of any other way to do this from an app.

Maybe with xposed you can hook the current foreground window and make it dismiss keyguard? In that case, I would say it's worth updating the module.

I think it's because Viper uses superuser. Either set selinux to permissive or install SuperSU.
[Android Apps and Games] Hollilightman:
Thanks Flar2

thanks, it worked with SuperSu.:o
[Android Apps and Games] C3C076:
Thanks for info. My module has lock screen dismissals solved (thanks to xposed). It correctly dismisses keyguard and even asks a user for security challenge when lock screen is secured.

Regarding wake_gestures userspace setting; looks like I would need to take the similar approach as your app and set it to 1 during boot when module starts. Correct?

Problem is my module doesn't require root so I expect myself running into some permission/selinux related issues.
[Android Apps and Games] flar2:
I think that would be best, and it will solve complaints for you too, as it will ensure that wake_gestures is enabled and the module will work.

Only downside is you will have to get root.

EDIT:

for selinux, you should be okay to modify /sys/android_touch, but I couldn't read /dev/input/event*, so you might need root anyway. I had to do something like this:

supolicy --live allow untrusted_app input_device { dir_search chr_file }

This is why SuperSU is required (or permissive mode)
[Android Apps and Games] C3C076:
Yeah. That's what I thought (I edited my previous post). Maybe when I try to do it during zygote start I might have enough permissions but not sure ATM.
[Android Apps and Games] suhelbrar:
Support for Android 5.1 with ElementalX-N5-2.11

I just wanted to know if anyone has Wake Gestures working with Android 5.1 and the latest ElemetalX kernel (v2.11) on their Nexus 5.

UPDATE: I just went ahead and tried it.. it works perfectly!
[Android Apps and Games] AMedviediev:
UI is awesome and works great!
[Android Apps and Games] peca_slo:
Hey how can i make it work with viperone rom, i tried to install supersu ans uninstall superuser but after reboot i stucked on logo boot. Is there any support for this
[Android Apps and Games] boroboy69r:
Do you have a custom kernel flashed
[Android Apps and Games] flar2:
That's a problem with HTC's bootloader, which is driving me crazy. Just hold the power button until it reboots again.
[Android Apps and Games] peca_slo:
Yes elemental

Ok i will try again to uninstall it and install supersu
[Android Apps and Games] flar2:
I haven't used Viper in a while, but don't risk breaking things by uninstalling superuser, just install SuperSU.

If it was stuck on the very first HTC splash, then there isn't anything wrong. It's just the bootloader sticks sometimes. Simply reboot.
[Android Apps and Games] peca_slo:
Teks flar i have managed to get working wake gastures. May i ask you which rom are you runnig just too see on which rom you bild your awsome karnel
[Android Apps and Games] flar2:
I mostly use stock
[Android Apps and Games] peca_slo:
Tenx :) hope to see your great work on m9 ;)
[Android Apps and Games] crownvn:
My device m7 rooted,sense 7 port not active with message " wake gueture not suppoter,other function be water mark.dont know why?
[Android Apps and Games] flar2:
You need ElementalX kernel and SuperSU
[Android Apps and Games] crownvn:
Tks, now it works with Elem :good:
[Android Apps and Games] italia0101:
Is there a way i can get this to activate / deactivate using tasker [MENTION=4684315]flar2[/MENTION]?

Basically i'd love to have the wake gestures to skip songs in my car ( would be super easy with a swipe)...
[Android Apps and Games] yellow rabbit:
No luck with franco

I'm just here to say that there is no luck with the franco kernel (r73) so I might be making the jump to elementalx thanks for the app though seems very useful
[Android Apps and Games] skhjpz:
Hi, how can I add this to my kernel? I'm new in building and adding things to kernel :) I know how to cherry pick but I can't find right commit to do it. I need this for shamu
[Android Apps and Games] spitfire700:
nexus 4 kernel

What kernel should i use for nexus 4 , because ElementalX is not available :(
[Android Apps and Games] Phamwich:
Hey [MENTION=4684315]flar2[/MENTION], as mentioned in the leanKernel thread for the Nexus 6, Imoseyon implemented support for your Wake Gestures, and I was able to get the app running in 5.1. However, it appears that left and right swipes are triggering the lockscreen shortcuts for the dialer and camera, without turning on the screen. This happens regardless of whether or not the swipe left/right shortcuts are assigned. Any idea why this is happening?
[Android Apps and Games] flar2:
No problem here. Using stock ROM.

What you're describing does not seem possible to me.
[Android Apps and Games] Phamwich:
I wish it wasn't possible, but it is happening, haha. I'm on leanKernel 2.3, running the 3/22 build of Euphoria for the Nexus 6. Perhaps this is a question for [MENTION=3357040]Imoseyon[/MENTION]?
[Android Apps and Games] flar2:
I don't think he'll be able to help, he just added the patches and I don't believe he uses these features. The problem wouldn't be at the kernel level.

Can you describe again what the problem is?
[Android Apps and Games] Phamwich:
Thanks for following up! I'm running leanKernel 2.3, on the 3/22 build of Euphoria for the N6, which is based on Android 5.1.

The double-tap, swipe up and swipe down gestures all seem to work as intended. Swiping left and right, when assigned to previous and next track, also work as intended, but only if a music player is running. If there is no music player running, swiping left and right triggers the dialer and camera shortcuts on the lockscreen, without turning the screen on. The same thing happens if the left and right swipe gestures are unassigned. The unlock sound is triggered, and when I switch the screen on with the power button, I will either be in the dialer or camera app. I do not have the option set to bypass the lockscreen.

I've attached a logcat in case it helps.
[Android Apps and Games] flar2:
I cannot reproduce this and there is nothing from this app in the logcat you attached.

In terms of the actual code in this app, I can't think of any possible way that the camera or dialer would open if the gesture is unassigned or set to next/prev track.

Perhaps the ROM has some other feature that is being triggered?
[Android Apps and Games] Phamwich:
As far as I know, I'm not aware of any features provided by the ROM that would be triggered. But the dialer and camera shortcuts only trigger during screen-off when the Wake Gestures service is running. Weird indeed. :eek:
[Android Apps and Games] flar2:
So it sounds like in the lk thread that touches are being registered when the screen is off?

That shouldn't be. Perhaps try elementalx and see if it works.
[Android Apps and Games] Phamwich:
Yep, ElementalX doesn't trigger the lockscreen shortcuts with left and right swipes. Very peculiar indeed.
[Android Apps and Games] jbowwow02:
Feature suggestion - swipe to increase or decrease volume

私はちょうど何が重要か見つけようとしている。
[Android Apps and Games] Draco5:
I use htc one m7 GPE 5.0.1 and the Wake Gesture dont work anymore wenn i play Musik with Poweramp, only if i restart the phone.

Can you Bild the wake gesture APP in the elemtal APP, so i dont Need 2
[Android Apps and Games] RusherDude:
Awesome app!

However, the option to ignore lockscreen dosn't work :(

Tested on N5 stock 5.0.1 LRX22C with Kernel ElementalX 2.10.
[Android Apps and Games] PippoX3:
Hi [MENTION=4684315]flar2[/MENTION]. Great work, great all. Thanks for your kernel app (I bought!), really great.

Have an issue with this app. I cherry-picked your commits, to merge them above mine cm kernel for M7.

All really works fine... but is unstoppable! I can't stop the service from start again at boot.

So while service is running it give priority on wake up features. Until it stops.

I would have DT2W/lower screen, active at kernel level (1), and stop.

But when service is active, neither your kernel app can change the feature. It changes value but don't sort effect.

Thanks again.
[Android Apps and Games] flar2:
You mean the prev/next track doesn't work with Poweramp? Maybe it uses a different API for that.

I don't want to build this app into the EX app, because the EX app is already complicated enough. Plus I want this to work completely independently. If you use Wake Gestures, everything should be controlled through the wake gestures app.

The lockscreen option might be ROM dependent. I don't have much ability to influence that from a user app.

I'm not sure what you mean. Can you explain again?

You mean changing the service switch doesn't stop the service?
[Android Apps and Games] Draco5:
No, the wake Gesture work anymore. I will use the flashlight with "left" its not work. I need to reboot
[Android Apps and Games] PippoX3:
I mean: I need to stop service to correctly setup DT2W with other app. I did, but doesn't still at reboot. In fact at reboot service starts again.

I need stopped, manual. Thanks.
[Android Apps and Games] flar2:
That's intentional. When the wake gestures service is enabled, all control is to be done in the wake gestures app.

The wake gestures service should not start on boot unless you have "Start on boot" checked. Make sure it's not checked.
[Android Apps and Games] PippoX3:
"Start on boot" isn't ckecked... but when I restart, DT2W is managed by GestureApp and inside it, service is started.
[Android Apps and Games] RusherDude:
Well, I am on pure stock LRX22C 5.0.1, so it may not work in stock but only other roms :(

Thanks for your time!
[Android Apps and Games] flar2:
The service starts automatically when you open the Wake Gestures app. If you stop it with the switch, it will turn off /sys/android_touch/wake_gestures and restore all other gesture settings to their previous values.

Works for me on stock. Sometimes it doesn't work if you turn the screen off and back on quickly.
[Android Apps and Games] RusherDude:
Hmm, after some testing I got few results where if I waited a minute or more with the screen off, after the double tock the screen shown me the pattern challenge directly instead of the normal swipe up screen. However I don't consider this "Unlock - Bypass the lockscreen" as the Wake Gestures app option is called :p, It just skips the swipe up screen, doesn't "ignore" the entire lockscreen haha.

Anyway it only works rarely :(. There's an option on the gravitybox xposed module that enables it and works 100% of the time, maybe you could get the method for it to work 100% of the time from its source :good:

Keep up the good work!
[Android Apps and Games] flar2:
I can't bypass the security code, just the lock screen itself. But android doesn't even want apps to be able to do that, so I had to invent something.

I know the method from gravitybox, but I can't use it without xposed. This app is actually ported from the xposed module. I made the app when I thought there would be no xposed for lollipop, then a week later it was out.