summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wright2017-02-21 10:46:50 -0600
committerMichael Wright2017-02-21 11:12:59 -0600
commit14667c19cdf8fa4b9fb6661cdd610f60556a4f5d (patch)
tree6078999ca8d83d53043f5628b2a40d5aa39008b6 /toolbox
parentee57bbd9f8d5db8ea1bbc824eeb446e44e130319 (diff)
downloadplatform-system-core-14667c19cdf8fa4b9fb6661cdd610f60556a4f5d.tar.gz
platform-system-core-14667c19cdf8fa4b9fb6661cdd610f60556a4f5d.tar.xz
platform-system-core-14667c19cdf8fa4b9fb6661cdd610f60556a4f5d.zip
Revert "Only allow system to write to existing input nodes."
This reverts commit 344e929e6d8cc2925e55d7f72262002fcc181f52. Bug: 35301292 Change-Id: Ib6805c986c0aa88d14652de59ad4602b1cce8b56
Diffstat (limited to 'toolbox')
-rw-r--r--toolbox/getevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolbox/getevent.c b/toolbox/getevent.c
index 1fb315cb5..e6def6bae 100644
--- a/toolbox/getevent.c
+++ b/toolbox/getevent.c
@@ -321,7 +321,7 @@ static int open_device(const char *device, int print_flags)
321 char idstr[80]; 321 char idstr[80];
322 struct input_id id; 322 struct input_id id;
323 323
324 fd = open(device, O_RDONLY); 324 fd = open(device, O_RDWR);
325 if(fd < 0) { 325 if(fd < 0) {
326 if(print_flags & PRINT_DEVICE_ERRORS) 326 if(print_flags & PRINT_DEVICE_ERRORS)
327 fprintf(stderr, "could not open %s, %s\n", device, strerror(errno)); 327 fprintf(stderr, "could not open %s, %s\n", device, strerror(errno));