New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
octavia
Old
#1  
Senior Member - OP
Thanks Meter 6
Posts: 106
Join Date: Oct 2008
Default What is a 'mock location'.

Hi,

I'm posting this here because I'm kind of in a hurry and I might get a better answer here. I'm translating an Android phone, and it's full of commands in very broken English. So I ran across this term (mock) that I've never seen in such context and I want to know if that's the actual name or it's just broken English for 'fake' (fictitious).

This is the description of the function:
Quote:
mock location

Create mock location sources for testing. Malicious applications can use this to override the location and/or status returned by real location sources such as GPS or Network providers.
'Mock' to me is this: sticking your tongue out and make fun of the stupid so I don't get it. The term 'fake' is also used so it somebody might have overlooked at it and use 'mock' instead, or it's a different process. I'd appreciate any help.
 
IzzeLing
Old
#2  
Member
Thanks Meter 1
Posts: 56
Join Date: Nov 2008
It means it is not a real location obtained from the GPS.
The Following User Says Thank You to IzzeLing For This Useful Post: [ Click to Expand ]
 
rikupw
Old
#3  
rikupw's Avatar
Member
Thanks Meter 2
Posts: 89
Join Date: Dec 2008
Location: Federal Way, Wa
mock location is the actual term used to allow you to specify (I believe in the android emulator) a location seperate from what you're actually at (to allow GPS on the emulator, when there is actually no GPS hardware preset, used for testing purposes)
The Following User Says Thank You to rikupw For This Useful Post: [ Click to Expand ]
 
octavia
Old
#4  
Senior Member - OP
Thanks Meter 6
Posts: 106
Join Date: Oct 2008
Thank you so much to the both of you!
The Following 2 Users Say Thank You to octavia For This Useful Post: [ Click to Expand ]
 
Titan33
Old
#5  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Feb 2010
I know this is an old topic but with everything being said do we want the "mock location box checked on or unchecked off??
 
Binary100100
Old
#6  
Binary100100's Avatar
Retired Forum Moderator
Thanks Meter 1075
Posts: 5,373
Join Date: Apr 2008
Location: Detroit, Mi

 
DONATE TO ME
Quote:
Originally Posted by Titan33 View Post
I know this is an old topic but with everything being said do we want the "mock location box checked on or unchecked off??
If you want to accurately get a pinpoint of your location you want it off.
If you want it to tell you strange locations like Antarctica then turn it on.
Device(s) Info:

HTC Amaze 4G :
Energy ICS | Rooted | SIM Unlocked | HBOOT-1.93.2222 JuopunutBear S-OFF | Recovery 4ext | Kernel: HTC Stock

HTC EVO View 4G:
[ACS]CleverNameHere Rom RLS 1 (HC) | hboot 6.14.5556 | Revolutionary S-OFF | TWRP 1.0.3 Port

Samsung SGH-T959 Vibrant (unlocked) :
FFC v2 Mod
| Bionix NextGen 2 | Kernel: OverStock 2.4.1 | KB5 Modem | ClockworkMod Recovery


The Following 2 Users Say Thank You to Binary100100 For This Useful Post: [ Click to Expand ]
 
tkjtkj
Old
#7  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Mar 2009
Location: northampton, ma.
Default If it's an emulator function, why is it's switch on the phone?

Quote:
Originally Posted by rikupw View Post
mock location is the actual term used to allow you to specify (I believe in the android emulator) a location seperate from what you're actually at (to allow GPS on the emulator, when there is actually no GPS hardware preset, used for testing purposes)
If it's an emulator function, why is it's switch on the phone?

oh .. maybe to turn off the phone's GPS when connected via USB to the computer?
If so, its a strangely-labeled thing!
 
Devin-J
Old
#8  
Devin-J's Avatar
Senior Member
Thanks Meter 14
Posts: 141
Join Date: Sep 2011
Location: California
Wink thank you very much for the info

thank you very much for the info

and wow this is the second search result in google.com for 'what is allow mock locations android' HAHA.
 
Flowyk
Old
#9  
Senior Member
Thanks Meter 17
Posts: 221
Join Date: Aug 2011
Quote:
Originally Posted by Devin-J View Post
thank you very much for the info

and wow this is the second search result in google.com for 'what is allow mock locations android' HAHA.
first for "allow mock locations"
 
zeese5
Old
#10  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Apr 2009
Hi all!

I got a bluetooth gps that I sometimes use it and sometimes I used the phone's built in gps. To use the bluetooth, I need to enable the 'allow mock locations'. To use built in gps hardware, I believe I need to switch off the 'allow mock locations' setting.

However, to keep turn on and off that setting everytime I switch between bluetooth gps and phone's gps is not very 'comfortable'. I wonder, is it ok for me to leave the setting enabled all the time. Will it affect the accuracy of my location when I'm using the phone's built in gps?

Thanks.