Revert "Only allow system to write to existing input nodes."
This reverts commit 344e929e6d8cc2925e55d7f72262002fcc181f52.
Bug: 35301292
Change-Id: Ib6805c986c0aa88d14652de59ad4602b1cce8b56
diff --git a/toolbox/getevent.c b/toolbox/getevent.c
index 1fb315c..e6def6b 100644
--- a/toolbox/getevent.c
+++ b/toolbox/getevent.c
@@ -321,7 +321,7 @@
char idstr[80];
struct input_id id;
- fd = open(device, O_RDONLY);
+ fd = open(device, O_RDWR);
if(fd < 0) {
if(print_flags & PRINT_DEVICE_ERRORS)
fprintf(stderr, "could not open %s, %s\n", device, strerror(errno));