A pair of off-brand PS4 controllers were both starting to stop working around the same time from typical abuse. One stopped connecting to any devices, the other only worked while plugged in, until the charging port got jammed and also stopped working.

I was able to take them both apart, de-solder the micro-USB ports off both boards and solder the working one onto the other, then also transplant the battery to salvage a fully functional controller our of both broken ones.