Originally cloned from https://github.com/TeamHorizon/android_build