Are you looking to control host or device connections, or both?
Android phones can behave as hosts (using OTG cables, usually) allowing client devices such as microphones or keyboards or docks to connect to them and offer services, or as devices, connecting to another host, such as a computer.