G
G
glodev2019-12-03 08:23:49
Android
glodev, 2019-12-03 08:23:49

Implementation of writing a daemon for android?

Good afternoon, moving forward in development in c ++, and interests towards gnu linux. There was a crazy idea to implement a daemon for the phone to start blinking the LED, without using java. The implementation in words is clear, we write a demon, we register init at a high level for start and a low one for stop. But how to give up on this, maybe someone found literature or encountered a similar one, I would like to receive parting words.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2019-12-03
@gbg

The problem is that Linux on the phone is not loaded via init.d.
You will have to build your own OS image for the phone and replace it through recovery, for example (it depends heavily on the phone).
And problem two - to control the peripherals, you need blobs from the phone manufacturer, of which only / dev / led can be sewn into the kernel, and everything else is just pieces that can only be called through java.
The verdict - to develop something real for android that does not require the user to root the phone and change the firmware on it, this method is not suitable.
For the fan - wellcome, but you will have to fuck notably.
You can start by simply trying to run Linux on the same kernel as the android - for this you need a rooted phone and this is it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question