cloned from https://code-review.phablet.ubuntu.com/aosp/platform/build