8353c56c0b
On several devices several tools in /system/bin/ requires LD_LIBRARY_PATH to contain /system/lib(64). Check for the bit-ness with `getprop ro.product.cpu.abilist64` and setup the environment accordingly. Closes #193. Closes #206.
15 lines
461 B
Bash
Executable File
15 lines
461 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# There needs to be a folder at $ANDROID_DATA/dalvik-cache
|
|
export ANDROID_DATA=@TERMUX_PREFIX@/var/android/
|
|
mkdir -p $ANDROID_DATA/dalvik-cache
|
|
|
|
exec dalvikvm -Xmx256m \
|
|
-Djava.io.tmpdir=@TERMUX_PREFIX@/tmp \
|
|
-cp @TERMUX_PREFIX@/share/dex/jack.jar com.android.jack.Main \
|
|
-cp @TERMUX_PREFIX@/share/jack/android.jack \
|
|
-D jack.library.digest.algo=MD5 -D sched.vfs.case-insensitive.algo=MD5 \
|
|
-D jack.annotation-processor=off \
|
|
--output-dex=`pwd` \
|
|
$@
|