[android-kernel] Modifying sensor.c, rebuild, and test libsensors.so

2010-08-14 Thread nature lover
Hello, In doing a complete rebuild of the froyo 2.2 source tree, I did not find libsensors.so as having been built. Any one know why? Also, if I were to modify sensors.c located at device/htc/passion- common/libsensors/, what is the best way to rebuild libsensors.so, and test the changes? thanks

Re: [android-kernel] Is there a system call in android kernel to get the power status? like sysinfo can get memory info.

2010-08-14 Thread Dianne Hackborn
Use the ACTION_BATTERY_CHANGED broadcast: http://developer.android.com/reference/android/content/Intent.html#ACTION_BATTERY_CHANGED It is a sticky broadcast, so you can use registerReceiver() to immediately retrieve the last sent value. On Sat, Aug 14, 2010 at 5:54 AM, Gao Jing wrote: > I am so

[android-kernel] Enhancing Android Emulator

2010-08-14 Thread Thisara Rupasinghe
Hi All, I went through the android source to emulate the camera with machine web cam. There I hv identified that, in order to do that I need to change 2 things, 1. The frameworks camera hardware libs 2. The emulator to pipe the web cam into the android emulated system And I have manage to

Re: [android-kernel] Is there a system call in android kernel to get the power status? like sysinfo can get memory info.

2010-08-14 Thread Gao Jing
I am sorry for inappropriately expression, i mean battery status, like how much battery left ? On Sat, Aug 14, 2010 at 9:38 AM, Dianne Hackborn wrote: > Exactly what information are you looking for when you say "power status"? > > On Thu, Aug 12, 2010 at 8:34 PM, Gao Jing wrote: > >> Hi ALL >> >>