Hi all, I have studied the battery management implementation of Android, and found that in the file "com_android_server_BatteryService.cpp", the ACPI paths are hard coded, for example, the AC_ONLINE_PATH is defined as "/sys/class/power_supply/ac/online", BATTERY_CAPACITY_PATH is defined as "/sys/class/power_supply/battery/capacity". But for every device, the ACPI interface is different from each other. For example, for Compal, AC_ONLINE_PATH is "/sys/class/power_supply/ ACAD/online", and there is not a path of BATTERY_CAPACITY_PATH, but there are two paths for it: /sys/class/power_supply/BAT1/charge_full /sys/class/power_supply/BAT1/charge_now
I am creating a generic, configurable solution with defaults configured to be compatible with the original solution . Thanks Tim Intel Software Services Group (SSG) --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
