mcastillof / FakeTraveler

Fake where your phone is located (Mock location for Android).
GNU General Public License v3.0
742 stars 94 forks source link

App stops fake location after a while silently #64

Open systemoperator opened 1 year ago

systemoperator commented 1 year ago

Describe the bug When the fake location is enabled, after a while, the app is terminated, even though all power saving options for this app are disabled. Other applications, which are configured the same way, properly run indefinitely in the background. To give an idea concerning the timespan, the app seems to be terminated within 5 to 10 minutes.

Information

To Reproduce Steps to reproduce the behavior:

  1. Disable all power saving options and allow running Fake Traveller in the backround
  2. Start Fake Traveller
  3. Apply fake location
  4. Let it run in the background while doing other things.
  5. When opening the application later on, the APPLY button is shown again, meaning, the location is not active anymore.

Expected behavior The set fake location defined with Fake Traveler should persist, until the fake location is stopped from within the app.

Screenshots

Logcat

Additional context

JonnyTech commented 1 year ago

image

How many times do you mock the location? The default is 1. So it only does it once then stops. Set it to 0.

systemoperator commented 1 year ago

How many times do you mock the location? The default is 1. So it only does it once then stops. Set it to 0.

Thank you for your rapid response. Both values are already set to zero.

JonnyTech commented 1 year ago

I do not recommend setting the interval to zero. Not sure what that would do to be honest. I find that 30s or more is usually sufficient.

systemoperator commented 1 year ago

I do not recommend setting the interval to zero. Not sure what that would do to be honest. I find that 30s or more is usually sufficient.

For some reason, sometimes the position is sporadically overwritten with the real GPS position, if it is not set very frequently. But I will again try it, with an increased time interval, starting with 1s.

JonnyTech commented 1 year ago

IIRC, on Android 9 I had to disable location access in Android settings first, then real location would not leak.

systemoperator commented 1 year ago

IIRC, on Android 9 I had to disable location access in Android settings first, then real location would not leak.

If I set the refresh interval to 1s, the location sporadically shortly jumps every 15s to the real location. If I subsequently open Settings > Security & privacy > Location access and disable Access my location on Android 9, then other apps request to enable this setting to be able to use them. :thinking:

JonnyTech commented 1 year ago

Location is systemwide. You cannot assign different locations to diffetent apps. The Android system provides the location. Whilst spoofing, FakeTraveler provides the Android system the fake location. No apps communicate directly with FakeTraveller. So you cannot have it both ways. Either everything sees the real location or the spoofed one.

systemoperator commented 1 year ago

Location is systemwide. You cannot assign different locations to diffetent apps. The Android system provides the location. Whilst spoofing, FakeTraveler provides the Android system the fake location. No apps communicate directly with FakeTraveller. So you cannot have it both ways. Either everything sees the real location or the spoofed one.

It would be ok for me, to only use the spoofed location. I have already tried several fake location apps, but each app had issues to shortly leak the real position sporadically. If I disable the aforementioned location access system-wide in the Android settings and then enable Fake Traveler, several apps complain, that the android setting for location access must be enabled, otherwise they do not work. Or did you mean a different Android setting?

DxBONESxBACK commented 11 months ago

I'm having the same issue and was disappointed that I had to revert back to the LC app so I could stream a football game. Screenshot_20231120-084519.png