[Sean McNeil <[email protected]>] > > The power drivers have their own interface for that. You should be using > power_supply_changed(). Also, you probably don't have the device names > to what Android is looking for. Android looks for > > /sys/class/power/battery > /sys/class/power/ac > /sys/class/power/usb > > Use logcat and see what is going on when it tries to read the initial > battery values and starts watching for uevents.
Android *really* should scan /sys/class/power to see what's there and not hardcode the power supply names. This is a bug but has not been a high priority to fix. Brian --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
