prasannatsm
prasannatsm

Reputation: 960

How to stop android system and launch a particular application in Android

I have written an application in C, statically linked without using any android services or framework. It just uses API provided by kernel and libc. I want to stop all android services, framework and just launch my application when some event occurs. Is there a way to modify android's init.rc to do this?

Note: I am modifying AOSP so modifying any part of android is possible.

Upvotes: 2

Views: 675

Answers (2)

vkumar
vkumar

Reputation: 169

Add your native application as a service in init.rc and remove all other serivces in init.rc. and look at the init code in system/core/init/ hope this helps

Upvotes: 0

Mattias Isegran Bergander
Mattias Isegran Bergander

Reputation: 11909

The zygote process (app_process binary in system/bin) needs to be removed from init.rc or just renamed or similar.

I haven't tried this myself but thought about it before and googled, found the interesting link about it again: http://vinnysoft.blogspot.se/2009/12/zygote-system-process.html

Seems to be the same still: http://forum.xda-developers.com/showthread.php?t=2132607

Upvotes: 0

Related Questions