| 1 | #!/system/bin/sh |
| 2 | |
| 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. |
| 6 | export LD_PRELOAD=libhidcommand_jni.so |
| 7 | |
| 8 | export CLASSPATH=/system/framework/hid.jar |
| 9 | exec app_process /system/bin com.android.commands.hid.Hid "$@" |