#!/bin/sh
# rustdroid resolves its jars, framework-res and native libraries as siblings of
# the executable, so add the install directory to the library path and exec the
# real binary there (exec keeps it as the process image, so that resolution and
# /proc/self/exe still point at the install directory).
LIBDIR=/usr/lib/rustdroid
export LD_LIBRARY_PATH="$LIBDIR${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
exec "$LIBDIR/rustdroid" "$@"
