On Android, Advanced Charging Controller App (AccA) can tell you that, and help define profiles to avoid that spicy pillow issue.
Some phones additionally support running without battery, or you can connect a power supply in place of the battery.