09-01-2023, 06:23 PM
Also, the battery has no software that you could code. (There is probably some hardcoded firmware in a ROM in it, there is hardly anything without firmware these days, but that is not something you can, or even want to, modify.) When we speak about coding to improve battery usage, we do not mean to code anything in the battery itself, but to optimize all the code running on the CPU for lower battery use. That is long, tedious work (e.g., Android jumps through big hoops to save power, forcing apps to save their state and shut down and replacing them with a screenshot in the UI to give the user the illusion that they are still running), and there is obviously a physical limit to how far you can optimize power consumption. (The SoC in the PinePhone simply consumes more power than the ones in most Android phones, and the SoC in the PinePhone Pro even more.) So this is not just a matter of "updating the battery". (The only kind of "update" that could help there would be an updated physical battery design with more capacity, nothing you can do in software. You might even be able to find higher-capacity third-party batteries that fit, but the wiki now explicitly warns about those because at least some of them can deliver too much power at once or accept too much charging power at once, frying other components in the phone. And personally, all the compatible third-party batteries I was able to find had exactly the same capacity as the Pine64 one anyway.)