0

I want to remap the long press action of the menu button to open the dialog box that appears when the power button is long pressed. I know the keybinds are stored mainly in /system/usr/keylayout/Generic.kl but I can't find where the long press settings are stored.

The settings menu allows me to remap the action of long pressing, but it doesn't offer an option to invoke the dialog box of power menu. As far as I am concerned, the Android API doesn't provide any option to access the power button so I need to change the action inside proper system files. Also, the API doesn't allow me to map the screenshot taking what is the main purpose of mine. So I want either to map the dialog box of power menu or screenshot taking to the long press action of menu button.

I own Samsung Galaxy S3 with Cyanogenmod 14.1 Android 7.1.1

4
  • Have you considered an app that doesn't something similar? I think this question would be better asked on cygaogenmod forums but I have not done this before.
    – William
    Feb 16, 2017 at 19:52
  • In the meantime I found an excellent app that does the job. Button Mapper: Remap your keys can even assign the power menu dialog to individual buttons. It doesn't require xposed framework nor even root access. I just read that this is not possible without xposed so I didn't look for such application. Problem solved. Needlessly asked I this question.
    – mrJoe
    Feb 16, 2017 at 20:01
  • Can you post this as an answer or allow me to post this as answer to the question?
    – William
    Feb 16, 2017 at 20:04
  • If you find this necessary feel free to do this.
    – mrJoe
    Feb 16, 2017 at 20:05

1 Answer 1

0

So there appears to be several apps on the app store.

Button Mapper: Remap your keys is one such example. Buttons remapper (no root) is another.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .