How to remap the volume buttons on Android

To remap the volume buttons, install KeySnap, turn on its Accessibility service, and create a shortcut: record Volume Up or Volume Down, pick a single, double or long press, choose an action and tap Save shortcut. No root is needed.

Get KeySnap on Google PlayJump to the steps

Steps

  1. Install KeySnap and finish the setup on HomeOpen KeySnap and follow the setup steps on Home. They start with turning on the Accessibility service, which is how Android lets an app notice a hardware key.
    KeySnap setup, step 1 of 2: Turn on Accessibility, with what the service can and cannot do.
    Setup step 1: the Accessibility service.
  2. Create a shortcut and record the buttonTap + at the bottom of the screen. Next to Press, tap a key, then Record a key, and press Volume Up or Volume Down. Its name replaces a key.
    KeySnap Choose a key sheet showing Listening, tap to stop, with a saved Volume Down key below.
    Listening for a key. Saved keys appear below.
  3. Pick a press patternTap Single press to switch to Double press or Long press.
    KeySnap editor with Press Volume Down and the press menu open: Single press, Double press, Long press.
    Tap the press pattern to change it.
  4. Choose what it doesUnder Do, tap Add action. Search or pick a category, then tap + next to an action, for example Toggle flashlight.
    KeySnap Add action screen with the Flashlight category open: Toggle, Enable and Disable flashlight.
    The Flashlight category in Add action.
  5. Save and try itTap Save shortcut, then press the button. Test runs the actions without pressing it.
    Finished KeySnap shortcut: Press Volume Down, Double press, Only if Always runs, Do Toggle flashlight, and Save shortcut.
    A finished shortcut, ready to save.

Shortcut ideas for the volume buttons

Each button and press pattern can run its own action, for example:

  • Volume Down, double press: flashlight
  • Volume Up, hold: quick screenshot
  • Volume Down, hold: open the camera
  • Volume Up, double press: play or pause music
  • Both buttons together: Do Not Disturb

Good to know

  • With the screen off, Android decides which keys reach an accessibility service, so it varies by phone. Advanced Mode reads key presses directly and works with the screen off. It uses Wireless Debugging from Developer options, not root.
  • Advanced Mode also reaches the power button, the assistant button and many manufacturer keys. See the special-key guides.
  • Conditions can limit a shortcut, for example to certain hours or only while music is playing.

Make your volume buttons do more.

KeySnap is free to install from Google Play. It offers in-app purchases.

Get KeySnap on Google PlayFlashlight shortcut

KeySnap is an independent app by Arda Şen. It is not affiliated with Google or any phone manufacturer.