Samsung Galaxy launches main app instead of 'Key Mapper: side key' for remap of double press
Developer TODO (don't remove)
- [ ] update documentation
Describe the bug Not sure exactly how this is supposed to work, but every way I can think of still doesn't work.
True, there is an option to not set the app as an assistant but still not working. Also giving the option for a short press of the side button is a non starter because the system reserves that for turning off the screen.
I set the built in option to the secondary app (which it surprisingly found listed) but that didn't help.
If you have specific instructions on this please advise.
Please send screenshots of Key Mapper home screen and your side key settings in your phone's settings app.
What happens when you double press the side key with this set up? Does anything happen at all? Please also check that the key map is enabled and the accessibility service is enabled.
Please also remove 'double press' from the trigger options. I don't think that's necessary because Samsung is dealing with that aspect, not Key Mapper. Short press should be sufficient.
Double press does nothing.
Key Map and accessibility is enabled.
Single press is hard wired to turn off the screen. For Samsung S series a single press is never an option.
I mean in the Key mapper Trigger settings. You have turned on 'double press' inside Key Mapper, but I don't think its necessary.
It now looks like this but again, double press does nothing and single press turns off the screen.
Okay, what options are available in the list of apps when you're setting up the double press action?
Is there only listed 'Key Mapper' or is there also 'Key Mapper: side key'?
Actually there is only the key mapper side key in the list, but when selected it shows the key mapper name in the settings.
Actually there is only the key mapper side key in the list, but when selected it shows the key mapper name in the settings.
This is a bit suspicious, but I'm surprised nothing happens at all when you trigger the app. If you choose any other app at all in that menu does the app open when you double press the power button?
Yes, works as expected and launches the selected app. When I double press outside the Key Mapper app, it merely launches the app. That is where your problem is. The side app is chosen from the list but it's using the main app in the selection.
Could you please follow these steps:
- Make sure Key Mapper: side key is the selected app for double press.
- Go to Key Mapper Settings
- Enable extra logging and tap 'View and share log'
- Tap the 3 dot menu and choose clear
- Leave the app and try double pressing the power button
- Send a screenshot of the log
Your screenshot looks cut off but I assume there is not more than that?
I'm at a bit of a loss with this. I'll discuss this with the developer later, probably today. Bit strange that the standard app is not available in that list, and makes me suspicious of what app is even being launched.
There was another key press to make the screenshot. Here's without that by taking the screenshot manually.
Another reason why you know it's not working is that the way it should be is that launching the secondary app should actually run the assigned key map when pressing the icon from the apps screen actually does nothing. Doing the same with the Tasker secondary app actually performs the linked task, which should be happening here as well.
I also experience that actually, opening the side key app from the launcher does nothing.
This could be a bug or it could be intended as when I trigger the app as a digital assistant it works, but opening the shortcut does not.
In addition to the fact that Tasker also doesn't recognize it as an app.
I think I know why this is happening. I'm a moron sorry 😅 Gonna close this as fixed.
That's great news but like the the other fixes it would be nice to get a updated revision sooner than later.
Would also capitalize Side Key in app name.
Would also capitalize Side Key in app name.
done
Version 2.8.3 from Play Store:
Good news and bad news.
Good news is that for the first time, pressing the second app from the home screen launches the assigned key map.
Bad news is that although the second app is recognized in the app list to be selected for the side key, as before the name reflected once chosen is just the main app and so the actual side button action still isn't working because all it does it launch the main app.
So you're half way there!
To be clear, double pressing the side button does now work for the first time (!) it's just that doing so simply launches the app rather than the key map associated to it.
Opening the second app from the home screen now also works (!) so the missing link is that Settings does not quite recognize the second app. It does so to the extent that it comes up as a selection in the list, but not enough to actually launch it.
Hmm, strange. Reopened so we will investigate at some point
Also not sure why the side key trigger only gives single and double press options, and not long press. Moreover for Samsung, the single press is hard coded to turn off the screen and cannot be remapped ever. If this is not the behavior of other skins then perhaps you can at least filter out the single press if the phone is Samsung to avoid assigning it in error.
This is a language problem that I will probably make an issue for.
The thing is it's not about how many times you 'press' the button, it's how many times your app of choice (OneUI in this case) tells Key Mapper to do something.
When you double press the side key, OneUI sends 1 request to Key Mapper. So as far as Key Mapper is concerned that is a 'short press'.
For a 'double press', OneUI would need to send 2 requests to Key Mapper, which would require 4 presses of the side key.
The side key / assistant trigger is the only trigger that behaves like this because it is at the mercy of what ever app interprets your key presses before talking to Key Mapper.
Can you see how 'long press' makes no sense in this context?
Yet definitely needs clarification because the triggers consistently imply how they should be pressed within Key Mapper, so in its plain meaning, the user would rightly expect it to mean pressing the physical button once or twice.
Someone else also reported this problem via email today. This should have higher priority. I'll test again on my Samsung Galaxy Tab S5e on Android 11.
My Android 11 Samsung doesn't have the issue. @githubsterer can you test this debug apk. You do not need to uninstall your existing Key Mapper. Set the Key Mapper Debug app as the long and double press side key app in Samsung Settings. Then share the log by going to the bottom of the Key Mapper settings page -> "View and share log". I'll need the whole history so click the save button. I need all the text in red.
https://drive.google.com/file/d/1cGJxWRpJUojoZSN0felMrYyie0M8EEAw/view?usp=sharing