Hi, To integrate battery into framework , if the sys fs entries are changing or with little modifications , the place you need to modify is the JNI layer of the frameworks.
com_android_server_BatteryService.cpp, is the file you need to modify. And usually the Battery stats is updated based on the uevent from the battery kernel driver. So you need to provide that from the Kernel side. Regards, Ramya. On Wed, Apr 11, 2012 at 7:47 PM, Ashwin Bihari <[email protected]> wrote: > Venkat, > > The battery information should show up in > /sys/class/power_supply/<battery name> and Android will automatically > pick it up when the "hw.nopm" is set to "false" in your init.rc file.. > > -- Ashwin > > > > On Wed, Apr 11, 2012 at 6:02 AM, venkat k raju <[email protected]> > wrote: > > Hi all, > > > > how to integrate the Battery to android frame work? > > > > please anybody suggest me > > > > thanks in advance!! > > > > > > > > -- > > thanks&Regards > > k.v.raju > > > > -- > > You received this message because you are subscribed to the Google Groups > > "rowboat" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/rowboat?hl=en. > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-porting > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
