summaryrefslogtreecommitdiff
path: root/cmds/hid
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-05-09 22:01:14 -0700
committerElliott Hughes <enh@google.com>2019-05-09 22:01:14 -0700
commit5a03b69fc8723a2e4dcfb5ffe420cad9c8bff85c (patch)
treea254280735fae2424ffd70694724aaa9dc6484db /cmds/hid
parent8e63c9cc01ffaa1c0929c45569dabbd6b788f0da (diff)
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
Diffstat (limited to 'cmds/hid')
-rwxr-xr-xcmds/hid/hid9
1 files changed, 2 insertions, 7 deletions
diff --git a/cmds/hid/hid b/cmds/hid/hid
index 3931da1e2a85..43c76345c9e1 100755
--- a/cmds/hid/hid
+++ b/cmds/hid/hid
@@ -1,14 +1,9 @@
#!/system/bin/sh
-#
-# Script to start "hid" on the device, which has a very rudimentary
-# shell.
-#
-base=/system
-export CLASSPATH=$base/framework/hid.jar
# 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
-exec app_process $base/bin com.android.commands.hid.Hid "$@"
+export CLASSPATH=/system/framework/hid.jar
+exec app_process /system/bin com.android.commands.hid.Hid "$@"