Real gps location interfering with mock locations app - Nexus 6P Q&A, Help & Troubleshooting

I am using a rooted nexus 6p, I also have a nexus 6 with the same issue, and I'm trying to fake gps locations for a game that requires walking. For some reason the fake location and the real location keep switching back and forth. I've tried turning off all the settings for gps with no luck.
This thread was opened http://forum.xda-developers.com/nexus-6p/help/mock-locations-fake-gps-t3408407 and closed with the issue being resolved to using a specific app. This does not help me in debugging my app if I can't use apps that mimic walking.
It does not seem right that a specific phone can't hide real gps data. I don't even have a sim card in my nexus 6 and it's still finding my location. This seems like a phone bug that has yet to be reported.

In developer options there's an option called "Select mock location app". Did you tried it?

I have this same exact problem on a Nexus 6P. I've tried multitudes of mock GPS apps. I've selected the mock location app as well as used rooted mockers that don't even require a mock location selection. I've tried all GPS settings (GPS + WiFi, WiFi, GPS only) and they all flicker back and forth. I've seen other people have this issue too. I can even see it happening in Google Maps. XPrivacy is able to feed fake location data to a chosen app and that works great but it isn't convenient as you have to type in the coords. The real GPS really shouldn't interfere with the mock GPS (especially if the setting is on) but for whatever reason the Nexus 6P GPS gives no ****s about where you want to be, its in charge and you're gonna sit right where you are god dammit. Right now my best option is to use tin foil to render the real GPS useless unless I want to physically remove the thing but seriously what gives? I even just wiped my phone and flashed the latest PureNexus and still have the issue.

Same problem
I have the same thing going on with my Nexus 6p. After like 2 seconds it just flickers back and forth.. do have exposed framework to mock mock location.

It looks like com.google.android.gms from "Google Play Services" is being used to get the real GPS locations? How do we stop this?

Quit trying to cheat on Pokémon Go! Lol
Sent from my Nexus 6P using XDA-Developers mobile app

Your opinion and assumptions really aren't necessary. The issue here is why the physical GPS interferes with the mock GPS on this device.

I have the same issue. Tried many apps, none worked. I'm on stock MTC19X. (also it seems when I have more than 1 fake location app installed, switching between them is funky. Sometimes they don't stick in the Dev option.)
*** I may have found a solution posted on stackoverflow (http://stackoverflow.com/questions/...ymore?newreg=4100ab40b3704404852e05938ec2ca05). It seems to be working w/o flicker. Tested on Pokémon Go since vwood2121 mentioned it
Also you'll need to reverse it to get the gps working again.
"I managed to fix this problem by disabling the "Fused Location" service on my phone. I used the Disable Service application which requires root privileges to run. After disabling the "Fused Location" service I stopped teleporting to my real location."

Confirmed
Sent from my Nexus 6P using XDA-Developers mobile app

Related

GPS settings / connection problems

Hi,
Could anyone please explain the various settings for GPS in the "settings" menu (under "location")? I find that the manual and tooltips are not very informative.
Particularly, I don't understand the difference between the first choice ("wireless networks"?) and the third choice ("assisted GPS"). I understand that the phone may use wifi or mobile network to detect my position (instead of or in addition to GPS satelites), but I don't know which of the two options to choose for this.
Also: When I enable "wireless networks", what does the warning that pops up mean? It mentions that data will be collected even when no software (GPS/map) is running. What is that? And what is the difference between enabling this and the fourth option ("share with google")?
Finally:
Does your GPS immediately start working when you enable it? Myself, I need to enable/disable GPS using the desktop widget and the various GPS settings several times before it managess to find my location. (My position is not the problem - once detected/connected, it works fine.) I still don't understand which combination of settings it is that finally makes the GPS work as expected.
As I understand the first option "Wireless Neworks" will rely entirely on data from Cell Towers e.t.c to determine your position. I guess this will be less accurate.
"Assisted GPS" enables your device to get a faster lock on your location by collecting available data from cell towers first before using the GPS receiver.
I think if you were only to activate the GPS in some circumstances it would take a lot longer to get a fix.
"Share with Google" just allows the gears addon within the browser to share your position with google allowing them to return results based on your location.
That's my take on those options.
"Wireless Neworks" - is using cell towers and wifi to locate you.
Probably they have (or use a 3rd party DB) for that. Anyway, is not (very) accurate.
"Assisted GPS" - i'm not 100% sure but i think is connecting to a location server to get the location of the GPS satellite so, will lock faster (at least this is what my Nokia 5800xm is doing).
The warning message you get is because google will (most likely) use your location (cell towers and wifi spots) to create and update their own database so, phones without GPS will still be able to use google maps.
Well, they probably do something more with that data but who knows what
I just wanna add that using any type of assistance for the gps chip in this phone is (in my personal oppinion) unnecessary. I am sitting inside my house, in my bed(with a window behind me) an in 10sec i get fixed on 10 satellites. Not much that can beat that ;-)
in addition, i am in the bottom floor in a 2floor house so it is alot of roof and cealing between me and the sky.
Sent from my X10i using the XDA mobile application powered by Tapatalk
Thanks for your replies. Much appreciated.
Just curious - which app do you use to monitor GPS satelites?
Also, does everyone's GPS find your location rather quickly after enabling GPS? I usually get the message "Your current position is temporarily unavailable", I retry, same result, I retry, same result ... Only after I disable/enable GPS several times, my position can be found.
My GPS usually finds my position rather quickly first time I switch on GPS. I have aGPS (Assisted GPS) enabled too, this way your phone gets help on locating the sattelites position from your mobile provider, hence locking onto GPS signal faster (is to my understanding).
Plus, if you're standing in an area with tall buildings, your position will be less accuratelly pin-pointed, bouncing GPS signal and all.
I'm using GPS test by chartcross ltd. Avalible in the free android market, and i really like it!
Sent from my X10i using the XDA mobile application powered by Tapatalk
I never turned on A-GPS on this phone. There is no need for A-GPS.
This phone have fastest GPS fix of all phones.
I have noticed when I am running on 3G (H) I get the "location temporarily unavailable" notice, but if I force it to not go to 3G it will be E and I get my location. This holds true if I have setting for using GPS or not.
This seems to be a problem with Google Maps using the data transfer method of 3G (H) versus E.

