Clone of https://android.googlesource.com/platform/system/core