Skip to content

Instantly share code, notes, and snippets.

Created Feb 27, 2013
What would you like to do?
launcher script for Dalvik on X86 Linux
# base directory, at top of source tree; replace with absolute path
# configure root dir of interesting stuff
export ANDROID_ROOT=$root
# configure bootclasspath
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