Add support of uinput device with "uinput" shell command, allows user to create a virtual uinput device and inject events to it, for input framework testing. Bug: 160360195 Bug: 163217897 Test: run uinput command from adb shell. Change-Id: Ic885ae510d98fa282722f7a17d66778c15a893b6
10 lines
394 B
Bash
Executable File
10 lines
394 B
Bash
Executable File
#!/system/bin/sh
|
|
|
|
# Preload the native portion libuinputcommand_jni.so to bypass the dependency
|
|
# checks in the Java classloader, which prohibit dependencies that aren't
|
|
# listed in system/core/rootdir/etc/public.libraries.android.txt.
|
|
export LD_PRELOAD=libuinputcommand_jni.so
|
|
|
|
export CLASSPATH=/system/framework/uinput.jar
|
|
exec app_process /system/bin com.android.commands.uinput.Uinput "$@"
|