Turn off cellular, leave on GPS?

I go out on BLM land with my brother in law sometimes and I was thinking of using my phone as a GPS device with Google Maps/Earth.
The only real problem with this is that most of these areas have no/intermittent phone service. If I leave my phone on it will search for service constantly and burns through the battery very quickly.
Is there any way to turn the cell service off but leave the GPS functionality on, which should still allow me to use maps, etc?
with google maps you will need an internet connection(also requires cell connection)
mdram-omnia said:
with google maps you will need an internet connection(also requires cell connection)
Click to expand...
Click to collapse
Wow, my 3 cups off coffee must not have been enough for me this morning lol. That was a pretty dumb question haha.
A quick google search leads me to believe that you can get offline maps on your phone that use GPS data.
So I think my question still remains if you can turn the cell service off and still have GPS?
astraelraen said:
Wow, my 3 cups off coffee must not have been enough for me this morning lol. That was a pretty dumb question haha.
A quick google search leads me to believe that you can get offline maps on your phone that use GPS data.
So I think my question still remains if you can turn the cell service off and still have GPS?
Click to expand...
Click to collapse
my assumption is yes, it works on other phone this way
but also remember all that time with the screen on eats up the battery on most phones
http://cgi.ebay.com/Garmin-eTrex-GP...0474646749?pt=GPS_Devices&hash=item43a1a35cdd
astraelraen said:
I go out on BLM land with my brother in law sometimes and I was thinking of using my phone as a GPS device with Google Maps/Earth.
The only real problem with this is that most of these areas have no/intermittent phone service. If I leave my phone on it will search for service constantly and burns through the battery very quickly.
Is there any way to turn the cell service off but leave the GPS functionality on, which should still allow me to use maps, etc?
Click to expand...
Click to collapse
That's a very good question. Nobody outside Verizon really knows for sure what the Fascinate's location and settings do. The three labels under Settings -> Location & Security seem to have been made up by marketing dweebs, and not defined and do not correspond to the settings on other Galaxy S phones.
Further, on other Galaxy S phones, controlling the detailed settings of the GPS/aGPS is not done from that main Settings menu at all, but from the menu of a hidden app that can usually be invoked by a dialer code. But no one I know of has ever discovered such an app on the Fascinate. On most other Galaxy S variants, the hidden app that controls aGPS settings is called LbsTestMode. The new Sprint Epic has a different but similar app called GpsSetup. Because these system apps are hidden, they do not show up on the usual tools listing end-user apps. But their .apk files would show up to a rooted user or in a system dump.
Most older Galaxy S phones default to Standalone mode. The Epic defaults to MS Based mode. The Fascinate default is really unknown.
It may be possible to access the hidden GPS menu, if any, without the secret dialer code. If anyone has a rooted phone, they can look to discover if there is an .apk file named LbsTestMode.apk (the name for the app on most Galaxy S models) or GpsSetup.apk (the name for the new app on the Sprint Epic.)
If either of those hidden system app files is present, it can probably be run by setting up a direct shortcut using a third-party launcher utility such as LauncherPro or ADW. If there is no such app, that would also be worth knowing.
It is not necessary to have a rooted phone to run the hidden app.
FWIW, I have tested the Sprint Epic's GPS in Standalone mode in West Texas, far from any network coverage. It captured the tracks quite well for subsequet display in other software, demonstrating that the underlying GPS works well. I did not have any apps loaded with locally cached maps, so I could not see maps in real time.
You should be able to disable the other radios on the phone to conserve battery, but the GPS radio itself is power-hungry if run all the time.

