[Discussion] Location Mocking For 5.1.1 - Xposed Framework Development

Hi,
I've noticed simply mocking GPS location on apps like Fake GPS or Xposed Module like XPrivacy no longer works for modern Android apps including Google Map, Uber, or Baidu Map etc. This is because they all have access to approximate location via network (in short, it detects your IP address or your nearest cellphone tower and use them to determine your location). I have tried to restrict these apps to access my network via XPrivacy and it fails to work... I don't know why... I have also cleared my Google location history.
I like to know if anyone figured our how to mock locations with modern apps on 5.1.1?

aeroxy said:
Hi,
I'am developing a similar application and i can't hook Google Maps location my application start search my location and never stops searching. I've a database with gps fake locations and mobile networks towers locations. You find a solution?
Best Regards
aeroxy said:
Hi,
I've noticed simply mocking GPS location on apps like Fake GPS or Xposed Module like XPrivacy no longer works for modern Android apps including Google Map, Uber, or Baidu Map etc. This is because they all have access to approximate location via network (in short, it detects your IP address or your nearest cellphone tower and use them to determine your location). I have tried to restrict these apps to access my network via XPrivacy and it fails to work... I don't know why... I have also cleared my Google location history.
I like to know if anyone figured our how to mock locations with modern apps on 5.1.1?
Click to expand...
Click to collapse
Click to expand...
Click to collapse

Related

To run GPS software is a separate GPS receiver needed or is built in to the phone?

hoping it's built in.
theres no GPS build into the phone, just download google maps it has a gsp program that works pretty damn well
thanks
oh well there went a lot of wasted time.
D-ville Solja said:
theres no GPS build into the phone, just download google maps it has a gsp program that works pretty damn well
Click to expand...
Click to collapse
how does google maps connect?
It can use an external GPS receiver over bluetooth or cell-tower triangulation to put you within a few hundred meters of accuracy.
Many time it puts me within 50 meters
1wired1 said:
how does google maps connect?
Click to expand...
Click to collapse
and sometimes it doesnt work at all (says no network coverage) but you need internet It will tell how much data you are using
What would I need to use triangulation? Do you need a special account with a service or something?
----------------
OK - I updated Google GMM to version 2 but My Location still doesn't work for me even thoough there is my location data in the About screen.
GJSmith3rd said:
What would I need to use triangulation? Do you need a special account with a service or something?
----------------
OK - I updated Google GMM to version 2 but My Location still doesn't work for me even thoough there is my location data in the About screen.
Click to expand...
Click to collapse
Cell Phone Tower Triangulation only needs an internet connection, cell service and a few towers around you in order to determine your APPROXIMATE location. It will typically be within 1000 meters or so.
You need internet service in order to use this. For example: I can connect to my (or another) WiFi router and use the app assuming that there are enough towers around me to do the triangulation. You can also use your phone's internet service (if you have it) as well and get the same results.
GJSmith3rd said:
What would I need to use triangulation? Do you need a special account with a service or something?
----------------
OK - I updated Google GMM to version 2 but My Location still doesn't work for me even thoough there is my location data in the About screen.
Click to expand...
Click to collapse
You also need to application unlock your Dash for the "My Location" feature to work properly on the Dash.

does gps only use any data? worried about overseas charges

i'm off on hols tomorrow (cuba) and want to log a few trecks with gps. mobile data will be off and airplane mode on.
in that scenario will gps count as data usage? i assume not but want to be sure
i plan on using mytracks or jogtracker to track my course. it'll only store gps data afaik but will be overlayed on google maps once i've uploaded it after coming home, or if i find wifi over there.
That won't work, It has to download the maps themselves from Google Maps and the GPS uses the web to assist it.
I used OpenGPS abroad (which works in very similar way) with Mobile Network disabled and was only collecting GPS data.
The app tracked my positions, drew the line but and Google Maps were not loaded.
So yes, it should work - as long as you keep Mobile Network disabled you will not be charged for pure GPS data usage.
And you can download the Google Maps layer once you come home.
ferus said:
I used OpenGPS abroad (which works in very similar way) with Mobile Network disabled and was only collecting GPS data.
The app tracked my positions, drew the line but and Google Maps were not loaded.
So yes, it should work - as long as you keep Mobile Network disabled you will not be charged for pure GPS data usage.
And you can download the Google Maps layer once you come home.
Click to expand...
Click to collapse
Ignoreme - completely misread that...
thanks guys.
ferus, sounds like jogtracker/my tracks that doesn't it? i guess they all just show you pretty much the same info anyways
off to a fair few places and want to be able to look at maps when i got home and see where i trekked across.
hope this works
GPS abroad
I turn off roaming data while abroad as very expensive but I do use GPS and Mapdroyd for location based apps. Mapdroyd stores maps on SD card. Some countries have better detail than others. Works on aircraft as well.
David
Cactus42 said:
That won't work, It has to download the maps themselves from Google Maps and the GPS uses the web to assist it.
Click to expand...
Click to collapse
No, GPS will work fine offline and My Tracks will be fine without any data connection. I've personally tried that, you just won't get an overlay but it'll record the tracks. You can see the track later with an overlay on My Tracks or on a computer.
what may happen is the google maps crying "need data connection" though. So you'd be better off installing the brut.mod anyway
got the brut mod.
anyway to download maps for a place before i actually go there? ot my sd card i mean so brut has all the maps anyway

