glpi-project / android-inventory-library

Inventory client library written in Java for developing applications on Android
GNU General Public License v3.0
16 stars 22 forks source link

Enhance specs for batteries #56

Closed ajsb85 closed 6 years ago

ajsb85 commented 7 years ago

Hi, @rafaelje

This is a report from @g-bougard

Android - Inventory Agent by @flyve-mdm 0.1.0:

<BATTERIES>
  <CHEMISTRY>Li-ion</CHEMISTRY>
  <TEMPERATURE>0.0c</TEMPERATURE>
  <VOLTAGE>4.278V</VOLTAGE>
  <LEVEL>99%</LEVEL>
  <HEALTH>Unknown</HEALTH>
  <STATUS>Dis-charging</STATUS>
</BATTERIES>

Linux FusionInventory 2.4.x (would be after related PR merged):

<BATTERIES>
  <NAME>SR Real Battery</NAME>
  <CAPACITY>28.0763 Wh</CAPACITY>
  <VOLTAGE>4.109V</VOLTAGE>
  <CHEMISTRY>lithium-ion</CHEMISTRY>
  <SERIAL>123456789</SERIAL>
  <MANUFACTURER>Intel SR 1</MANUFACTURER>
</BATTERIES>

Specs seems not followed by Android agent only CHEMISTRY & VOLTAGE seems common.

rafaelje commented 6 years ago

This is the official documentation of battery information API on Android: https://developer.android.com/reference/android/os/BatteryManager.html

Ivans51 commented 6 years ago

Hi @rafaelje. This issue was resolved, PR https://github.com/flyve-mdm/android-inventory-library/pull/157