GPS Issues Because of Google's Resistance to Skyhook?

It looks like Google forced OEMs to ditch Skyhook, and, affording to this article, Samsung was involved. I wonder if Samsung scrambled to put together a quick fix before releasing the Galaxy S and this could explain the AGPS issues.
http://i.engadget.com/2010/09/17/skyhook-google-forced-motorola-to-drop-our-location-service-de/
Sent from my SGH-T959 using XDA App
Isnt skyhook disabled by default? So how would this affect the GPS?
KerryG said:
Isnt skyhook disabled by default? So how would this affect the GPS?
Click to expand...
Click to collapse
http://www.engadget.com/2010/09/17/skyhook-google-forced-motorola-to-drop-our-location-service-de/
Following that, Skyhook claims that Google then went after an unidentified "Company X" (likely Samsung) and forced it to drop XPS as well -- which would certainly explain why Samsung's Galaxy S phones have WiFi positioning turned off by default, unlike every other Android phone. Ouch.
Click to expand...
Click to collapse
Skyhook is absolutely 100% unnecessary for a properly functioning gps. It has nothing to do with the problems on the Galaxy S devices.
Sent from Samsung Vibrant
Just turn it back on. Go to *#*#1472365#*#*, application settings, scroll down to skyhook, select on. Then wifi positioning/AGPS should be on now. Its a shame its off by default.
Sent from my messenger rabbit
so what is this going to change if i enable skyhook?? should I enable skyhook??
Not sure if this is the same for everyone, but I can't seem to access the GPS settings using the *#*#1472365#*#* command - not sure when it started, but the one thing I did do between the last time I accessed the service (a few weeks back) to now is flashing the leaked firmware. Anyone else with this issue? I found the noted article yesterday and wanted to check to see if the Skyhook option was still there, and, of course, I can't tell.
courtmagician said:
Not sure if this is the same for everyone, but I can't seem to access the GPS settings using the *#*#1472365#*#* command - not sure when it started, but the one thing I did do between the last time I accessed the service (a few weeks back) to now is flashing the leaked firmware. Anyone else with this issue? I found the noted article yesterday and wanted to check to see if the Skyhook option was still there, and, of course, I can't tell.
Click to expand...
Click to collapse
That dialer code invoked a hidden app called LbsTestMode. The dialer code no longer works in the leaked ROM, but the hidden app is still there. It can be accessed by the workaround explained here, which does involve installing LauncherPro and setting up a shortcut.
Maybe Samsung rushed to market without thoroughly testing the GPS on the Galaxy phones after being told not to use Skyhook. It could have been integrated into their existing firmware. I don't know; I could be completely wrong on this, but I'm just throwing it out there to see what others think. I also can't access the GPS service menu on the new firmware. I haven't had major GPS issues to tell you the truth, but my brother has to launch GPS test to make his maps work on his Epic.
cthach11 said:
Just turn it back on. Go to *#*#1472365#*#*, application settings, scroll down to skyhook, select on. Then wifi positioning/AGPS should be on now. Its a shame its off by default.
Click to expand...
Click to collapse
Skyhook has nothing to do with aGPS. It is a non-GPS method of location service based on a map of all the WiFi routers and access points out there. The Skyhook company has a bunch of people who wardrive and collect the data to populate its database, then offers the service to carriers for a fee.
However, the same hidden utility (LbsTestMode) whose menu can be used to enable Skyhook also can be used to enable aGPS. Selecting MS Based mode instead of the default Standalone mode is what would do that. This controls the operation of the satellite based GPS, accelerating the download of certain satellite data over the network. It is entirely independent of Skyhook.
Enabling MS Based aGPS makes obvious sense. It is an established industry standard for GPS operation on cellphones. The merits of Skyhook are another question, and I don't really have an informed opinion.
Thanks for the link. You can actually do the same thing in ADW (which is what I use), just choose "Custom Shortcut" and then "Activities" and you can scroll don to LbsTestMode. I like it when solutions are right in front of my face
So do you need to leave your WiFi on all the time when enabling Skyhook? That would drain your battery even faster...
courtmagician said:
Thanks for the link. You can actually do the same thing in ADW (which is what I use), just choose "Custom Shortcut" and then "Activities" and you can scroll don to LbsTestMode. I like it when solutions are right in front of my face
Click to expand...
Click to collapse
Thanks for this, never knew I could do that with ADW
I've always had Skyhook turned off and yet when connected to my WiFi network I get a highly accurate position, even with GPS turned off. Thoughts?
jjohns63 said:
I've always had Skyhook turned off and yet when connected to my WiFi network I get a highly accurate position, even with GPS turned off. Thoughts?
Click to expand...
Click to collapse
Your position would be coming from your GPS or from cellphone tower triangulation, depending on your other settings, whether you use WiFi or not.
Skyhook would looking for all the other WiFi locations around you that are in its database. Those locations might include your local WiFI router along with everyone else's if Shyhook's wardivers found it. But Skyhook would not actually connect to those WiFi sources. It would only detect them.
boomerbubba said:
Your position would be coming from your GPS or from cellphone tower triangulation, depending on your other settings, whether you use WiFi or not.
Click to expand...
Click to collapse
I know this is not the case as the accuracy circle in maps covers maybe half a block, not a mile. As I said, I had disabled the GPS, and cell tower triangulation is not that accurate, especially where I am with low signal.
Skyhook would looking for all the other WiFi locations around you that are in its database. Those locations might include your local WiFI router along with everyone else's if Shyhook's wardivers found it. But Skyhook would not actually connect to those WiFi sources. It would only detect them.
Click to expand...
Click to collapse
This makes sense because I tested it today without actually connecting to a network and it still found my location to the same "wifi accuracy". I had turned on Skyhook for this test. However, I'm still wondering how it was able to find my location with Skyhook turned off.
Skyhook is one company providing a service of mapping access points to locations. Google uses their own - probably picked up from Google maps car.
If you have "use wireless networks" checked under GPS - it will use this other provider (probably google) and not skyhook.
Ive turned skyhook on and off in testmode as well as trying other settings, gps is still bag of suck.Frankly i get better results with it on. Marginal though.BTW.use the lbs test mode app. It'll save you alot of headaches.
Vibrant vibrating nicely now,Kthx!

