Forked from https://android.googlesource.com/platform/prebuilts/misc