If the app doesn't support your device, you can collect some info to help.1.) You need adb installed2.) Pull a list of your /sys/class and /sys/devices directoriesCode:adb shell ls -alR /sys/class/ > filesadb shell ls -alR /sys/devices/ >> files3.) Search for current_now or batt_current or BatteryAverageCurrent or power_now and look for the whole path (the interfaces currently used in the app are listed in point C)Code:grep -B20 -i files## example:grep -B20 -i current_now files4.) Try it out. Reading the file gives the current, if lucky.Code:adb shell cat ## example:adb shell cat /sys/class/power_supply/Battery/current_nowIf it gives a value which can be considered as the current (between 0 and 500 in case of a normal USB 2.0 port), then read out the value more times and look if it changes or not.5.) If you think, you found your device's interface file to read the current, then please report it in this thread, with the Model string and other device info together.B.) If your device seems to be supported (no error dialog), but the measured current values are wrong or 0 all the time.You can report this in this forum. You can switch on a debug info bubble (toast) in pre Lollipp devices (Android 4.0.3-4.4.4) by just long-pushing the battery button in the app, make a screenshot and insert the screen shot in your post.debug bubble1 debug bubble2The debug bubble shows the following:The first line is a device info line
List of all available interfaces (path) including the multiplier (a number which is used to scale the row values got from the interface) and the app internal entry number.
The firs interface in the list is the for measurement used one
The debug bubble is also shown, if no interface is found
There are devices with mA interface ( value 10 = 10 mA) and there are devices with uA interface ( value 10000 = 10 000 uA which is 10 mA). The multiplier is used to get the mA value. In the mentioned first case it is 1.0 and in the second case it is 0.001.
Try to find out what is wrong. The multiplier is wrong, or the used interface is wrong. In the second case, please search for a correct interface (point A).
C.) The list of currently scanned file interfaces:
/sys/class/power_supply/ab8500_fg/current_now
/sys/class/power_supply/android-battery/current_now
/sys/class/power_supply/battery/batt_attr_text
/sys/class/power_supply/battery/batt_chg_current
/sys/class/power_supply/battery/batt_current
/sys/class/power_supply/battery/batt_current_adc
/sys/class/power_supply/battery/batt_current_now
/sys/class/power_supply/battery/BatteryAverageCurrent
/sys/class/power_supply/battery/charger_current
/sys/class/power_supply/battery/current_avg
/sys/class/power_supply/battery/current_max
/sys/class/power_supply/battery/current_now
/sys/class/power_supply/Battery/current_now
/sys/class/power_supply/battery/smem_text
/sys/class/power_supply/bq27520/current_now
/sys/class/power_supply/da9052-bat/current_avg
/sys/class/power_supply/ds2784-fuelgauge/current_now
/sys/class/power_supply/max17042-0/current_now
/sys/class/power_supply/max170xx_battery/current_now
/sys/devices/platform/battery/power_supply/battery/BatteryAverageCurrent
/sys/devices/platform/cpcap_battery/power_supply/usb/current_now
/sys/devices/platform/ds2784-battery/getcurrent
/sys/devices/platform/i2c-adapter/i2c-0/0-0036/power_supply/battery/current_now
/sys/devices/platform/i2c-adapter/i2c-0/0-0036/power_supply/ds2746-battery/current_now
/sys/devices/platform/msm-charger/power_supply/battery_gauge/current_now
/sys/devices/platform/mt6320-battery/power_supply/battery/BatteryAverageCurrent
/sys/devices/platform/mt6329-battery/FG_Battery_CurrentConsumption
/sys/EcControl/BatCurrent
đang được dịch, vui lòng đợi..