Is it possible (without violating any licenses) to write a native C/C++ application on top of the Android OS and make it run as a daemon process?
There are already several daemon process' running which one can see with the 'ps' command, the legal part concerns me the most. And also the lack of documentation on how to exactly do this.
For the writing part, I guess one could use basic Linux programming concepts, since Android supports at least to some level the standard Posix API. To make it run as the phone boots, some modifications is of course required in init as well.
I have no plans to have this app in the Android Market, so installing it manually to the phone is not a problem. As long as it does not require re-compiling the whole OS or kernel.
I really appreciate all info on this topic, since there's isn't much available.
Thanks.
In computing, a daemon (pronounced DEE-muhn) is a program that runs continuously as a background process and wakes up to handle periodic service requests, which often come from remote processes.
A daemon is a service process that runs in the background and supervises the system or provides functionality to other processes. Traditionally, daemons are implemented following a scheme originating in SysV Unix.
A daemon (usually pronounced as: day-mon , but sometimes pronounced as to rhyme with diamond ) is a program with a unique purpose. They are utility programs that run silently in the background to monitor and take care of certain subsystems to ensure that the operating system runs properly.
Daemons are processes that run unattended. They are constantly in the background and are available at all times. Daemons are usually started when the system starts, and they run until the system stops. A daemon process typically performs system services and is available at all times to more than one task or user.
Is it possible (without violating any licenses) to write a native C/C++ application on top of the Android OS and make it run as a daemon process?
Not cleanly.
And also the lack of documentation on how to exactly do this.
Because you're not supposed to be doing this, except by modifying the firmware.
To make it run as the phone boots, some modifications is of course required in init as well.
Which will only be possible on a rooted phone (at best) or via modifying the firmware (at worst).
Android's NDK is designed to create libraries to connect to Java applications via the JNI. If you are looking for a general-purpose Linux environment, Android is not the answer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With