[APP] Button Mapper: Remap motion sense (no root) - Google Pixel 4 Themes, Apps, and Mods

Button Mapper 1.40 introduces support for Motion Sense on the new Pixel 4/4XL.
The way this works is you swipe your hand in the air over the phone to perform an action. You can swipe in any direction, but swiping left or right seems to work best. I originally planned to remap each direction separately, but found this was too unreliable to be practical for most.
Motion Sense must be enabled in System Settings, and the "Reach to check phone" option must be enabled, or this won't work.
The motion gestures will work with the screen off, on the lockscreen and on the homescreen. The sensor is not active within other apps.
Setup
For non rooted devices, requires one-time adb setup to allow Button Mapper to read logcat output.
Rooted devices can work right away.
Options
Turn on screen: For rooted users, there is an option to turn the screen on before performing an action.
Play sound on action: Makes a sound whenever a swipe action is performed. This is helpful to indicate that the swipe was detected, especially when the screen is off.
Disable while music is playing: This will stop Button Mapper from performing the assigned action while music is playing. This allows you to continue using the built-in previous and next track gestures while listening to music. When not listening to music, Button Mapper will resume remapping.
Tips
A good way to test this out is to assign the "Toggle flashlight" action. It's a quick visual to help you get a feel for how the motion sensing works.
Download
XDA Labs (always latest version)
https://labs.xda-developers.com/store/app/flar2.homebutton
Google Play
https://play.google.com/store/apps/details?id=flar2.homebutton
Note: Many users will not yet find the latest Button Mapper 1.40 on the Google Play Store. Download from XDA Labs if you can't wait.

Related

Car Installs - Triggering a Tasker Task from Keyboard

Hi,
I am having difficulty getting something I would think easy to work on my Nexus for my car install.
I was wondering how people are getting tasker tasks to be triggered off keyboard hotkeys when using either their Joycon or a standard external keyboard.
It seems from research the way to do this used to be quick launch shortcuts (assigning search key + a letter) to an app or shortcut but it seems these do not work for me in android 4.4?
External keyboard helper lets you launch applications from hotkeys, but seems to give no way of launching tasker tasks.
This is really doing my head in! From youtube it looks like others have no issues doing this. Any help would be greatly appreciated!
Well, the only thing I can think of right now is to use a Tasker Scene with a focused textbox to detect the keys. You will have to run this scene as a dialog, and deal with all the complications with that... (touch disabled outside of dialog, etc) but here's another idea.
You could use a mobile bluetooth keyboard (or any keyboard that has volume/brightness keys) and have a Tasker profile pick up a change in the ringer volume variable, this would give you 2 or 3 hotkeys (vol up, down, or mute). If you don't have a keyboard like that you could edit the Android keymappings under /system/usr/keylayout/General.kl to incorporate volume changes under some key.
Sent from my SCH-I605 using xda app-developers app
Good idea with detecting the variable changes! I'm using an Arduino Micro which emulates a keyboard so I will have no problem emulating them via buttons & changing the keyboard layout kl if nessesary. Thanks
I am currently working on the same topic: Here is my workaround for trigger a task with an external bluetooth keyboard.
create a task in Tasker
create an app of this task with Tasker App Factory
remap a key of the keyboard to the new app with External Keyboard Helper
Finish
Maybe this is helpful
Thomas
What are you trying to accomplish?
Lokifish Marz said:
What are you trying to accomplish?
Click to expand...
Click to collapse
1. With a bluetooth remote (Satechi BT MediaRemote) i want to switch between the homescreen by pushing a key. (launcher nova and tasker secure settings are necessary)
2. a tasker scenes (dialog) with different options should open by pushing another key. Navigation in the scene should do also with the Bluetooth remote (not yet finish).
The goal is an intuitive handling of the tablet ui in the car with less touch-input on the screen. Something like Audi MMI or BMW idrive.
In my opinion to find icon on the homescreen while driving is difficult.
Here is my current set up.
Nexus 7 (In dash)
Center console mounted volume dial with push to mute (Tablet>dial>amp)
(Not shown in the screencap is that the media widget is also in the Navbar and accessed via a softkey in the navbar)
The console dial was initially a USB 5 button mouse with key remapping but required the amp gain be cranked up which caused issues.
Now for full control you need the following;
(Some of these things can be eliminated with voice controls)
Media Control (Previous, Play/Pause, Next, Playlist, etc.)
Directional controls (Up, Down, Left, Right)
Action Controls (Select, Home, Back, Recent, Menu)
Phone Control (Answer, Hangup, Dialpad)
SMS Control (Full KB or voice to text using a noise canceling mic)
If you skip voice control and you don't count the dialpad or KB, you need 15 buttons or adaptive input based on what app is running but still need at least 5-6 buttons. I am not sure how involved implementation of adaptive input would be as I gave up after days of trying to get it just right.
With the Satechi BT MediaRemote, you can cover most of this by key remapping but have to remember what keys are what. The advantage of proper key remapping is that it removes the need for additional apps to get it to work.
Seeing that I'm not sure how complete of a setup you are trying to get, it's hard to offer anymore advice.

