Revert "Only allow system to write to existing input nodes."
This reverts commit 344e929e6d
.
Bug: 35301292
Change-Id: Ib6805c986c0aa88d14652de59ad4602b1cce8b56
This commit is contained in:
parent
ee57bbd9f8
commit
14667c19cd
|
@ -46,7 +46,7 @@ subsystem adf
|
|||
/dev/tty0 0660 root system
|
||||
/dev/graphics/* 0660 root graphics
|
||||
/dev/msm_hw3dm 0660 system graphics
|
||||
/dev/input/* 0640 system input
|
||||
/dev/input/* 0660 root input
|
||||
/dev/eac 0660 root audio
|
||||
/dev/cam 0660 root camera
|
||||
/dev/pmem 0660 system graphics
|
||||
|
|
|
@ -321,7 +321,7 @@ static int open_device(const char *device, int print_flags)
|
|||
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));
|
||||
|
|
Loading…
Reference in New Issue