warren-bank / Android-Mock-Location

Android app that mocks the GPS and Network location providers.
GNU General Public License v2.0
98 stars 20 forks source link

Feature - Per App Location #19

Open photogsy opened 2 months ago

photogsy commented 2 months ago

It would be great to be able to mock a location but only for certain apps, whilst providing other apps with a genuine location. Is this possible?

warren-bank commented 2 months ago

To the best of my knowledge, mocking location is system-wide. Here is a discussion of users looking for an app with this type of functionality, and nobody was able to suggest any app that provides it.

The client app asks the system for a location, and (if configured) the system asks the mocking app. Since the client app doesn't talk directly to the mocking app.. and the system doesn't provide any metadata about the client app, there's no opportunity to apply conditional filter logic.