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.