upvote
One of the important reasons that it works so well is because it uses the Hexagon DSP in the Snapdragon processors to catch the events. That's why it's so hard to replicate. It's possible to do it entirely in software, but it chews through battery if you do it that way. I can't find it now, but there was an article a few years ago that explained how the feature worked.

And there's no way to program the DSP without being the creator of the device because Qualcomm requires DSP programs to be signed, as far as I'm aware, and the key has to be trusted by the device vendor.

reply
Wild. Thanks for the keywords to search-engine this with. I found "Reverse engineering the Motorola Sensorhub: Part 1"[0]. To this point I hadn't thought about how they might have implemented the feature. That article sheds some light on it.

[0] https://ristovski.github.io/posts/moto-sensorhub/

reply
That's the one!
reply
reply
That's the right chip. The other comment shows off the article. I forgot that it was called the "sensor hub", that's why I couldn't find the post showing how it works.
reply
The chop chop gesture is amazing. I love my G3 unfortunately it stopped recieving updates :( some apps are starting to get funky in weird ways
reply
Neat. I wired the flashlight to a long press of the Bixby button on my S10+.
reply
I probably would have settled for a button, but the gesture is so nice. (There's also a "twist" gesture to activate the camera. It's also nice. I haven't ever gotten false positives with the gestures and they have become second nature. I never used any gestures before having a Moto phone and always thought accelerometer-based input was gimmicky and unreliable based on my experience with prior phones.)
reply