[Q] Fake location services (GPS) for FTV?

I have an application that is looking for a GPS (location services) to be enabled in order to watch/stream from that site. Is there a way a rooted FTV can be fooled into thinking it has a GPS since it clearly doesn't?
I'm not sure a location spoofer would work since the app (NHL GameCenter) is looking for the "location services" first, and probably the location 2nd.
Thanks in advance for any suggestion.
DaveTO said:
I have an application that is looking for a GPS (location services) to be enabled in order to watch/stream from that site. Is there a way a rooted FTV can be fooled into thinking it has a GPS since it clearly doesn't?
I'm not sure a location spoofer would work since the app (NHL GameCenter) is looking for the "location services" first, and probably the location 2nd.
Thanks in advance for any suggestion.
Click to expand...
Click to collapse
http://forum.xda-developers.com/fire-tv/help/how-to-enable-location-services-fire-tv-t2908270
That will turn the stuff on, as for spoofing it I have no idea, sure there is ways. I'd google it since that wouldn't necessary be AFTV specific.

Gps is not accurate!

I used fake gps locator application. After using it i realised google maps jumps to fake location and doesn't go back to real location. I have disabled mock location and uninstalled fake gps app. Even tried gps fix apps. But none of them works. Do anyone has an idea to fix it?

Lineage 17 GPS question

