Hello
Sometimes some obnoxious apps demand location to be available (otherwise they just don't launch), while I'd rather not give them my location.
Currently only the owner profile allows setting a mock location app in developer settings. The problem is that it seems that the mock location app can get killed (or be paused when going into background?) when the owner profile is switched and thus other profiles just do not get the mock location at all - Google maps for instance just hangs trying to determine location, even though this location mocking app is set to "run unrestricted" in settings.
Would it be technically difficult to implement location mocking per-profile? I suppose architecturally Android is built in a way that location should not be mocked for other profiles, as this is just a feature that was supposed to help with development of the location-aware apps (which is usually done on the owner profile)?