1

How can I change the mapping of my un-rooted device's buttons like swapping the volume buttons? My device is a Sony Xperia E C1505

5
  • Can you provide more information about what phone you have, and whether or not you're rooted or willing to be rooted?
    – TurboFool
    Commented Jul 21, 2015 at 2:43
  • About rooting: no. Not because I do not want to(I do really want to root it), but because the build.prop has been tampered, by my friend. The only plus is that no games are incompatible work.
    – Dan Brown
    Commented Jul 21, 2015 at 7:06
  • My understanding is that the only way to remap buttons is with root.
    – TurboFool
    Commented Jul 22, 2015 at 15:04
  • I did, see this link here
    – Dan Brown
    Commented Jul 23, 2015 at 14:48
  • @Firelord well, I have root now (apparently, king root changed how they work) so that's sorted.
    – Dan Brown
    Commented Sep 14, 2015 at 15:55

1 Answer 1

0

Not sure why would you want to swap those buttons but you can certainly do it using AutoInput (for Android 4.3 and above), Tasker, both are/have paid/7-day full trial, MacroDroid (free/paid) and Shortcut Launcher/ AutoShortcut (free/paid).

  1. After installing Shortcut Launcher you would see four icons namely Shortcut 1, Shortcut 2, and so on in your app drawer.

    Tap Shortcut 1 → MacroDroid Shortcut → <Add New Macro> → Volume Up/Down → Volume Down → proceed → ignore Add Constraints → name it "Volume Down".

  2. Similarly, assign a MacrDroid shortcut to Shortcut 2 but choose Volume Up and name it "Volume Up".

    Alternatively, AutoShortcut can be used in place of Shortcut Launcher. Use it in a Tasker's task to directly access a MacroDroid shortcut. It is available under Plugin.

  3. In Tasker create an Event based profile from Plugin → AutoInput → Key → Configuration:

    • Keys: Volume Up
    • Key Action: Key Down
  4. Create a task and add following actions:

    1. Plugin → AutoInput → Modes:

      • Configuration:

        • Key Suppress: Enable
        • Keys: Volume Up
      • Timeout: None
    2. App → Launch App → Shortcut 1
  5. Create another Event based profile but for Volume Down (follow step 3)
  6. Repeat step 4 but under sub-step 1 do Keys: Volume Down and assign the app Shortcut 2 in sub-step 2 there.

That's it. It's not completely flawless but the flaws can be ignored.

For any reasoning about related to AutoInput see my answer at Bind action to hardware key combination.

2
  • I just noticed that your device probably did not receive Android 4.3 so this answer may not be helpful to you, but it is still good for anyone having Android 4.3 or above.
    – Firelord
    Commented Sep 15, 2015 at 0:38
  • i know, but I can still work with it.
    – Dan Brown
    Commented Sep 15, 2015 at 9:28

You must log in to answer this question.

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