Elliott Hughes 5a03b69fc8 Clean up some shell script copy & paste.
Remove apparently meaningless comment that's been copy & pasted all over.

Remove trailing whitespace.

Consistently use "$@".

Inline single-use constant.

Test: treehugger
Change-Id: Ie3b3e285cd35ecff9e6fdb7144fe4bbd04e42452
2019-05-09 22:01:14 -07:00

10 lines
379 B
Bash
Executable File

#!/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 "$@"