These are basically copy-pasted from here: https://cs.android.com/android/platform/superproject/+/master:system/libbase/