I was able to find a workaround for the battery percentage:
1. FIRST Get your battery capacity!!!
$ adb shell cat /sys/class/power_supply/battery/batt_capacity_max
800
2. Calculate your 100%
800 * 1.2 = 960
3a. Charge battery fully (UI will say 80%):
Use your new 100% value in place of my 960!!
adb shell
$ su
# echo 960 > /sys/class/power_supply/battery/batt_capacity_max
3b. To revert back (and see actual %):
put your old value in place of my 800 here
adb shell
$ su
# echo 800 > /sys/class/power_supply/battery/batt_capacity_max
Warning:
How this works:
FAQ
Video Guide:
Setting Battery Maximum Past 80%
https://youtu.be/dEdmIDEKYtA
Setting Battery Maximum Back to Original
https://youtu.be/TDirEoSsSkk
1. FIRST Get your battery capacity!!!
$ adb shell cat /sys/class/power_supply/battery/batt_capacity_max
800
2. Calculate your 100%
800 * 1.2 = 960
3a. Charge battery fully (UI will say 80%):
Use your new 100% value in place of my 960!!
adb shell
$ su
# echo 960 > /sys/class/power_supply/battery/batt_capacity_max
3b. To revert back (and see actual %):
put your old value in place of my 800 here
adb shell
$ su
# echo 800 > /sys/class/power_supply/battery/batt_capacity_max
Warning:
- This is not persistent across reboots (but could be implemented as such)
- This does not change the fact that your battery meter will say 80%
- This confuses your phone into thinking the 80% limit is higher than it actually is
- This could be harmful to your battery life, battery condition, and battery operation
- The Control Chip on the battery itself should prevent any unnecessary charging from occurring
- I'm just a guy on the internet, don't mess with your phone unless your are willing to pay for any mistakes.
How this works:
- The Kernel reads the battery percentage from /sys/class/power_supply/battery/capacity
- We make the maximum battery capacity increase by 20% /sys/class/power_supply/battery/batt_capacity_max (the commands above)
- Kernel reads the battery percentage from /sys/class/power_supply/battery/capacity again and its now 20% lower because of capacity calculations (percentage = used capacity / batt_capacity_max)
- Kernel lets the charging continue to 80% which is in actuality 100%
FAQ
- Does this work?
Yes this works. The explanation is above. Succinctly, these commands trick your kernel into thinking the 80% limit is at 100% of the battery. - Shouldn't we be adding 25% to reach 100% of the battery?
While this is correct, I tested a few percentages and noted that 20% increase will reach 99% battery on my phone. This does not mean it will for everyone. PLEASE BE COGNIZANT OF OVERCHARGING - This isn't working for me, why do the values change?
You must be a superuser in the terminal for these commands to stick. They do not stick across reboots. - This still doesn't work, wah wah wah. I wan't 100%...
I am trying to help the community. If you don't want help you can keep the 80% charge. Multiple people have said it works. If you don't want to try it don't. Blindly saying it doesn't work is only poisoning the well.
Video Guide:
Setting Battery Maximum Past 80%
https://youtu.be/dEdmIDEKYtA
Setting Battery Maximum Back to Original
https://youtu.be/TDirEoSsSkk
Last edited: