Those ports are most of the time, at least in the android land IDK about iphone, on daughter boards and easy to replace. Even though in a perfect world this should not happen, still it is possible to do without too much of a hastle
Most of phone repair parts available to consumers are factory leaks. They are scraps and/or stolen stocks. They only exist because law enforcement in China is still, sort of strategically left, lacking. They are destined to go away as time goes by and/or parts are standardized and/or parts supply are legalized and/or mandated.