What can be remapped?
ONLY HARDWARE buttons can be remapped.
There is NO GUARANTEE any of these buttons will work and this app isn't
designed to control games. Your device's OEM/vendor can prevent them from being
remapped.
* Volume buttons.
* Navigation buttons.
* Bluetooth/wired keyboards and mice connected to your device.
* Buttons on other connected devices should also work.
You can combine multiple keys to form a "trigger" and have as many triggers as
you want for each action. You can make a key map only work on a long press as
well and to vibrate as well.
What can’t be remapped?
* Pixel Active Edge
* OnePlus Alert Slider
* Power button
* Bixby button
Your key maps don't work if the screen is OFF.
What can I remap my keys to do?
Some actions will only work on rooted devices and specific Android versions.
* Open an app
* Open an app shortcut. This feature is very useful since you can tell another
app to do something Key Mapper can’t. E.g If your launcher has a shortcut to
open the app drawer, you can select that shortcut in this app and make any
button open the app drawer.
* Open a URL
* Go back
* Go home
* Open recents
* Open menu
* Toggle split screen (Android 7.0+)
* Expand notification drawer
* Expand quick settings
* Collapse status bar
* Toggle/enable/disable WiFi
* Toggle/enable/disable Bluetooth
* Toggle/enable/disable mobile data (ROOT only)
* Toggle Play/pause media
* Pause/play media
* Fast forward/rewind
* Next/previous track
* Volume up/down
* Increase/decrease a specific volume stream
* Show the volume dialog
* Cycle through and change the ringer mode
* Mute/unmute/toggle mute (Android 6.0+)
* Toggle/enable/disable auto-rotate
* Switch between portrait and landscape mode
* Force portrait/landscape mode
* Toggle/enable/disable auto-brightness
* Increase/decrease brightness
* Toggle/enable/disable flashlight (Android 6.0+)
* Take a screenshot (Android 9.0+)
* Open the Google Assistant
* Open camera
* Consume key event. (Do nothing)
* Lock the device
* Show the power dialog (Android 5.0+)
* Move the cursor to the end of a file
* Toggle, show and hide the keyboard
* Show the keyboard picker (ROOT only for Android 8.1+)
* Change the keyboard (ROOT only)
The Key Mapper keyboard needs to be selected for these to work and you can’t
use a soft keyboard at the same time:
* Input a specific keycode
* Input a key
* Insert a block of text
More will be added. If you have any ideas, leave a comment or email the
developer. 😃
What other things can the app do?
* Option to show a persistent notification which can pause/resume your keymaps.
It can also open the accessibility settings on the device to enable/disable the
service. Rooted devices can start/stop the accessibility service without going
into settings and just tap the notification.
* Automatically change the keyboard to the Key Mapper one and/or show the
keyboard picker when a chosen Bluetooth device is connected and switch back to
the old one when it is disconnected.
Permissisons
You don't have to grant all the permissions for the app to work. The app will
tell you if a permission needs to be granted for a feature to work.
* Accessibility Service: Basic requirement for remapping to work. It is needed
so the app can listen to and block keyevents.
* Device Admin: To turn the screen off when using the action to turn off the
screen.
* Modify System Settings: To change the brightness and rotation settings.
* Camera: To control the flashlight.
On some devices, enabling the accessibility service will disable "enhanced data
encryption".
Source code: https://github.com/sds100/KeyMapper
什么可以重新映射?
仅硬件按钮可以重新映射。
没有保证这些按钮中的任何一个都可以使用,并且此应用程序无法使用
设计用来控制游戏。您设备的OEM /供应商可能会阻止他们
重新映射。
*音量按钮。
*导航按钮。
*连接到设备的蓝牙/有线键盘和鼠标。
*其他已连接设备上的按钮也应该起作用。
您可以组合多个键以形成“触发器”,并具有尽可能多的触发器
您想要的每个动作。您可以使按键图仅在长按时起作用,因为
以及振动。
什么不能重新映射?
*像素主动边缘
* OnePlus警报滑块
* 电源按钮
* Bixby按钮
如果屏幕关闭,则您的按键映射不起作用。
我该如何重新映射我的密钥?
某些操作仅适用于有根设备和特定的Android版本。
*打开一个应用程序
*打开应用程序快捷方式。此功能非常有用,因为您可以告诉其他人
应用程序执行Key Mapper不能执行的操作。例如,如果您的启动器有一个快捷方式
打开应用程序抽屉,您可以在此应用程序中选择该快捷方式并进行任何操作
按钮打开应用程序抽屉。
*打开一个URL
* 回去
* 回家
*打开最近
*打开菜单
*切换分屏(Android 7.0+)
*展开通知抽屉
*展开快速设置
*折叠状态栏
*切换/启用/禁用WiFi
*切换/启用/禁用蓝牙
*切换/启用/禁用移动数据(仅限ROOT)
*切换播放/暂停媒体
*暂停/播放媒体
*快进/快退
*下一个/上一个曲目
*音量调高/调低
*增加/减少特定的音量流
*显示音量对话框
*循环播放并更改铃声模式
*静音/取消静音/切换静音(Android 6.0+)
*切换/启用/禁用自动旋转
*在纵向和横向模式之间切换
*强制纵向/横向模式
*切换/启用/禁用自动亮度
*增加/减少亮度
*切换/启用/禁用手电筒(Android 6.0+)
*截图(Android 9.0+)
*打开Google助手
* 开放式摄像头
*消耗关键事件。 (没做什么)
*锁定设备
*显示电源对话框(Android 5.0+)
*将光标移到文件末尾
*切换,显示和隐藏键盘
*显示键盘选择器(ROOT仅适用于Android 8.1+)
*更换键盘(仅限ROOT)
需要选择“按键映射器”键盘才能使它们工作,而您不能
同时使用软键盘:
*输入特定的键码
*输入密钥
*插入一段文字
将添加更多。如果您有任何想法,请发表评论或通过电子邮件发送给
开发人员。 😃
该应用程序还能做什么?
*显示永久通知的选项,可以暂停/恢复您的键盘映射。
它还可以打开设备上的辅助功能设置以启用/禁用
服务。根目录设备无需启动即可启动/停止辅助功能
进入设置,然后点击通知。
*自动将键盘更改为键映射器之一和/或显示
连接选定的蓝牙设备并切换回时的键盘选择器
旧的断开连接时。
权限
您无需授予所有权限即可使应用程序正常运行。该应用程序将
告诉您是否需要授予许可才能使用某个功能。
*辅助功能服务:重新映射才能正常工作的基本要求。这是必需的
因此该应用可以监听和阻止关键事件。
*设备管理员:使用操作关闭屏幕时要关闭屏幕
屏幕。
*修改系统设置:更改亮度和旋转设置。
*相机:控制手电筒。
在某些设备上,启用辅助功能服务会禁用“增强型数据
加密”。
源代码:https://github.com/sds100/KeyMapper