I believe modern battery charge monitoring software already accounts for that to some extent, and will not allow you to charge the battery to "true" 100% or "true" 0% in normal circumstances. So you should be fine charging the battery to the point where the phone says "Ok, I've finished charging now". And if the electronics are at all sensible, it should stop charging the battery at that point automatically.