title: How to set Android environment variables for app to inherit?
body: <p>I use <code>adb shell</code> to debug app, and set some env variable like this <code>export TESTVAR=test</code>, then I start app in the same shell <code>am start -n my.app.package</code>, strangely the process cannot see <code>TESTVAR</code> (examine <code>/proc/pid/environ</code>) because the app process's parent is <strong>zygote</strong>. How to set the env for such app processes?</p>