Skip to content

Instantly share code, notes, and snippets.

@iNarcissuss
Forked from guohai/rund
Created October 20, 2016 06:16
Show Gist options
  • Save iNarcissuss/15805524798bcd36e3b4c5fbf1b8cc07 to your computer and use it in GitHub Desktop.
Save iNarcissuss/15805524798bcd36e3b4c5fbf1b8cc07 to your computer and use it in GitHub Desktop.
launcher script for Dalvik on X86 Linux
#!/bin/sh
# base directory, at top of source tree; replace with absolute path
base=`pwd`
# configure root dir of interesting stuff
root=$base/out/host/linux-x86
export ANDROID_ROOT=$root
# configure bootclasspath
bootpath=$base/out/target/product/generic_x86/system/framework
export BOOTCLASSPATH=$bootpath/core.jar:$bootpath/ext.jar:$bootpath/framework.jar:$bootpath/android.policy.jar:$bootpath/services.jar
export LD_LIBRARY_PATH=$bootpath/lib:$LD_LIBRARY_PATH
# this is where we create the dalvik-cache directory; make sure it exists
export ANDROID_DATA=/tmp/dalvik_$USER
mkdir -p $ANDROID_DATA/dalvik-cache
exec $root/bin/dalvikvm -Xdexopt:none $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment