15 Dec Automating Google Pixel's new 80% charge limit
Google's Pixel phones received a new feature that allows you to [limit the battery charge to 80%](https://9to5google.com/2024/09/13/android-15-qpr1-limit-battery-charging/). Currently on Reddit, some are wondering why anyone would purposely handicap their battery capacity. Others say it's useful for daily usage when their phone is always on the charger. For me, the best use case is when driving.
My car recently got an update which enables wireless Android Auto. Paired with wireless charging, the phone gets hot during a typical drive. If the phone could maintain an 80% charge for the duration of the drive, I believe it would help the phone keep a cooler temperature and be better overall for the phone's health. However, there's no quick toggle for the 80% charge, and going into the battery settings before each drive is pretty inconvenient.
I solved this using [MacroDroid](https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid). The trigger is connecting to my car's Bluetooth. When connected, trigger the action to change a secure system setting. To enable 80% charge limit:
```
settings put secure "charge_optimization_mode" "1"
settings put secure "adaptive_charging_enabled" "0"
```
Adaptive charging should be disabled when the charge limit is enabled, and vice-versa. To disable the 80% charge limit:
```
settings put secure "charge_optimization_mode" "0"
settings put secure "adaptive_charging_enabled" "1"
```
Comments