README.android
# For x86:
#
Platform variant: android
#
Primary -DVGPV string: -DVGPV_x86_linux_android=1
#
# If you see anything else at this point, something is wrong, and
# either the build will fail, or will succeed but you’ll get something
# which won’t work.
# Build, and park the install tree in ‘pwd‘/Inst
#
make -j2
make -j2 install DESTDIR=‘pwd‘/Inst
# To get the install tree onto the device:
# (I don’t know why it’s not "adb push Inst /data/local", but this
# formulation does appear to put the result in /data/local/Inst.)
#
adb push Inst /
# To run (on the device)
/data/local/Inst/bin/valgrind [the usual args etc]
# Once you’re up and running, a handy modify-V-rebuild-reinstall
# command line (on the host, of course) is
#
mq -j2 && mq -j2 install DESTDIR=‘pwd‘/Inst && adb push Inst /
#
# where ’mq’ is an alias for ’make --quiet’.
# One common cause of runs failing at startup is the inability of
# Valgrind to find a suitable temporary directory.
On the device,
# there doesn’t seem to be any one location which we always have
# permission to write to.
The instructions above use /sdcard.
If
# that doesn’t work for you, and you’re Valgrinding one specific
# application which is already installed, you could try using its
# temporary directory, in /data/data, for example
# /data/data/org.mozilla.firefox_beta.
#
# Using /system/bin/logcat on the device is helpful for diagnosing
# these kinds of problems.
91