doronz88 / pymobiledevice3

Pure python3 implementation for working with iDevices (iPhone, etc...).
https://discord.gg/52mZGC3JXJ
GNU General Public License v3.0
1.5k stars 209 forks source link

"Fix Battery" Option to Force Battery Health Data Resynchronization After Firmware Restore #1278

Open Johnny314 opened 1 week ago

Johnny314 commented 1 week ago

I’d like to request a new feature to be added to the tool. Specifically, I'm looking for a "Fix Battery" option that forces iOS to resynchronize and retrieve fresh battery health data from the Battery Management System (BMS) during or after a firmware restore.

Background: In tools like 3uTools, there is a useful feature called "Fix Battery" that is commonly used after replacing an iPhone battery. This option forces iOS to fetch accurate battery health information (capacity, cycle count, etc.) from the BMS chip, which can fix incorrect or missing battery health statistics in iOS.

Currently, when replacing an iPhone battery or after a firmware restore, iOS may not automatically refresh the battery health status, leading to inaccurate data being displayed in Settings. This feature is particularly useful in cases where:

The battery was recently replaced. Battery health data was corrupted or not displayed properly.

doronz88 commented 1 week ago

I first tried 3utools, and it looks like at least on my iPhone 15 Pro I don't such an option to test it

doronz88 commented 1 week ago

By the looks of it from YouTube, doesn't either a factory-reset or pymobiledevice3 restore update --erase simply does the same?

Johnny314 commented 1 week ago

i tried with update -- erase but it does not update the battery health below is the logs of 3utool Unmounting Filesystem Creating Partition Map Creating Filesystem FIXING BATTERY WEALTH Detecting connection Found a device with mode: Restore Detecting ProductType matching device type through original information Detected iDevice did not exit the last restore process, try to reboot Reboot seems like they are sending something while device in restore mode

doronz88 commented 1 week ago

As I said, I have no way of knowing how this works, as my 3uTools doesn't offer this option at least for my product type.

Johnny314 commented 1 week ago

Capture this is the option in 3u

doronz88 commented 1 week ago

image Doesn't look like this on my version