Android daemon process

Is it possible (without violating any licenses) to write my own C / C ++ application on top of the Android OS and make it work as a daemon process?

There are already several daemon process processes that can be seen with the ps command, the most important part of the law for me. As well as the lack of documentation on how to do this.

For the part of the letter, I assume that you can use the basic Linux programming concepts, since Android supports at least some standard Posix API. To start it when the phone boots up, some changes, of course, are also required in init.

I have no plans to have this application in the Android Market, so installing it manually on the phone is not a problem. So far, this does not require recompiling the entire OS or kernel.

I really appreciate all the information on this topic, as it is scarce.

Thanks.

+6
android
source share
2 answers

Is it possible (without any license) to write your own C / C ++ application on top of the Android OS and make it work as a daemon process?

Loose.

As well as the lack of documentation on how to do this.

Because you should not do this, except by changing the firmware.

To start it when the phone boots up, some changes, of course, are also required in init.

This will be possible only on the root phone (at best) or by changing the firmware (at worst).

Android NDK is designed to create libraries for connecting to Java applications through JNI. If you are looking for a universal Linux environment, Android is not the answer.

+4
source share

Legally, this is not a problem; they are not Apple.

The application principles explain how to do this in java, the NDK explain how to do things in C / C ++, I think you can somehow figure it out.

+2
source share

All Articles