summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Eisenbach <eisenbach@google.com>2015-05-11 11:49:59 -0700
committerAndre Eisenbach <eisenbach@google.com>2015-05-11 11:49:59 -0700
commita778a64c053acdb99b7a14b5837b4f12d83009a1 (patch)
treebede0641815abd257010da61c096ad7613893eec
parent98d775444ced716aac74eddb5471a49b5ca6f798 (diff)
downloadandroid_system_bt-a778a64c053acdb99b7a14b5837b4f12d83009a1.tar.gz
android_system_bt-a778a64c053acdb99b7a14b5837b4f12d83009a1.tar.bz2
android_system_bt-a778a64c053acdb99b7a14b5837b4f12d83009a1.zip
Only register key types with uinput that we can actually map
Bug: 20641307 Change-Id: I40cb1e22c35963429481a2cc9da897b5b2f554fe
-rw-r--r--btif/src/btif_rc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/btif/src/btif_rc.c b/btif/src/btif_rc.c
index 07e0c2ce9..1d3e12b63 100644
--- a/btif/src/btif_rc.c
+++ b/btif/src/btif_rc.c
@@ -304,9 +304,6 @@ int uinput_create(char *name)
for (x = 0; key_map[x].name != NULL; x++)
ioctl(fd, UI_SET_KEYBIT, key_map[x].mapped_id);
- for(x = 0; x < KEY_MAX; x++)
- ioctl(fd, UI_SET_KEYBIT, x);
-
if (ioctl(fd, UI_DEV_CREATE, NULL) < 0) {
BTIF_TRACE_ERROR("%s Unable to create uinput device", __FUNCTION__);
close(fd);