Git Product home page Git Product logo

packages_apps_elmyraservice's Introduction

Active Edge Service

This is an open-source implementation of the Pixel Active Edge gesture, written from scratch for portability and customizability.

Active Edge, codename Elmyra, is a gesture powered by side grip sensors on the Pixel 2/XL, 3/XL, 3a/XL, and 4/XL that is used to activate the Google Assistant on stock. The gesture is handled by a proprietary nanoapp running under CHRE (ContextHub Runtime Environment) on the sensor DSP.

This app is a reverse-engineered Android client that runs as a standalone service and talks to the CHRE nanoapp for gesture functionality. No decompiled code has been used.

Features

  • Seamless integration in Settings → System → Gestures → Active Edge with no extra changes
  • Integration with Settings search
  • Many actions to perform on gesture trigger
    • Take screenshot
    • Open assistant
    • Open camera
    • Toggle flashlight
    • Mute calls & notifications (replicates default power + volume-up "prevent ringing" gesture)
    • Toggle power menu
    • Toggle screen
  • 10 sensitivity levels (more granular than stock)
  • Setting to control whether gesture is enabled when the screen is off
  • Contextually-appropriate haptic feedback with modern effects
    • Heavy click for squeeze
    • Click for release
    • Reject for unavailable action (e.g. if flashlight can't turn on because camera is in use)

Integration

Sync this repo to packages/apps/ElmyraService.

Add the following to your device tree only for devices with this feature:

# Active Edge
PRODUCT_PACKAGES += \
    ElmyraService

While this service is designed to be as portable and self-contained as possible, Android does not provide the necessary APIs to implement all gesture actions out-of-the-box. This means that some commits must be added to frameworks/base to expose the APIs for full functionality:

Default settings can be changed by overlaying res/values/config.xml.

License

All code in this repository is licensed under the Apache 2.0 License.

packages_apps_elmyraservice's People

Contributors

kdrag0n avatar mikeng avatar spezi77 avatar chirayudesai avatar exactexampl avatar

Watchers

Enes Sastim avatar

Forkers

exactexampl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.