Git Product home page Git Product logo

magisk_module_motionsense_mod's Introduction

Pixel 4/XL MotionSense Mod with OsloBridger App

This is the Magisk Module for the Pixel 4/4XL MotionSense mod and OsloBridger App

OsloBridger App

It is possible to send a service intent from Tasker with an action of "com.jcarletto.oslobridger.TOGGLE_SERVICE" which will activate the service without needing to load up the UI.

V1.1.0

I've changed the OsloBridger App to now allow for selecting a task from Tasker. Make sure "Allow External Access" is checked in the Tasker Misc Preferences. If No task is picked it will still send the normal Broadcast intents for active gestures.

Sensor Settings:

Trigger Distance:

  • Value between 1 and 10 that represents how far from the sensor a gesture triggers an intent
  • Recommended Value : 3-5

Gesture Sensitivity:

  • The threshold of how closely the gesture should resemble a "proper" gesture before triggering
  • Recommended Value : 1

Gesture Granularity:

  • How often the the bridge checks the sensor for a response,
  • Recommended Value: 2

Gesture Types:

Reach : A Single-Fire Gesture

  • Sends Intent - com.jcarletto.oslobridger.REACH_GESTURE
  • Intent Sends Extras : distance, azimuth, elevation

Presence : Like Reach, but ongoing

  • Sends Intent - com.jcarletto.oslobridger.PRESENCE_GESTURE
  • Expect this one to trigger constantly, try to avoid using Flashes as they'll clog up quickly
  • Intent Sends Extras : distance, confidence, angle
  • Confidence extra is not reliable in Current Soli API
  • Angle extra is not reliable in Current Soli API

Flick : Direction Sensitive Motion Gesture

  • Sends Intent - com.jcarletto.oslobridger.FLICK_GESTURE
  • Intent Sends Extras : direction
  • Direction is always relative to the device orientation

Swipe : Direction Agnostic Motion Gesture

  • Sends Intent - com.jcarletto.oslobridger.SWIPE_GESTURE
  • Intent Sends Extras : direction, intensity
  • Direction extra is not reliable in Current Soli API
  • The trigger is probably all we'll get reliably from the API here
  • intensity extra only sends 0.0f
Return Val Flick/Swipe Directions
1 E
3 N
5 W
7 S
0 Unknown/Error

Note about Gestures:

I recommend only having one of (Reach or Presence) enabled and one of(Swipe or Flick) enabled as one gestures output will almost certainly overpower the other.

Note on launching the service

I recommend launching the service from within Tasker based on criteria like the Running application is your (previously unsupported) media app, Android Auto or just when your screen is off. The intent is a toggle, so simply execute the same task to stop the service.

Tasks to launch the service from Tasker

Toggle OsloBridger Service
A1: Send Intent [ 
  Action:com.jcarletto.oslobridger.TOGGLE_SERVICE 
  Cat:Default 
  Mime Type: 
  Data: 
  Extra: 
  Extra: 
  Extra: 
  Package: 
  Class: 
  Target:Service 
 ] 

Start OsloBridger Service
A1: Send Intent [ 
  Action:com.jcarletto.oslobridger.START_SERVICE 
  Cat:Default 
  Mime Type: 
  Data: 
  Extra: 
  Extra: 
  Extra: 
  Package: 
  Class: 
  Target:Service 
 ] 
 
Stop OsloBridger Service
A1: Send Intent [ 
  Action:com.jcarletto.oslobridger.STOP_SERVICE 
  Cat:Default 
  Mime Type: 
  Data: 
  Extra: 
  Extra: 
  Extra: 
  Package: 
  Class: 
  Target:Service 
 ] 

magisk_module_motionsense_mod's People

Contributors

jcarletto-pinc avatar jcarletto27 avatar

Watchers

 avatar

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.