Record true macros and replay them on demand
Developer TODO (don't remove)
This may sounds backwards because I'm not looking to use the side button as a trigger but to simulate pressing the side button together with the volume up button to activate the accessibility magnifier. The only other way is what I'm doing now, which is simulating a two-finger swipe from the bottom, but that disables the gesture to use for split windows. If there was some way to open the magnifier (either by simulating those key presses or by activating it through the Send Intents action, that would free up the two-finger gesture for something else.
Any ideas?
p.s. I'm not talking about using the camera as a magnifier, I'm talking about where a portion of the screen gets magnified.
If you could somehow figure out how to do this and then package it into an action, you would make visually impaired and older folks really happy.
We're having a big discussion right now about the possibility of recording general macros and then replaying them. I'll reframe this issue as that. That would let you do this
User flow would be
Press start recording button on accessibility overlay Go in any app, do anything, press keys, touch the screen, whatever Press stop recording button on accessibility overlay Save all that information into an action You can use that action in a key map and it would replay exactly what you did
Note: seems not to be possible with screen interactions (?) even with Shizuku but may be possible with key events with accessibility service
I'm not clear on how that would help here, though, because I need to send a simulated key press or alternately activate whatever happens when you do that on the phone to start the magnifier. I assume you have tools to see what service is being involved at that time I presume? Can you try it and see what it says?
With this system, you would just press the keys you want to simulate, and Key Mapper would listen and then simulate it for you
That sounds great. For those us who need something like this sooner than you implement the macros, could you listen now and see what it comes up with?
This tool you're talking about isn't really a thing. Besides, I don't have a Samsung device and I think your magnifier is a Samsung app
It's not an app and every phone has it. If you go into accessibility settings it's called magnification, not magnifier and you have several options to choose from to activate it. One is the double finger swipe but another is pressing the side and volume up buttons at the same time.
Everything in Android is 'an app' in one way or another
Magnification is an accessibility feature in Android but the skin vendor can tweak it however they want. In Samsung's case they made one of the shortcuts involve the side key, whereas on my Google Pixel I can press both volume buttons instead.
It's not a universal thing.
Have you tried using intents to do this?
You can do the volume buttons only too. But that requires a three second hold whereas the side and up volume is immediate.
I'm not sure what intents to send if you have some ideas that would be great.
I only see these services and the magnifier here is not the same thing, that's the camera app for enlarging images using the camera, not zooming the screen.