I honestly don't know. I always used a tester (multimeter) under load, but this is not always convenient and dreary. The telephone is an example of this. To measure programmatically is just what you need. Well, I'm forgiven - I'm 60.
Boris, good afternoon. The easiest to use, and with a user-friendly interface in our opinion - Battery Callibration . How it works: Download the application, put the smartphone on charging. We charge up to 100%. Information about the charge level in the application and on the display screen will most likely differ. We are waiting for both indicators to be equal to 100%. After that we press the button "battery calibration" in the application. Restart the smartphone. Done =)