History log of /system/core/toolbox/getevent.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
14667c19cdf8fa4b9fb6661cdd610f60556a4f5d 21-Feb-2017 Michael Wright <michaelwr@google.com> Revert "Only allow system to write to existing input nodes."

This reverts commit 344e929e6d8cc2925e55d7f72262002fcc181f52.

Bug: 35301292
Change-Id: Ib6805c986c0aa88d14652de59ad4602b1cce8b56
/system/core/toolbox/getevent.c
344e929e6d8cc2925e55d7f72262002fcc181f52 19-Jan-2017 Michael Wright <michaelwr@google.com> Only allow system to write to existing input nodes.

This prevents the shell user from injecting input as if it were coming
from an existing input device, which in turn makes it easier for malware
/ abuse analysis to detect when someone is injecting input via the
command line vs a real user using a device.

(cherrypick of 95637eb2a332b9a09914b1bf32c10fccfba4a175.)

Bug: 30861057
Test: ran getevent, saw correct output, played with device
Change-Id: Ib53eea1b7767f25510b5d36fe6109101a9fad8e0
/system/core/toolbox/getevent.c
1c2f612c18225719719e68d819625e2f8741881a 16-Nov-2016 Ting-Yuan Huang <laszio@google.com> toolbox: exit when failed to allocate buffer for ioctl

This is a "shouldn't happen" case.

Test: make WITH_TIDY=1 mmma system/core/toolbox
Change-Id: I51e44e17837b03d6df6f8c4c3e1aeab8253e094d
/system/core/toolbox/getevent.c
c7f3c5c10cbe633683888a7e14a5fa436a2b32a6 26-Mar-2015 Elliott Hughes <enh@google.com> Auto-generate the getevent labels from <linux/input.h>.

Now we only have to remember to update the kernel uapi headers, which
we're pretty good at.

Change-Id: If04eb8c50882fff5e5e2a5d72664f5d4c4c538b1
/system/core/toolbox/getevent.c
0badbd6565fea17be39d82eba858fa76d28920a4 29-Dec-2014 Elliott Hughes <enh@google.com> Fix missing #includes in system/core.

Change-Id: I4736e8c4f7bb8bb03640d26d58243efaa67dc75c
/system/core/toolbox/getevent.c
140b13546ac30a836e39ad4f22da042b3fcb57a4 23-Oct-2013 Sasha Levitskiy <sanek@google.com> Getevent: make sure the monotonic timestamp is displayed; warning cleanup.

Change-Id: I6c500ab55470155ddf692fe5f655bdd575f195f5
Signed-off-by: Sasha Levitskiy <sanek@google.com>
/system/core/toolbox/getevent.c
aa907768af7ba9e29901d356cdcac6a436970323 08-May-2014 Mark Salyzyn <salyzyn@google.com> toolbox: turn on -Werror

- Deal with some signedness issues
- Deal with some size issues
- Deal with NULL pointer issues
- Deal with some -Wunused issues

Change-Id: I1479dd90d690084491bae3475f2c547833519a57
/system/core/toolbox/getevent.c
ccecf1425412beb2bc3bb38d470293fdc244d6f1 16-Jan-2014 Elliott Hughes <enh@google.com> system/core 64-bit cleanup.

This cleans up most of the size-related problems in system/core.
There are still a few changes needed for a clean 64-bit build,
but they look like they might require changes to things like the
fastboot protocol.

Change-Id: I1560425a289fa158e13e2e3173cc3e71976f92c0
/system/core/toolbox/getevent.c
e4e21796f72e09d4fab153992b31cb1c6f65d0b0 24-Nov-2011 Jeff Brown <jeffbrown@google.com> Make timestamps friendlier.

Change-Id: I378c3028630a7f805c3f730da02bbbfe07ec3654
/system/core/toolbox/getevent.c
9de370e165350010bc9086347cbd142aecef771e 17-Aug-2011 Jeff Brown <jeffbrown@google.com> Show the resolution of each axis.

Change-Id: I81c4b7e6480b98e59fb389060ab2c8d34257ae5f
/system/core/toolbox/getevent.c
4ac87154c1e659c474b8d70b4de7a7700c78b4c4 24-Jul-2011 Jeff Brown <jeffbrown@google.com> Dump the HID descriptor when available.

Also, always print the input properties when -p is
specified.

Change-Id: Ibacb6dd26ccab68c85b76928df60fdc2a53c198c
/system/core/toolbox/getevent.c
f6d0f8af1768b3b9b10760bba5583c5e721b64ea 30-Jun-2011 Jeff Brown <jeffbrown@google.com> getevent: Fix a couple of bugs.

Fixed a bug printing the event value when using labels.

Stop trying to print the available codes for EV_SYN because
we cannot actually query them. EVIOCGBIT(0, size) is a special
case that returns the set of events that are supported, and
EV_SYN == 0.

Change-Id: Iea086ba24300ca0815e4814a3bc5ff60756612c2
/system/core/toolbox/getevent.c
f8754337d82d0a1ba509311bbadd281619c7d96e 16-Jun-2011 Jeff Brown <jeffbrown@google.com> Enhance getevent to print event labels.

Added -l argument to print labels for event types, codes and values.
Added -i argument to print all device info.
Added support for printing input properties.

Change-Id: I3cacb716dbc38f50217b9dfc24ba44d08f352603
/system/core/toolbox/getevent.c
477b4307004f853bb89c62f562fc9dc90a5ae71a 09-Apr-2009 Dianne Hackborn <hackbod@google.com> Improvements to get events: -p, better output.

Add new -p option to easily get the output showing which events are reported by the devices.

Improve the reported events output a bit by including a name for each event type.

Extend help text to include a description of each options, so I don't have to look in the source code next time. :)
/system/core/toolbox/getevent.c
dd7bc3319deb2b77c5d07a51b7d6cd7e11b5beb0 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/core/toolbox/getevent.c
e54eebbf1a908d65ee8cf80bab62821c05666d70 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/core/toolbox/getevent.c
4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/system/core/toolbox/getevent.c