Before you begin
For the official iFixit guide, follow this link. This is a guide for replacing a faulty charging port or headphone jack port in the OnePlus 5. Opening the OnePlus 5 does not void its warranty. No special skills are needed for this replacement.