ok it may also be that the battery is damaged or is just badly calibrated, try some application to repair the battery. It can even be the cable itself or the charger. If the issue is that the phone is discharged too quickly at night may also be that there is an application that is bleeding the battery test to do a battery consumption test.this.
plus, the phone runs out of battery VERY fast during the night.
30% charge at night (10-11 PM), then i go to bed and wake up to single digit charge (2-5%).
this is while phone is in power saver mode.
tried it WITHOUT power saver, same thing. its like powersaver does not work.
thanks for the work, dev.
im glad you took the time to inform us.