android:从不支持的设备获取即时电流

android: Get instant current from NON-supported devices

我看到有几个 android 设备不支持 BATTERY_PROPERTY_CURRENT_NOW 获取瞬时电流。

有什么方法可以获得这些设备的即时电池电流值吗?如果我们扎根他们?

是这些设备的硬件限制还是软件限制?

Most properties are read from kernel power_supply subsystem attributes of similar names. However, the exact properties, resolution of property values, and update frequency available for a specific device depend on:

Fuel gauge hardware, such as a Summit SMB347 or Maxim MAX17050.

Fuel gauge-to-system connection, such as the value of external current sense resistors.

Fuel gauge chip software configuration, such as values chosen for average current computation intervals in the kernel driver.

Official Documentation

这意味着是的,这是一个 hardware/software 限制。这取决于