Michael Wright | 1f2c768 | 2015-06-03 13:46:48 +0100 | [diff] [blame] | 1 | #!/system/bin/sh |
Martin Stjernholm | afe9869 | 2019-03-01 18:32:35 +0000 | [diff] [blame] | 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 | |
Elliott Hughes | 5a03b69 | 2019-05-09 22:01:14 -0700 | [diff] [blame] | 8 | export CLASSPATH=/system/framework/hid.jar |
| 9 | exec app_process /system/bin com.android.commands.hid.Hid "$@" |