The battery is probably about to die or is in a bad state. I doubt it has something to do with software.
Google also won't void your warranty for using a custom ROM. UNLESS you somehow brick your phone or cause permanent damage with root.
Android news for android developers. Everything that happens in android world.
For Android development specific topics please see /c/android_dev
The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License
The battery is probably about to die or is in a bad state. I doubt it has something to do with software.
Google also won't void your warranty for using a custom ROM. UNLESS you somehow brick your phone or cause permanent damage with root.
The percentage is based on voltage for lithium batteries. Old or weak batteries will suffer voltage droop when under load, so the device is powering down to protect the battery from over-discharging and causing damage (or a thermal event).