example test: (given in http://groups.google.com/group/android-kernel/browse_thread/thread/c60a585802888a43/5a71d6462cc09072)
1. Start an activity in process A. 2. Start a service in process B. 3. Start another activity in process C. Now process A is a background process, B is a service, and C is foreground. If C starts using memory, A should be killed before B which is killed before C. It is tricky however to put this together so it works as a unit test with dependable behavior. On Feb 15, 6:25 pm, Chakishante <chakisha...@free.fr> wrote: > Hi, > > On my platform, I have a native service (launched by init.rc) which is > needed to initiate communicationwith the modem before rild is > initialized. (Modem communication goes through TTY devices). If this > service was to exit or die, TTY's opened by rild would become invalid > and rild might crash altogether. > > I heard that Android has a built-in mechanism which kills processes in > low-memory situations. Does this also apply to native services > launched from init.rc ? Could this service get killed ... ? > > Thanks, > Chaki -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting