yashsingh1/xdaforums huggingface dataset:
[One (M7) Original Android Development] mikrosmile:
Also i found this

if (sensorevent.sensor.getName().equals("hTC Gesture_Motion"))
{
onHtcGestureMotion(sensorevent.sensor.getType(), (int)sensorevent.values[0], (int)sensorevent.values[1]); - i,j,k
return;
}

the Class implements SensorEventListener.

private void onHtcGestureMotion(int i, int j, int k) - sensorevent.sensor.getType(), (int)sensorevent.values[0], (int)sensorevent.values[1]
{
switch (j) - so it checks the (int)sensorevent.values[0]
{

j = 3 and 25 - swipe down
j = 15 - double-touch
j = 6 - landscape camera
j = 5 and 27 - right gesture
j = 4 and 26 left gesture
j = 2 and 24 up gesture

}
}

So, maybe [MENTION=4684315]flar2[/MENTION] you need to rename your event to hTC Gesture_Motion and set integers to the one equals to j.
[One (M7) Original Android Development] Mikanoshi:
And what if current "HTC Gesture sensor" is used somewhere else?)
[One (M7) Original Android Development] mikrosmile:
i dont think
[One (M7) Original Android Development] poondog:
In m8 source, there is definitely some HTC gesture motion thing in the gyro and touch drivers
[One (M7) Original Android Development] Mikanoshi:
Ok, I didn't find an android java class to use for getting input events, so now I'm reading them directly from input device in a hooked system process.

If I only find how to translate ABS_MT_* stuff to MotionEvents :D
[One (M7) Original Android Development] Mikanoshi:
This is a test for /dev/input/event4 (is it the same number on any HTC One?). Currently swipe up wakes device and opens recent apps, swipe down wakes and opens notification drawer:

I can hook EasyAccessService, create broadcast receiver there and just broadcast intents from system process when input events occur, so stock Motion Launch Gestures is totally possible to fix right now

or I'll just add this functionality to Sense 6 Toolbox with ability to bind any action to any gesture :D

Use Sense 6 Toolbox for wake gestures:

http://xdaforums.com/xposed/modules/mod-sense-toolbox-answer-to-sense-6-t2733409
[One (M7) Original Android Development] flar2:
Working, I had to install xposed, never used it before. Great work!

It looks like I'll have to add a short wakelock after the gesture is triggered, it's hit and miss from deep sleep.
[One (M7) Original Android Development] Mikanoshi:
Is it not sending an event to input device? Didn't try in deep sleep, my device is restless :D
[One (M7) Original Android Development] flar2:
I haven't checked yet, but I think it might be going back to sleep before the service has a chance to respond.

I had to add wakelocks for logo2wake and doubletap2wake to make them work 100% of the time. The device was going back to sleep before simulated the power button press.
[One (M7) Original Android Development] Mikanoshi:
If input device has an event, then it will be processed by my hook. I hooked one of the main android processes, it's not a service, it's always working. Stream from a device is read in an endless loop in a thread there.
[One (M7) Original Android Development] picklerick:
OK I found out what causes the system ui process to crash. If you swipe up from the home button then it will crash every time. I believe the reason I was thinking it was caused by s2s is because sometimes s2s would accidentally register as I was swiping up from the home button before shutting off the screen. Can any one else confirm this for me? Also is there a way to disable the swipe up from home button feature?

This on stock 4.4.2 sense 5.5
[One (M7) Original Android Development] Mikanoshi:
Not without mods or 3rd party apps, this gesture is assigned to assistant (Google Now by default).
[One (M7) Original Android Development] Fuzi0719:
I'm also on stock 4.4.2, sense 5.5 (T-Mobile US). Swipe up from Home launches Google Now for me, which is what it is supposed to do. Have you set up Google Now on your device?
[One (M7) Original Android Development] picklerick:
Yes I have Google now set up. The only difference I can tell is I'm using the AT&T version of 4.4.2.
[One (M7) Original Android Development] k1n9n0th1n9:
Can somebody tell me the best options for battery life while install this kernel ?
[One (M7) Original Android Development] kuchivas:
Option aroma

Max freq: 1566

Mpdec setting: power save

Thermal throttling: extra cool

GPU setting: stock (400)

GPU governor: Ondemand

Scheduler: fiops

Sleep/wake: your setting

My kernel setting. I hope help you with battery life. Good luck :D

Gửi từ HTC One của tôi
[One (M7) Original Android Development] k1n9n0th1n9:
Thank you. But người Việt à :)
[One (M7) Original Android Development] kuchivas:
Yes. Made in Viet Nam =))

Gửi từ HTC One của tôi
[One (M7) Original Android Development] Bllooi:
Deleted

Sent from my HTC One using the Internet.
[One (M7) Original Android Development] Mikanoshi:
My test module for Motion Launch Gestures on ElementalX 14.3test:

MLG should be enabled in Settings for gestures to work (otherwise they will just wake up device). Same goes for Quick Call.

Current gestures:

Swipe down - Quick Call (voice dialing)

Swipe up - wake device up bypassing lockscreen

Swipe right - go to BlinkFeed

Swipe left - should go to some widget page (on lockscreen?), but for me it just goes to homescreen next to BlinkFeed

HTC Logo press (instead of volume keys press) - start camera app.

Code improved, it will stop polling input device completely when screen is on. Horizontal swipes are active only when s2w/s2s is enabled and they are hard to do now, you should make long swipes, like those for s2w/s2s, across entire screen.

Use Sense 6 Toolbox for Wake Gestures:

http://xdaforums.com/xposed/modules/mod-sense-toolbox-answer-to-sense-6-t2733409
[One (M7) Original Android Development] chickentuna:
This is awesome! I'm currently testing this right now and all the features seem to work. But as you've said, it needs a full swipe for it to work. Can't wait for it to be fully customizable like setting custom actions with this gestures. Thank you for your hard work on this
[One (M7) Original Android Development] krazyflipj:
Nice work! Swipe left and right works great. I can't however, get Swipe down to work. Any tips?
[One (M7) Original Android Development] flar2:
Right now the kernel parts are like a rough draft to get things going. Hopefully tomorrow night I'll have time to get all the gestures improved and fully working.
[One (M7) Original Android Development] eltoffer:
is there a solution for the issue with paid apps when going back to stock kernel??? :/
[One (M7) Original Android Development] poondog:
Reflash your Rom dirty
[One (M7) Original Android Development] rahulnahar:
How to get this to work? Install this apk?
[One (M7) Original Android Development] Mikanoshi:
Just like any Xposed module. Flash EX 14.3, install module, activate it and reboot.
[One (M7) Original Android Development] ahmedhzaki:
14.3 ? Isn't 14.2 the latest ?
[One (M7) Original Android Development] Mikanoshi:
14.3 is a test, read last pages.
[One (M7) Original Android Development] simonjack83:
Mlg is working fabulously here,but swype down just let device to wake in lockscreen,no quick call

Inviato dal mio HTC One utilizzando Tapatalk
[One (M7) Original Android Development] Lo_RaT_PeNaT:
Same. Waiting for final version kernel

Enviado desde mi MZ601 mediante Tapatalk
[One (M7) Original Android Development] fcjan:
Weird.. swipe down works just fine here, with voice calling, swipe left and right doesn't work :silly:
[One (M7) Original Android Development] Mikanoshi:
Quick Call enabled in MLG? Check if HTC Speak is installed (HtcSpeakNGF.apk, HtcSpeakUI.apk, HtcSpeak_HFM.apk, VoiceDictation.apk).

HtcSpeakNGF.apk is 240 MB, maybe it was cleaned by ROMCleaner for example.

s2w/s2s enabled?
[One (M7) Original Android Development] flar2:
s2w must be enabled, but there's also a bug on the test kernel where the sweeps don't always register.
[One (M7) Original Android Development] simonjack83:
Yeah,I found them in priv-app! htcspeakNGF.apk is 235 MB but still no quick call

Inviato dal mio HTC One utilizzando Tapatalk
[One (M7) Original Android Development] fcjan:
disabled, I disliked that feature before, didn't know I have to enable it for it to work :good:

EDIT: s2w on, everything works flawlessly! down to quick call, right to BlinkFeed, left to home and up for last screen, every time

only "problem" is that sometimes it takes half of second to respond
[One (M7) Original Android Development] matitorres07:
Amazing work feels
[One (M7) Original Android Development] Nightf0x_007:
Cant get mlg and quick call using viperone rom
[One (M7) Original Android Development] flar2:
UPDATE!

This update provides the Wake Gestures interface that can be used by [MENTION=5386198]Mikanoshi[/MENTION]'s xposed module (http://xdaforums.com/showpost.php?p=52272806&postcount=10729).

If you select Wake Gestures in the installer, you need the xposed module or they will do nothing! The following gestures will be available: swipe up/down/left/right, doubletap, and long press logo

If you leave Wake Gestures disabled, you will have the traditional wake functions (i.e. same as before, no xposed module necessary)

Download (Sense 5.5/Sense 6 Android 4.4.2):

ElementalX-m7-14.4

Changes:

-add wake gestures interface

-update installer (thanks [MENTION=2262596]jonas2295[/MENTION] for the new splash screen)
[One (M7) Original Android Development] Simba501:
Disregard
[One (M7) Original Android Development] Skulldiver:
[MENTION=4684315]flar2[/MENTION]

Your new 14.4 Kernel doesn't work for me with the xposed module. The gestures only Wake up the device but don't do anything. Enabled it during the installation and installed the xposed module before. I have a second module enabling the status bar pull down on secured lockscreen. Don't know if that makes any problems. Do you have a suggestion?
[One (M7) Original Android Development] flar2:
Make sure /sys/android_touch/wake_gestures is set to 1

The kernel only detects the gesture and reports an input event. At that point userspace takes over. Without the xposed module, the screen doesn't even wake up.
[One (M7) Original Android Development] ghul21:
It's set to 1, same problem

Wysłane z mojego HTC One przy użyciu Tapatalka
[One (M7) Original Android Development] Lo_RaT_PeNaT:
For me, work fantastic. Very tks.

Enviado desde mi HTC One mediante Tapatalk
[One (M7) Original Android Development] kazemitsui:
I was going to post the same thing. It's set to 1 but just wakes the phone. Nothing special about the wake to quick dial or camera or anything.

Any fix?
[One (M7) Original Android Development] krazyflipj:
Everything works great. All swipes finally working. Awesome work!
[One (M7) Original Android Development] ghul21:
Don't know it's related with the option but unlock script is empty...

Wysłane z mojego HTC One przy użyciu Tapatalka
[One (M7) Original Android Development] poondog:
[MENTION=4684315]flar2[/MENTION] [MENTION=5628924]Skulldiver[/MENTION] I believe the gesture unlock stuff is removed from ViperOne due to incompatibility

Anyone on Viper i think won't work with gesture wake yet
[One (M7) Original Android Development] iKarido:
Yeah I could not find the option anywhere. Running ViperOne 6.1.0. All gestures only wake up the device to the lockscreen.
[One (M7) Original Android Development] rahulnahar:
Can anybody be kind and explain the whole process of flashing the new kernel with the gestures working? Please anyone.
[One (M7) Original Android Development] Helmut_TuT_GuT:
What you have to do to use MotionLaunchGesture!

*Updatet to latest Kernel Version and SubSense APK *

1. Download Xposed Module from HERE

2. Download SubSense.apk from http://xdaforums.com/attachment.php?attachmentid=2717575&d=1398864902

