Page 1 of 1

Using hardware key as TRIGGER

Posted: 21 Jul 2015 18:06
by gjorgidxc
Hi, I'm new to this app and all automation apps, so I have a noob question for you guys. I'll try and explain my situation.

I have a Xperia S with dedicated camera button, but because I'm using a costume ROM, the camera button is not assigned for anything, so I found a Xposed Module, that remaps keys, and I have done exactly that. I remapped the Camera button to open the camera app when the device is locked, and I want to use Automagic to turn on the screen and unlock the device so that I can use the camera. I've searched the interweb for a solution and I cannot find any. I think I have to use Commands but I'm not familiar with that kind of thing. (Guess I'm asking for a little tutorial on how to do this)

Any help would be greatly appreciated.
Thanks :)

Re: Using hardware key as TRIGGER

Posted: 22 Jul 2015 18:19
by Martin
Hi,

Does the Xposed module allow to send an intent when a button is pressed?
If not, you might be able to handle the key press with a trigger Command Output and command getevent. It will require some experimentation to find the device but should work on a rooted device.
This post contains some useful information: BUTTON Pressed-Trigger
You can also search the forum for keyword getevent since this was discussed for some devices in the past.

Regards,
Martin