summaryrefslogtreecommitdiff
path: root/cmds/hid/hid.sh
blob: 43c76345c9e10c20dda21750d8360d6e745cc091 (plain)
1
2
3
4
5
6
7
8
9
#!/system/bin/sh

# Preload the native portion libhidcommand_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=libhidcommand_jni.so

export CLASSPATH=/system/framework/hid.jar
exec app_process /system/bin com.android.commands.hid.Hid "$@"