How to run my service on a rooted Android 10 as a root?
0
votes
0
answers
330
views
I have a rooted Android 10. And I've written a service which I want to run under too, in background. A service uses a microphone and location.
I've not found any information of how to run a service on a rooted device **under root.** I've found some about running some commands in a service under root, though, but it may be only a part of what I need.
How to do it?
*update #1*
* By "service" I mean "a class inherited from Service"
* I am not aware about the differencess **in my case** in regards to an init service, a framework service, or just a normal background process. However, I need it to run forever. I guess that it'd be an init service.
* It should be be restarted if it fails, or it it gets, for some reason, killed by the system.
* It's written in Kotlin. Which is to say, in Java
* As I've mentioned, I've rooted my device
Asked by barugaggi
(1 rep)
Feb 14, 2024, 09:27 PM
Last activity: Feb 15, 2024, 01:22 PM
Last activity: Feb 15, 2024, 01:22 PM