GPS Issues - can't get location, but GPS Status finds and fixes many satellites?!

No clue whats goin on...
I wanna use GPS and it keeps searching for ages without getting a fix.
So I ran GPS Status app and it shows many satellites - at one point I had fix to 8 or 9 Satellites?!
3 or 4 should be enough for a location, I don't understand why the GPS keeps searching without getting a fix when I already discovered 8 satellites?
Anyone have an idea?
My system is heavily modded (debloated hardcore) but I'm pretty sure thats not the real reason. Using xprivacy and afwall (but allowing the Android System and the apps I want to be able to use GPS the location and also internet access...) - this setup worked fine in the past on my N7000 without any gps problems. (even removed the NetworkLocation.apk since I dont want to use network location anyway and its not necessary for gps either - tested that already on my old N7000)
Satellites are found, but no location?! Really weird....
zroice said:
No clue whats goin on...
I wanna use GPS and it keeps searching for ages without getting a fix.
So I ran GPS Status app and it shows many satellites - at one point I had fix to 8 or 9 Satellites?!
3 or 4 should be enough for a location, I don't understand why the GPS keeps searching without getting a fix when I already discovered 8 satellites?
Anyone have an idea?
My system is heavily modded (debloated hardcore) but I'm pretty sure thats not the real reason. Using xprivacy and afwall (but allowing the Android System and the apps I want to be able to use GPS the location and also internet access...) - this setup worked fine in the past on my N7000 without any gps problems. (even removed the NetworkLocation.apk since I dont want to use network location anyway and its not necessary for gps either - tested that already on my old N7000)
Satellites are found, but no location?! Really weird....
Click to expand...
Click to collapse
I think I have posted a similar story with my tests just today in another thread - does it make any difference if you have your mobile (cellular) data started (and WiFi off)?
I suspect there is somewhere a more extensive configuration for the GPS circuit (maybe including something about whether to use Assisted GPS or not), but for the moment I did not have enough time to look for more details on this

Wrong Location In Apps

