title: Always run service in background as root on android
body: <p>According to <a href="https://stackoverflow.com/questions/34573109/how-to-make-an-android-app-to-always-run-in-background">this thread</a> after <em>Android Oreo</em>, <em>Google</em> introduced some background limitations so it's not possible to run a <em>Service</em> always in background without displaying a user notification.</p>
  
  <p>Is it possible to achieve this with root privileges?</p>
  
  <p>EDIT: I see that people are voting to close my question because apparently it looks like it's too broad, but I am running <em>LineageOS</em>, and I would like to put my app to run as system service if possible, and I think that this would be feasible without modifying the source code. For example when installing the OS, I could flash GApps, but it was optional, and they seem to have the functionality that I'm talking about. I am also not expecting you to do all my research for me, and I am willing to accept the answer that points me in the right direction.</p>