3. Download Elemental 14.5 from PAGE 1087 in this thread.

4. Install Xposed Module Apk and click on Install.... Phones needs a reboot now.

5. Enable MotionGestures in Phone ( in Viper6.1.0 the option is not in the menu .. i have done nothing mybe you have to do this on InsertCoin ? )

6. Install SubSense.apk and click it in Xposed as working module.

7. Flash Kernel .... Here you have to tap on wakegestures in the installer... reboot phone

8. Finally reboot again.

9 Now swipe from top left or right ... all works fine

My Phone: HTC ONE GSM VERSION // Viper 6.1.0 // Frimware. 4.19.11

[MENTION=4684315]flar2[/MENTION]

Is it possible to set actions for these MLG? i just get back to my lockscreen. I Would like to configure it as on the M8 with blinkfeed / last used page and so on... ??
[One (M7) Original Android Development] Osama Zabin:
all gestures are perfectly working, thanks million [MENTION=4684315]flar2[/MENTION] & [MENTION=5386198]Mikanoshi[/MENTION]
[One (M7) Original Android Development] uZzY94:
What is a "MLG" gesture?

Can you tell me where I can find this in settings? And what does MLG mean?
[One (M7) Original Android Development] HzeMaffe:
You didn't even bother to use search?
[One (M7) Original Android Development] image51:
THANKS

Everything is working perfectly for me .. all gestures work :laugh: thank you very much .. one question, will it have any negative affect on battery life
[One (M7) Original Android Development] Osama Zabin:
MLG = Motion Launch Gestures

Settings > Display,Gestures, and Buttons
[One (M7) Original Android Development] lerx:
So all of the MLG gesture does not work on sense 5.5 right?
[One (M7) Original Android Development] tiny4579:
The ones added in 14.4 no. But there are the existing wake functions that will work in sense 5.5.
[One (M7) Original Android Development] rbrandser:
Omg brilliant work flar & mikanoshi.
[One (M7) Original Android Development] Achraf4X:
I have a weird issue, the installation of the kernel reaches about 9%, the screen goes black and it bootloops, I don't know what I did wrong, I'm on latest IC, activated motion gestures from the menu (Maybe I shouldn't have)
[One (M7) Original Android Development] :
Thanks, it's working perfect :)

Except swipe down. It only wakes up the device.

Sent from my HTC ONE
[One (M7) Original Android Development] Osama Zabin:
Did you tick the " Quick Call" option?
[One (M7) Original Android Development] Mikanoshi:
The fix was mentioned many times, reflash ROM or http://xdaforums.com/showthread.php?p=47806991
[One (M7) Original Android Development] :
I don't have the Motion Launch Gestures settings...
[One (M7) Original Android Development] Skulldiver:
Viper rom?
[One (M7) Original Android Development] :
No, InsertCoin 2.4.0
[One (M7) Original Android Development] albi74:
Install these http://d-h.st/Hiv
[One (M7) Original Android Development] :
Yeah, thanks.

I also found it at the same time :)
[One (M7) Original Android Development] elsworth1983:
Delete.... Wrong thread, face palm
[One (M7) Original Android Development] Achraf4X:
Thank you, wasn't following that thread
[One (M7) Original Android Development] ilamaan:
So does flashing latest kernel allow MLG to work without xposed mod if its there in the settings?
[One (M7) Original Android Development] mrwilly:
No, xposed module is needed

---------- Post added at 07:23 AM ---------- Previous post was at 06:58 AM ----------

Excellent work, all MLG gestures are working with no problems
[One (M7) Original Android Development] Mikanoshi:
Viper has EasyAccessService.apk removed, so no options for MLG are there. I just rewrote the module to function completely outside Easy Access. Every action for MLG is coded in HTCLockScreen.apk anyway, so I'm calling them directly. Gestures will always be active with this version, regardless of MLG settings or their presence:

View attachment SubSense.apk

