[Q] Android apps/services and users that run them
Could anyone shed some light on how Android establishes what user runs certain apps (or services) when executed, please?
Here is the situation:
I have a service that runs at boot, controlled by and app called SyncMe. What it does is essentially synchronising my NAS music folder to a local storage (on a SSD). The service seems to be run by the user u0_a70, and when the folders are created, they are under an unmask 077, essentially giving access to the folders to that one user only.
Now I have my music player (MortPlayer), running on user u0_a69, which obviously has no access to the folders. Not ideal.
How can I run the sync service with the same u0_a69 user, or the other way around? Alternatively, is there any way of defining a umask specific to one user only (so that the folders are created with a different set of permissions?)
Thanks in advance,