All recent Samsung devices (or at least the smartphones and laptops I've seen) have a setting to stop charging when the battery is 85% charged.
I think there are Android apps that can do the same on other brand phones. Wonder if anyone can recommend one.