mcastillof / FakeTraveler

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

position always jumping to real position #10

Open Flexmaen opened 5 years ago

Flexmaen commented 5 years ago

Using a Keyone (with Android 7.1.1), I opend Google Maps and the position always jumped to the real position within a few seconds. Depending on the setting it permanentely changed between emulated and real position, but it was not possible at all to hide your real position.

mcastillof commented 5 years ago

Thanks for reporting the problem. I don't have Gapps installed, but I will borrow a phone to do some test. Meanwhile, can you try with network location and GPS on and off?

azzopolo commented 5 years ago

I try with network location and GPS. Both dont change anyting. İnstagram, phone witgets location is change but google map is still my own location.

mcastillof commented 5 years ago

What if you turn off network location and also turn off GPS?

azzopolo commented 5 years ago

When ı turn off GPS only with wi-fi 1 second or more less time is show mock location and again own locatin. When turn wi-fi try with only Mobile gps its SAME

azzopolo commented 5 years ago

last question: static final int INFINITE = 2;

is it possible to remove timer. Can it work untill app is closed?

mcastillof commented 5 years ago

Ok. I have confirmed the problem with an old phone. I was searching in StackOverflow and it seems that is posible to fool Google Maps. This guy seems to get the problem solved https://stackoverflow.com/a/15190788.

mcastillof commented 5 years ago

@azzopolo press the "..." button, and set 0 as how many times (this means that it should mock the location for ever), and maybe 1 as seconds of interval (that EditText only accepts positive integers, but I can change it to a positive double if it is really needed).

mcastillof commented 5 years ago

With location mode set to battery saving (network) and with WIFI network off (maybe with cellular data off too, but can't test it, because this phone doesn't have a SIM card), Google Maps seems fooled. I'm using 10 seconds between every mock.

azzopolo commented 5 years ago

in last release 1.5 version is okey. Working good. Not jumping. Thanks

mcastillof commented 5 years ago

really? could you please test with all combinations, battery saving mode (with internet and without), high accuracy, only device?? what time interval are you using?

azzopolo commented 5 years ago

@mcastillof yes ı testing now. Before mock location is changing immediatly at google map. Now is google map location is changed and dont jump own location again. İts still at mock location.

mcastillof commented 5 years ago

If it is working, it may be related to the changes in file app/src/main/java/cl/coders/faketraveler/MockLocationProvider.java, lines 45 and below in the last commit.

azzopolo commented 5 years ago

Google maps its ok but other app that use location like wheather widget,instagram etc is change again 10 seconds later.. i remove timer but change..

elgordisimo commented 5 years ago

First, thank you for this app.

I have a similar problem. If I rotate the screen then the button changes from 'stop' to 'apply' and my real location is leaked. I then have to click the 'apply' button again. Locking the screen rotation is a workaround to stop this from happening.

I'm using v1.6, Android 7.0, Moto G5

bob333 commented 5 years ago

@mcastillof Thanks so much for this app. Tested on google maps(wifi and internet is off during the test) and it switches the screen b/w my fake location and real location every 3 seconds.

Tested on app version 1.6 and android version 6.0.

  1. Set "How many times to mock" = 0
  2. Set "How many seconds b/w mock" = 1
  3. Set the lat & long and pressed apply
  4. Mock location Applied -> Mock Service Running Toast appeared
  5. Open google maps and it keeps switching the location b/w my real location and fake location every 3 seconds.
WaterSibilantFalling commented 5 years ago

l had this problem too.

The solution was fixing my phone's (default) setting: Settings > Security & Location > Location ( long tap) > .Scanning > Turn off " Bluetooth scanning" and "WiFi Scanning"