Lately my phone has been showing my google results in the wrong location. For example if I search for California Pizza Kitchen instead of showing the closest ones to my location (San Fernando Valley/Los Angeles) it shows me in Moreno Valley. This is true for everything that requires location including Google Maps EXCEPT when I use the turn by turn navigation the location corrects itself in Google maps but not anywhere else. This has become extremely annoying when searching for local businesses. I know this probably isn't specific to the S5 but need some help to rectify this. Thanks in advance.
Anybody?
I know this is going to sound far fetched but do you have WeatherBug installed on your device?
c4manceph said:
I know this is going to sound far fetched but do you have WeatherBug installed on your device?
Click to expand...
Click to collapse
Nope
WeatherBug was causing this issue for me and a simple uninstall /reinstall resolved the issue.
Perhaps you have a similar issue with one of your apps causing the issue.
I'd check apps that use your location as a possible culprit.
armeN0317 said:
Lately my phone has been showing my google results in the wrong location. For example if I search for California Pizza Kitchen instead of showing the closest ones to my location (San Fernando Valley/Los Angeles) it shows me in Moreno Valley. This is true for everything that requires location including Google Maps EXCEPT when I use the turn by turn navigation the location corrects itself in Google maps but not anywhere else. This has become extremely annoying when searching for local businesses. I know this probably isn't specific to the S5 but need some help to rectify this. Thanks in advance.
Click to expand...
Click to collapse
Are you stock or root? Is it with the GPS on or network? Are you the google location settings on always? I had map issues on the s4, we wound up on a back road that was about 20 miles away from where we were supposed to..but I've not had issues on the s5. I'm stock, use enable gps and google location when using. Have you tried clearing the cache & data from the Gmaps app?
alright so it's also happening to my wife's note 3 on verizon and she is totally stock nothing fancy at all. Could this be a carrier issue with towers or something?
armeN0317 said:
alright so it's also happening to my wife's note 3 on verizon and she is totally stock nothing fancy at all. Could this be a carrier issue with towers or something?
Click to expand...
Click to collapse
Like with what sainthooligan said, we need to know if you're using GPS or network to try and figure out what is happening. I personally havent had any problems with location. I use an app from the playstore called gpstest to keep my gps in check. You can clear and update the AGPS from the settings on that app.
warpedmind0u812 said:
Like with what sainthooligan said, we need to know if you're using GPS or network to try and figure out what is happening. I personally havent had any problems with location. I use an app from the playstore called gpstest to keep my gps in check. You can clear and update the AGPS from the settings on that app.
Click to expand...
Click to collapse
its in High Accuracy mode. I don't think its a location setting since she has a completely different phone and it's happening to her too.
armeN0317 said:
its in High Accuracy mode. I don't think its a location setting since she has a completely different phone and it's happening to her too.
Click to expand...
Click to collapse
Try ticking GPS only mode and see if there is a change. If there is a noticeable change then it my be a network issue.
warpedmind0u812 said:
Try ticking GPS only mode and see if there is a change. If there is a noticeable change then it my be a network issue.
Click to expand...
Click to collapse
Switched it to GPS only maps works fine but google search results still show riverside/moreno valley area. Also cleared cache and data on chrome and google search app.
armeN0317 said:
Switched it to GPS only maps works fine but google search results still show riverside/moreno valley area. Also cleared cache and data on chrome and google search app.
Click to expand...
Click to collapse
For "google search results" do you mean where the location is displayed from in the the browser? This is relative to the ip address of your internet connection through your ISP or carrier (see attached screen shot).
if that isn't relevant to what you noted, have you checked your location settings under Settings > Location > My places to see if you have something in there that shouldn't be for home,work or car?
So I had some more time today to troubleshoot this issue more in depth and boy you will never guess what I found. So all my chrome settings all my locations settings are correct all that stuff is good. And guys keep in mind this is happening to 3 separate devices with separate owners and gmail accounts on the same verizon plan. Turns out the Verizon Provided Samsung Range Extender was the culprit. Soon as I unplugged the range extender the correct location for searches and everything else was there. Now after power cycling the Range Extender it refused to find a GPS location. My range extender is located on a window pane and the gps united is extended to the top of the window about 8-9ft from the ground (basically as good a placement as possible). I contacted verizon and after long conversations with different reps they finally agreed the range extender is the issue. I am waiting on their technical department to give the ok for them to replace my range extender (they still seem to think its possible they may have an issue or outage with range extenders in my area and want to eliminate that from the equation before proceeding). Man I really would hate to wonder how this would have been diagnosed with someone not as technically inclined as myself and without the outlet of this forum for advise. So basically waiting on big red to OK a replacement for me and go from there. I'll update this post soon as I get to that step.

Categories

Resources