【发布时间】:2020-08-04 13:41:26
【问题描述】:
我已经尝试过 libmobiledevice 工具,但它只返回有限的电池信息。我正在寻找有关 iPhone 电池的更多详细信息,例如电池电流容量、当前温度、当前电压、电池电量等
通过命令行,我们可以使用 libimobiledevice 工具获取 iOS 手机的电池详细信息。 在工具里面使用命令:
./ideviceinfo -q com.apple.mobile.battery
它会返回如下内容:
BatteryCurrentCapacity: 30
BatteryIsCharging: true
ExternalChargeCapable: true
ExternalConnected: true
FullyCharged: false
GasGaugeCapability: true
【问题讨论】:
标签: ios iphone command-line battery