[android-kernel] Hacking MIC and GPS devices on Android

2012-06-06 Thread DK
I would like to hack in to two andorid devices, mic and the GPS device. With the mic I want to get the back ground noise. Measure the intensity of sound for ex - lets say frequency or some dB value (which ever is supported). With GPS obviously the location cordinates. On the android platform it is

[android-kernel] renice processes

2012-05-31 Thread DK
Hi, I want to renice the value of a process depending on a sensor value(GPS), with out issuing the renice cmd. How can this be achieved? writing a kernel module? a shell script(are they possible??) Regards, Kanishka -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://gro

[android-kernel] Re: Configuring cgroups

2012-05-31 Thread DK
g as root. > > >> Ken > > >> On Mon, May 28, 2012 at 6:55 AM, Kanishka Ariyapala < > >> kanishka...@gmail.com> wrote: > > >>> after some googling came to know that android framework is it self using > >>> cgroups. Is it the reason for t

[android-kernel] Configuring cgroups

2012-05-28 Thread DK
Hi, I have trouble configuring cgroups, please help! When I issue the following command I get the error "mount: Device or resource busy" # mount -t cgroup -ocpu none /dev/cpuctl These are the configurations options that I have enabled. CONFIG_GROUP_SCHED=y CONFIG_FAIR_GROUP_SCHED=y CONFIG_RT_GR

[android-kernel] implementing custom system calls

2012-05-12 Thread DK
Hi, I am trying to implement a system call for testing, called test1. I am getting this error. Can someone tell how to over come this. arch/arm/kernel/built-in.o: In function `__sys_trace_return': io.c:(.text+0xd28): undefined reference to `sys_test1' Thanks DK -- unsubscribe: andr

[android-kernel] swap memory

2012-05-05 Thread DK
Hi, How dose android handle swap in/ swap out of its applications on memory? What is the function call that handles this(at kernel level)? Thanks in advance. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel

[android-kernel] Re: Android Scheduler

2012-04-25 Thread DK
Thanks Tim for the insights. I thought pre-scheduling would, putting it into the run queue would load the apps in to memory because they are in the running state(not actually running but ready to run) isn't that the case. My question dosen't pre-scheduling do the read ahead? Thanks for pointing th

[android-kernel] Android GPS sensor

2012-04-23 Thread DK
Hi, Is it possible to access the GPS device driver (inside the kernel) and get the sensor values from the device driver? -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel

[android-kernel] Re: Android Scheduler

2012-04-23 Thread DK
laced more to the left, and thus be > scheduled more quickly. > > Regards, > Deborah > > 2012/4/23 Tsai Gaggery > > > > > > > > > I think android has no its own scheduler. It relies on Linux kernel to > > do the process scheduling. Currently, th

[android-kernel] Re: Android Scheduler

2012-04-23 Thread DK
: > I thinkandroidhas no its ownscheduler. It relies on Linux kernel to > do the process scheduling. Currently, the default Linuxscheduleris > CFS. > > 2012/4/23 DK : > > >Androidscheduleris using the Completely Fair Scheduling(CFS) right? > > I would like to know how

[android-kernel] Accelerometer Access at kernel level

2012-04-23 Thread DK
How to access the accelerometer at the kernel level and read its values. For example to identify if the user is standing(stationary) or driving (moving). I think I think will have to deal with device drivers, found this post http://processors.wiki.ti.com/index.php/Android_Sensor_PortingGuide but it

[android-kernel] Android Scheduler

2012-04-23 Thread DK
Android scheduler is using the Completely Fair Scheduling(CFS) right? I would like to know how to add a process (application) to the rbtree (the runqueue)? I would like to know how this can be done, before the user starting that process. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com

[android-kernel] Re: Getting the Kernel

2012-02-13 Thread DK
Hi, I had a similar issue in downloading the kernel source from http://source.android.com/source/downloading.html . What I did after the successful download was to checkout the right branch. Then got the source files. git branch -r (will list the remote branches) git checkout -t origin/android-g