BTW can someone tell me wth is "widget panel" for left swipe? It just goes to 2nd homescreen for me...
[One (M7) Original Android Development] :
I think because 2nd homescreen is widget panel. It's the first homescreen where you can add widgets!
[One (M7) Original Android Development] dena994:
What version of the kernel got to flash to have the new motion gestures?

Inviato dal mio One utilizzando Tapatalk
[One (M7) Original Android Development] janarp:
yes... just dont choose it from aroma installer when u install this kernel...

cheers
[One (M7) Original Android Development] asciicode:
.11 down
[One (M7) Original Android Development] inffy:
Already said many many many times
[One (M7) Original Android Development] Orcworm:
If you still need it:

http://orcworm.co.uk/file/ElementalX-m7-0.11.zip
[One (M7) Original Android Development] Hopie:
hm.. test it.. i don´t know
[One (M7) Original Android Development] jaythenut:
Beta 11 download link is working know, is for me :D
[One (M7) Original Android Development] jfive74:
Yes. I choose 750mv. Why?
[One (M7) Original Android Development] flar2:
On the one XL undervolting caused sound crackling. Not sure if it's the same on this phone, but try stock voltage and see if it helps.
[One (M7) Original Android Development] MaximN97:
[MENTION=4684315]flar2[/MENTION] a big thx for your Kernel. Works perfectly with maximus. :thumbup::thumbup::thumbup:

Sent from my Maximus One Beast in Stealth Black
[One (M7) Original Android Development] jfive74:
Ok, will try. If so, is there a fix? Thanks.
[One (M7) Original Android Development] inffy:
Will try
[One (M7) Original Android Development] c5satellite2:
Just because your phone will run at a given voltage doesn't mean it will run well when you have a lot of things going on. If you are undervolted and weird unexplainable things are happening when you are actually asking the phone to work harder, always try increasing voltage to stock and see if it goes away before asking how to fix.
[One (M7) Original Android Development] ant78:
downloads not working
[One (M7) Original Android Development] py_martinez:
Help !

After flashed many times (to try some settings) elemental x, my apps cpu spy and betterbatterystats don't display my cpu stats anymore..

Sweeptowake have also some bugs now.

Any idea ? Fastboot erase cache ?

Obligation to connect with my pc to repair that?

Envoyé depuis mon HTC One avec Tapatalk
[One (M7) Original Android Development] Orcworm:
If you mean showing how long the CPU has been on each clock speed I've also got the same occurring as of my latest flash, pretty weird.
[One (M7) Original Android Development] py_martinez:
No what I mean is that all was good till today.

I have made a lot of tries and tests with elemental x. So I have flashed it maybe 15 times this week.

But today a bug appeared : no more info of my cpu stats (cpu spy , betterbatterystats, anfo, ) ....

I have restarted my device, flashed again the kernel, made an erase cache..

No changes.:confused:

I think I have to do some clean but how?

Envoyé depuis mon HTC One avec Tapatalk
[One (M7) Original Android Development] Galactus:
Same thing happened to me, I ignored it but thought it was weird that BetterBatteryStats, CPU Spy and Gsam showed my phone in deep sleep for 18 hours lol

---------- Post added at 02:08 AM ---------- Previous post was at 02:05 AM ----------

Check one page back :rolleyes:
[One (M7) Original Android Development] :
14.4
[One (M7) Original Android Development] dena994:
Thank you, have I to enable them in settings or in trickster mod?

Inviato dal mio One utilizzando Tapatalk
[One (M7) Original Android Development] Lo_RaT_PeNaT:
[MENTION=5386198]Mikanoshi[/MENTION], out of curiosity, would be assigned the gestures that come by default in MLG?, such as with gestures in sense mods, its application sense toolbox?, ie, one could for example open the camera with sliding down instead of the quick call?or example, you can delete some gestures that are not entirely useful?
[One (M7) Original Android Development] Achraf4X:
You need to do everything stated in that post HERE
[One (M7) Original Android Development] Mikanoshi:
Sense Toolbox, any action for any gesture.
[One (M7) Original Android Development] trabadura:
MLG

