A Moto phone with GrapheneOS and the "chop / chop" gesture[0] to turn on the flashlight would be a dream.
I'm, shamefully, an adherent to Moto hardware now because of that silly gesture. I use it multiple times a day. I had a friend with a late model Pixel try to replicate the functionality and he couldn't come up with a way to do it. It's silly, but it's too handy.
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.
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.
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.
It's funny, but double tapping the power button to switch on the light is one of the things I miss the most when using GrapheneOS.
Most android phones I've had have had this feature, either double press or long press to get light.
GrapheneOS means you have to turn on the screen, pull down the quick access, and turn on that way. It's quick enough, but it means squinting at a bright screen in the middle of the night.
Totally agreed. That one silly gesture is the one thing still keeping me with Motorola, it really has become second nature. It's almost bizarre how I immediately do it as soon as I'm in any kind of darkness. I had to spend a couple of months with a phone from another brand and it was actually really annoying not having that!
That said, the software on my current phone has become bad enough (lack of updates only a couple of years after release, auto installing of bloatware every so often) that I had vowed that my next phone would not be a Motorola, probably I was going for a Samsung (Pixels are too expensive where I live).
But this announcement might just be the thing that keeps me on the Moto train. I'm really hoping this works out.
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.)
I'm, shamefully, an adherent to Moto hardware now because of that silly gesture. I use it multiple times a day. I had a friend with a late model Pixel try to replicate the functionality and he couldn't come up with a way to do it. It's silly, but it's too handy.
[0] https://en-us.support.motorola.com/app/answers/detail/a_id/1...