OSDN Git Service

Added fake touchscreen daemon to make builtin apk work
authorJim Huang <jserv@0xlab.org>
Tue, 8 Sep 2009 16:28:17 +0000 (00:28 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 16 May 2011 09:13:02 +0000 (17:13 +0800)
commitbe1e5aa9fe4decab93b937d2dc147304d64d4067
treef10ebfb3db34824c7edebce573cd7392b4e064c7
parent2ae7663e1e064000356ee9e49ebd08bdddc545f9
Added fake touchscreen daemon to make builtin apk work

Several Android builtin packages would pick up the system resources
about touchscreen.  If there is no touchscreen, the ones suffixing
with '-notouch' would be taken.  However, by default, resource layout
doesn't come with '-notouch', and Beagleboard has no touchscreen on
board physically.  Thus, Android core will crash due to lacking of
proper resources.

Our solution is to write a dedicated daemon to register userspace
input device as a fake touchscreen device.  EventHub would regard
it as one of the input source, and no Android packages would complain.
(cherry picked from commit 641356fa32226baa8beb12d54160103063c7c8d4)

Signed-off-by: Tick Chen <tick@0xlab.org>
[faketsd] Run fake touch screen driver for res
DO NOT MERGE: Demo purpose only.

Running faketsd before system runs and Android will think the system
having resource of touchscreen, and will try to access resource of
fingers.
faketsd/Android.mk [new file with mode: 0644]
faketsd/fake-ts.c [new file with mode: 0644]