Android: Refactored build files
Made shell scripts more modular, by removing environment variables in favor of commandline arguments
Maniphest: T10784