blob: 43c76345c9e10c20dda21750d8360d6e745cc091 [file] [log] [blame]
Michael Wright1f2c7682015-06-03 13:46:48 +01001#!/system/bin/sh
Martin Stjernholmafe98692019-03-01 18:32:35 +00002
3# Preload the native portion libhidcommand_jni.so to bypass the dependency
4# checks in the Java classloader, which prohibit dependencies that aren't
5# listed in system/core/rootdir/etc/public.libraries.android.txt.
6export LD_PRELOAD=libhidcommand_jni.so
7
Elliott Hughes5a03b692019-05-09 22:01:14 -07008export CLASSPATH=/system/framework/hid.jar
9exec app_process /system/bin com.android.commands.hid.Hid "$@"