I don't develop apps for Android, but I do for iOS. I will assume that my operating systems knowledge though is from Windows/Unix. To use Windows terminology, an app is running either as 'manually launcher's or as a service (system launched). Android (at least my Honor phone and any tablet I ever used) gives me the ability to manually intervene and change the auto-launch and the background running. I windows that would be things found (and 'killed') in SysInternals AutoRuns.
I don't leave 'everything on default' in the power/background running settings, and thus I don't give the apps the option to do what the device decidsd. Plus with the firewall I Block all the nasties (e.g. 31.13.x.x - FB, or the various IPs for ads and tracking).