From a778a64c053acdb99b7a14b5837b4f12d83009a1 Mon Sep 17 00:00:00 2001 From: Andre Eisenbach Date: Mon, 11 May 2015 11:49:59 -0700 Subject: Only register key types with uinput that we can actually map Bug: 20641307 Change-Id: I40cb1e22c35963429481a2cc9da897b5b2f554fe --- btif/src/btif_rc.c | 3 --- 1 file changed, 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); -- cgit v1.2.3