fork libhardware_legacy