I made it quickly because of my charging cable was almost break.
Just put super glue on the parts or taping.
My Phone is LG Optimus G Pro.