[Q] how to re-route Recent Apps hardkey to become the 'Search' hardkey

Hey all,
I'm coming from 2 previous Androids that had the 'Search' hardkey on the phone. I really liked it, esp when used in context in certain apps like Spotify (to filter in Spotify, seems like I have to scroll up 700 songs in my Playlist until the Filter area shows up instead of just pressing the Search key like how i did be4).
Is there any way that I can get rid of the 'Recent Apps' hardkey, and reroute it to 'Search'/Filter.
I see Turbo isn't rooted yet, so guessing I'd need a non-root app solution?
I think I tried one app 'All in One Gestures', and tried to re-route single or long tap on the 'Recent Apps' key to instead 'Search', but that didn't work way I expected it to (it only goes to the Google Now Search webpage, and not the context of pressing Search within an app [and not leaving the app]).
Any ideas?,
Arian
Thanks in advance
Almost positive this cant be done without root.
Darn, I'd also settle for an app that does gestures... so a gesture that triggers what the non-existent Search hardkey would have done. Not sure if thats possible without root.
I miss the search button too
I used to have the Evo 4G and loved the search button too. I was disappointed when (I believe) ICS phased it out and switched to the three button approach. While it won't search within apps, you can launch Google Now from anywhere by swiping up from the home button. In my experience, it's pretty finicky with the Turbo's capacitive buttons though.
Swipe Home Button
There's an app Called Swipe Home Button. It lets you do gestures to activate certain features. OP should look into it, it may be what you're looking for.
If you long press the home button, you'll get the Google search swiping up... Or what I use is nova launcher and a double tap gesture to search.
Hope this helps.

[APP] Button Light and Touch

Button Light and Touch
An very small and simple utility to adjust the duration of the capactive button lights.
You can also remove this app from the app drawer once you install it.
Not the most original app, but it's 100% free and does one really important thing if you use my other app, Button Mapper. Assigning a long press action to the Recent Apps or Back button with Button Mapper will cause the capacitive button lights to stay off all the time. If you install this app, the light will work again.
Due to a convoluted development thing concerning target APIs of Android apps, I was not able to add this functionality directly to Button Mapper. I had to put it in a separate app.
So think of this as an add-on for Button Mapper. Or just use it to change the duration of the button lights and toggle button vibration.
Download on Google Play:
https://play.google.com/store/apps/details?id=flar2.samsungbuttons
.

Is it possible to customize fingerprint scanner gestures?

Hi,
I have a short question - is it possible to customize fingerprint scanner gestures in the P10? Is there a mod or something to do that? I can't stand current selection, single tap should always be 'home'. My perfect set of gestures would look like this:
single tap - 'home'
swipe left - 'back'
swipe right (or up) - 'multitasking/recent apps'
swipe down - pull down the shortcut panel
tap and hold for 0,5 sec - screen off
double tap - toggle between recently used apps (P8 had this! Even bare bones Android has such function)
Give Tasker a try. I don't know, if it's working and if it won't make problems with the EMUI settings, but you can give it a try.
I have to say, that a swipe for everytime I want to go back would be very annoying. I was 9 years on iPhone before I got my P10 and had to get use to it, but know it's like an automatism.
Not going 'home' after tapping the "home" button is much more annoying. Besides the 'back' button is usually on the left side so swiping left is the closest thing.
I asked on the Tasker forums and one of the users said that it requires TouchTask plugin (for Tasker). We'll see.
Were you able to customize the gestures? Did tasker work? I don't use Google app (disabled it) and think there should be a remap feature... Should not be that hard to do...

Question Flashlight on long press power button (or lock screen shortcuts) - Oxygen 13

Hi guys,
First of all, I do not use Gestures and its not activated. So please don't tell me you can do a V on lockscreen, I know already.
I used to have crDroid on my previous OP3T device. You could activate the flashlight on long press of the power button when the screen was off.
Is there any way of adding such a feature to OxygenOS? The device is rooted if it can help. Maybe an available package on F-Droid would allow such customization?
Alternatively, maybe a lockscreen shortcut button on bottom left along with the camera button?
Any way to quickly activate the flashlight with minimal handling of the phone/screen.
Thx
i am looking for built in feature too, but you can use this for now :
Key Mapper - Apps on Google Play
Unleash your keys! Open source!
play.google.com
tested it: seems accessibility is off for this app for security reasons.

Categories

Resources