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
-
Can you provide more information about what phone you have, and whether or not you're rooted or willing to be rooted?– TurboFoolCommented 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 BrownCommented Jul 21, 2015 at 7:06
-
My understanding is that the only way to remap buttons is with root.– TurboFoolCommented Jul 22, 2015 at 15:04
-
I did, see this link here– Dan BrownCommented Jul 23, 2015 at 14:48
-
@Firelord well, I have root now (apparently, king root changed how they work) so that's sorted.– Dan BrownCommented Sep 14, 2015 at 15:55
1 Answer
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).
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
".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.
In Tasker create an Event based profile from Plugin → AutoInput → Key → Configuration:
- Keys: Volume Up
- Key Action: Key Down
Create a task and add following actions:
Plugin → AutoInput → Modes:
Configuration:
- Key Suppress: Enable
- Keys: Volume Up
- Timeout: None
- App → Launch App → Shortcut 1
- Create another Event based profile but for Volume Down (follow step 3)
- 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.
-
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
-