init libhardware code