[Android] Add a configurable environment for devil/. (RELAND 2)

This is a reland of https://codereview.chromium.org/1399273002

BUG=476719

Review URL: https://codereview.chromium.org/1416703003

Cr-Commit-Position: refs/heads/master@{#363204}
45 files changed