LightBlog

mardi 12 novembre 2019

Partially remap the Pixel 4’s Motion Sense gestures without root

The Google Pixel 4 and Pixel 4 XL are Google’s newest flagships, featuring some worthy upgrades and a few cutting-edge technologies like Soli. Soli is a radar-based gesture recognition technology, which works on Pixel 4 through the sensor located on the top bezels of the device. Soli can sense motion around the device, and Google has leveraged this for the Motion Sense feature, allowing users to control music, silence alerts, or check their phone by waving their hand over the Pixel. If you are looking to do anything more than this, you need root, which is not something we recommend to each and every user. However, you can still remap the Pixel 4’s Motion Sense gestures without root, albeit in a limited fashion, following either of the methods mentioned below.

Method 1: Button Mapper

Button Mapper by XDA Recognized Developer flar2 introduces support for Motion Sense on the new Pixel 4 and Pixel 4 XL through its newest v1.40 update. This app filters the logcat to detect when a Motion Sense event has happened, then allows you to set actions for those events. Although one can swipe in any direction to perform the action, the developer notes that swiping left or right has the highest rate of success. Note that you need to enable Motion Sense in the System Settings, and the “Reach to check phone” option also must be enabled. You also need to undertake a one-time ADB setup to allow the app to read logcat output. Also, keep in mind that you need the premium version of the app to remap the gestures.

Button Mapper — XDA Discussion Thread

Motion Sense through Button Mapper will work with the screen off, on the lockscreen and on the homescreen; the sensor is not active within other apps.

Button Mapper: Remap your keys (Free+, Google Play) →


Method 2: Tasker

The other method involves Tasker, of course. While Tasker is also a paid app, it is likely that you already have it purchased or can put it to further use because of its unmatched versatility.

To remap the gestures without root using Tasker, you need the latest version of Tasker. Then, follow the steps below in order:

  1. In Tasker, create a new Profile and choose the Event context.
  2. Select “Logcat Entry” as the Event.
  3. In the “Component” field, enter “Oslo/FlickGestureSensor” without quotes to remap the flick right/left/up/down gestures.
  4. Then in the “Filter” field, enter “SOUTH“, “NORTH“, “EAST“, or “WEST“, without quotes, depending on the gesture direction you want to listen for. Though, note that accuracy is best for both the sideways flicks.
  5. Finally, set the remap action you wish to undertake, and you are good to go.

Tasker ($3.49, Google Play) →


There are limitations to what you can achieve with both of these non-root methods for remapping Motion Sense. If you want true and full remapping capabilities for Motion Sense gestures, enabling you to undertake whatever action you want, the best way is to root your phone and install the OsloBridger Magisk module.

The post Partially remap the Pixel 4’s Motion Sense gestures without root appeared first on xda-developers.



from xda-developers https://ift.tt/3700H3U
via IFTTT

Aucun commentaire:

Enregistrer un commentaire