summaryrefslogtreecommitdiff
path: root/cmds/hid
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-05-10 11:22:58 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-05-10 11:22:58 -0700
commit8a741eaecc8500d64c9c84c2d4ce754aef9a47fa (patch)
treebe4248769d3d32a1f41ecc20ce80ea53a7b3d757 /cmds/hid
parentff58f1e378dbc090de8eb30c06305fd3d6407f1e (diff)
parentfda05c96c17f969df7483cdbbeb2eb4d6092c3f8 (diff)
Merge "Clean up some shell script copy & paste." am: b4012baaf4
am: fda05c96c1 Change-Id: I104862db5d787ffc14512bf1181332c8ca7ba872
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 "$@"