Does a lot of battery life?
[One (M7) Original Android Development] flar2:
No, it's the same as regular doubletap2wake and sweep2wake. On this device these do not drain battery.
[One (M7) Original Android Development] Mikanoshi:
Negligible
[One (M7) Original Android Development] Achraf4X:
Everything working, except HTC logo to camera, I couldn't trigger the camera this way, I unticked HTC logo2menu in aroma, is it the reason why it's not working?
[One (M7) Original Android Development] Mikanoshi:
yep) only it's Logo2Wake
[One (M7) Original Android Development] Lo_RaT_PeNaT:
[MENTION=4684315]flar2[/MENTION], maybe it's something on my device, but I've noticed that my device turns very easily being in the pocket of my shirt, I tried to install the kernel again, it has turn the option pocket detection and continuous equal, perhaps one could set this option in a more demanding way to prevent these unwanted lit?

---------- Post added at 04:14 PM ---------- Previous post was at 04:12 PM ----------

has meant that I might be able to choose for each gesture an option? or would not be possible to be a matter of the module and the kernel at a time?
[One (M7) Original Android Development] flar2:
Make sure pocket detection is enabled and working. Hold your finger over the proximity sensor and do some gestures, the screen should not turn on.
[One (M7) Original Android Development] Undermyoath:
Have to say, most gestures work really well. Only the swipe down to camera isn't working, maybe because I'm using viperRom 6.10. Logo2wake and logo2menu are off though, for the rest, very good work guys, and flar2 thank you for the most stable kernel on the m7 to date!
[One (M7) Original Android Development] mrwilly:
Swipe down opens Quick Call (HTCspeak), not Camera.

For Camera, you need Logo2Wake enabled, then pressing Logo2Wake will open Camera
[One (M7) Original Android Development] Mikanoshi:
kernel just notifies about gestures and java code listens for such notifications, so it is possible to do anything you can imagine.
[One (M7) Original Android Development] dupel:
I'm on Viper, installed this version, but still no options to configure anywhere in settings (
[One (M7) Original Android Development] :
Read the post of Mikanoshi again...

This .apk will not add any settings to your ROM, it activates all features without these settings!
[One (M7) Original Android Development] skedone:
Dose 14.4 work on the m8 ge port ?
[One (M7) Original Android Development] alexdiaz:
It works fine for me too on ICS 2.4.0.

As a suggestion, I like double tap to wake only to the lower half of the screen not the whole screen.

Thanks for your work guys!
[One (M7) Original Android Development] dupel:
It should be configurable - there is even screenshot a few posts back.

And it doesn't allow me to configure it. All gestures just unlock the device.
[One (M7) Original Android Development] Osama Zabin:
Is there any easy way to disable Swype right/left and keep Swype up

/down enabled?

Or it's just either all or nothing?
[One (M7) Original Android Development] :
Yes, an Viper does not have these settings, so Mikanoshi made an .apk where everything is enabled!
[One (M7) Original Android Development] dupel:
Hmm, than nothing changed for me - it works as on previous version - just unlocks the screen for all gestures, and double tap.
[One (M7) Original Android Development] cm2003:
How does MLG influence the battery drain? Will it be pretty much the same or do you see any changes?

Gesendet von meinem HTC One mit Tapatalk
[One (M7) Original Android Development] Undermyoath:
It will work more fluent.

The experience will be like the kernel functions like s2w or dt2w, but the accessibility in my opinion is much cleaner and better!
[One (M7) Original Android Development] Jonny:
If you had bothered to read even 1 page back you would find the answer... :rolleyes:

http://xdaforums.com/showpost.php?p=52313027&postcount=10791

and

http://xdaforums.com/showpost.php?p=52313057&postcount=10792

Next time, search before posting :good: