Home | History | Annotate | Download | only in hid
      1 #!/system/bin/sh
      2 #
      3 # Script to start "hid" on the device, which has a very rudimentary
      4 # shell.
      5 #
      6 base=/system
      7 export CLASSPATH=$base/framework/hid.jar
      8 
      9 # Preload the native portion libhidcommand_jni.so to bypass the dependency
     10 # checks in the Java classloader, which prohibit dependencies that aren't
     11 # listed in system/core/rootdir/etc/public.libraries.android.txt.
     12 export LD_PRELOAD=libhidcommand_jni.so
     13 
     14 exec app_process $base/bin com.android.commands.hid.Hid "$@"
     15