> although a flaky usb cable could sometimes overcharge
The charge controller is in the phone. The cable and power supply have no bearing on when charging is terminated. Android has an "optimized charging" option where it will charge above 80% shortly before it predicts you are likely to unplug. Samsung may have meddled with this behavior but that isn't Android's fault.