mirror from https://android.googlesource.com/platform/hardware/libhardware_legacy.git