Unlike many modern versions of Android, I can find no three-tiered setting for GPS accuracy. I'm looking to set it to "Device Only" but it's either off or on, with a few additional location options but nothing more for GPS.
I'm using lineage 17, the second to last update, on a Samsung Tab 4 and I just want to restrict the device to the system GPS app GPS I've set (but it keeps drifting).
neocortex08 said:
Unlike many modern versions of Android, I can find no three-tiered setting for GPS accuracy. I'm looking to set it to "Device Only" but it's either off or on, with a few additional location options but nothing more for GPS.
I'm using lineage 17, the second to last update, on a Samsung Tab 4 and I just want to restrict the device to the system GPS app GPS I've set (but it keeps drifting).
Click to expand...
Click to collapse
I don't see any android 10 distro with the old settings (high precision/ device only/energy saving)
GApps installed?
kurtn said:
I don't see any android 10 distro with the old settings (high precision/ device only/energy saving)
GApps installed?
Click to expand...
Click to collapse
Yes, Gapps installed and working well (version for Android 10, nano),but I'm not sure google settings would change what would be in the device system settings. I guess I'm just looking for some way to force that missing setting without having to resort to tin foil around the device.
neocortex08 said:
Yes, Gapps installed and working well (version for Android 10, nano),but I'm not sure google settings would change what would be in the device system settings. I guess I'm just looking for some way to force that missing setting without having to reset to tin foil around the device.
Click to expand...
Click to collapse
No matter what settings you change, Google knows your location.
kurtn said:
No matter what settings you change, Google knows your location.
Click to expand...
Click to collapse
I'm not tin-foil-hat-concerned with Google knowing my location; I'm referring to the systemized GPS app I installed to be able to determine the location I set. Which it can currently, and can usually continue to do when I can set the device to take GPS from "device only". In this case it shows me on the map "rubberbanding" between my actual location and the location I've set about 100 feet away. This is because the OS is allowing the device to try and locate its own location.
neocortex08 said:
I'm not tin-foil-hat-concerned with Google knowing my location; I'm referring to the systemized GPS app I installed to be able to determine the location I set. Which it can currently, and can usually continue to do when I can set the device to take GPS from "device only". In this case it shows me on the map "rubberbanding" between my actual location and the location I've set about 100 feet away. This is because the OS is allowing the device to try and locate its own location.
Click to expand...
Click to collapse
Oh, location spoofing
https://f-droid.org/app/com.wesaphzt.privatelocation
GPS drains battery
With previous (before 17) it was possible to set the location service to be switched on, but only use cell data.
When I use the gps device it drains my battery much faster.
Therefore: How can I leave the location service on, but DO NOT USE the gps device in LOS 17 ????
Thanks in advance
Chris
Chris56 said:
How can I leave the location service on, but DO NOT USE the gps device in LOS 17 ????
Click to expand...
Click to collapse
+1
luckysoul777 said:
+1
Click to expand...
Click to collapse
Do you try to spoof your location? And why? What location providers do you have? GApps?
I guess your reply refers to my question.
Maybe I was not clear.
With former LOS versions I was able to explicitly choose whether to use the (battery draining) gps receiver for my location or not.
I have several other sources of location information (gsm cell based and wifi based) usually with less accuracy. But I may prefer theses under certain circumstances because of less power consumption. I Don't use google but microg.
kurtn said:
Do you try to spoof your location? And why? What location providers do you have? GApps?
Click to expand...
Click to collapse
No. I am not trying to spoof anything. I have an automation program called Tasker on my S4. When I was on stock Samsung ROM (5.0.1), I was able to use the "location mode" in Tasker to switch between high accuracy and battery save. If Tasker detected I was running Google Maps, it switched on high accuracy. If not, it switched over to battery save. From what I can tell, high accuracy used GPS + network and battery save used network only.
Now, I'm on LOS 17.1 and battery save would turn on GPS too. It seems the only way to not use GPS is to turn off location mode altogether. This makes me wonder what the differences are between Device Only and Battery Save modes. Since I cannot tell, I am assuming both modes are provided for backward compatibility to Tasker users but the underlining Android 10 doesn't differentiate them.
I am suspecting with Android 10, there are only 3 modes.
* GPS + network
* GPS
* OFF
Thus, if one needs the location service, GPS must be used.
I raised this question elsewhere. Some people actually told me that GPS doesn't consume much power if it's just turned on but not being used, e.g. by Google Maps. I have no way to verify if they are right.
luckysoul777 said:
No. I am not trying to spoof anything. I have an automation program called Tasker on my S4. When I was on stock Samsung ROM (5.0.1), I was able to use the "location mode" in Tasker to switch between high accuracy and battery save. If Tasker detected I was running Google Maps, it switched on high accuracy. If not, it switched over to battery save. From what I can tell, high accuracy used GPS + network and battery save used network only.
Now, I'm on LOS 17.1 and battery save would turn on GPS too. It seems the only way to not use GPS is to turn off location mode altogether. This makes me wonder what the differences are between Device Only and Battery Save modes. Since I cannot tell, I am assuming both modes are provided for backward compatibility to Tasker users but the underlining Android 10 doesn't differentiate them.
I am suspecting with Android 10, there are only 3 modes.
* GPS + network
* GPS
* OFF
Thus, if one needs the location service, GPS must be used.
I raised this question elsewhere. Some people actually told me that GPS doesn't consume much power if it's just turned on but not being used, e.g. by Google Maps. I have no way to verify if they are right.
Click to expand...
Click to collapse
Network location is not part of lineageOS. You can add it with GApps or microG. Have you?
Enabling location does not power the satellite receivers continuously. It really needs battery. The job of your tasker script is done by android 10 automatically. If you suspected apps to drain battery with GPS, disable their location permission!
kurtn said:
Network location is not part of lineageOS. You can add it with GApps or microG. Have you?
!
Click to expand...
Click to collapse
I'm using Gapps, the nano package. Do you know which one comes with network location? I can't tell because this comparison chart doesn't show it for any packages, https://github.com/opengapps/opengapps/wiki/Package-Comparison
kurtn said:
If you suspected apps to drain battery with GPS, disable their location permission!
Click to expand...
Click to collapse
The reason I preferred to keep it on battery save instead of off completely in the old days was that if I ever lost my phone, I wanted to be able to track it. Now with Android 10's mandatory GPS for location service, if I want to disable abusive apps from requesting unnecessary location service, which app should I avoid disabling? Which app is giving out my phone's location if I am tracking it remotely?
Thank you
luckysoul777 said:
I'm using Gapps, the nano package. Do you know which one comes with network location? I can't tell because this comparison chart doesn't show it for any packages, https://github.com/opengapps/opengapps/wiki/Package-Comparison
The reason I preferred to keep it on battery save instead of off completely in the old days was that if I ever lost my phone, I wanted to be able to track it. Now with Android 10's mandatory GPS for location service, if I want to disable abusive apps from requesting unnecessary location service, which app should I avoid disabling? Which app is giving out my phone's location if I am tracking it remotely? Thank you
Click to expand...
Click to collapse
I think the answer to both questions is Google play services. com.google.android.gms It's the mightiest app on your phone. I avoid installing it.
kurtn said:
I think the answer to both questions is Google play services. com.android.google.gms It's the mightiest app on your phone. I avoid installing it.
Click to expand...
Click to collapse
I still see one drawback with very selectively granting apps location service. For example, I do want to grant Chrome location service to facilitate better search. If I'm indoor, wouldn't GPS without a clear view of the sky trying very hard to get a fix and thus burn more power than necessary? With that said, can High Accuracy (GPS + network) actually be more power efficient under Android 10 than Battery Save (GPS only)? This is assuming Chrome would give up on GPS when it can't get a fix and be happy with just network while Battery Save would keep trying to get a fix with GPS. Again, this is just my assumption.

Categories

Resources