Giter Site home page Giter Site logo

fakegps's Introduction

FakeGPS

Note: this driver is NOT maintained by the author at this time

FakeGPS is a Windows driver which allows the user to provide geolocation information without a physical GPS device.

Note: in order to use FakeGPS please download the released binary, not the source code.

Why?

Windows 10 includes Cortana, a digital assistant which can help you with location based reminders. When there is no GPS device the location services in Windows will try to guess where you are geographically using other means like Wi-Fi or IP address. These methods don't always work, rendering the location-based features of Cortana as useless.

This is especially noticeable on virtual machines which provide geolocation of the cloud infrastructure, not where the user is.

For more information on why you might want this see Using Cortana with a Fake GPS Driver on Windows 10.

Requirements

  1. Windows 10 x64
  2. Test Mode Enabled (bcdedit /set testsigning on)

Note that Test Mode may be incompatible with BitLocker and Secure Boot.

Usage

Driver Installation

  • Ensure your system meets the requirements (Test Mode must be enabled)
  • Download the latest version of the released binary as a zip and extract to a folder
  • Install the driver using "Add Legacy Hardware" in Device Manager
  • Confirm you want to install the unsigned driver
    • The driver may say it failed to start on first use, see issue #3

Note the settings are currently stored in HKLM\System\CurrentControlSet\Enum\ROOT\UNKNOWN\0000\Device Parameters\FakeGPS but this will change, see issue #2

Command Line Options

Usage: FakeGPS -command

FakeGPS -g              get current status
FakeGPS -s <lat,long>   set latitude and longitude

Example:

PS> FakeGPS -s 51.51786,-0.102216
The following location has been set in the driver's registry settings:
Lat:    51.51786
Long:   -0.102216

PS> FakeGPS -g
The following location has been got from the Windows location API:
Lat:    51.51786
Long:   -0.102216

Note: Once you have set the latitude and longitude you may need to restart the device driver for it take effect. This is due to the Geolocation driver caching the last result and may be fixed in future versions.

Questions?

You can contact @juliankay on Twitter, or open issues in this repository.

Please note that I no longer use this tool, and at the time of this update I have not touched the code in about three years, so while you're free to create issues - I'm not going to be fixing them. :)

fakegps's People

Contributors

juliankay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fakegps's Issues

Device does not start up first time

The device driver does not start properly for the first time after install, and may bring up an error message.

If you disable the device and then enable it again it will work properly.

Error while selecting the FakeGPS.inf

Hi.
So I am getting this error while trying to add the new drivers (Add Legacy Drivers). I select the option "Have a disk" and when I select the file to install drivers (FakeGPS.inf) - it gives me this error, please see attached. I cannot go any further.

I am using the latest version of Windows 10 x64.

capture

Older Windows

Any reason this cannot work on Windows 7 or 8? Getting "Parameter is incorrect" error during installation.

"Input string was not in a correct format" error

This works :

$ ./FakeGPS -s 50,63
The following location has been set in the driver's registry settings:
Lat:    50
Long:   63

This doesn't :

$ ./FakeGPS -s 50.0,63
ZOMG, we got this error:
Input string was not in a correct format.
Send feedback plz!

So here is my feedback :)

After loking into the code in GeolocationHelper.cs I can see that the regexp went ok but it crash on the Convert.ToDouble method call throwing a FormatException.

After a few digging I found that :
windows 10 parameter > Region >Additionnal Settings >Number > and changed the decimal symbol seprator to "." (from ",")

It fixed the problem, I am in French number format setting, and the lovely Convert.ToDouble method seems to use it.

Two different ideas to solve this (to avoid being dependant of locals) :

  • force convert.toDouble to use "." as seprator in any case.
  • use only integer, where 51.51786,-0.102216 become 5151786 102216 as arguments

Improve documentation

A number of users seem to have difficulty in installing the device with the provided instructions.

This issue is to help track improved instructions - here's an initial step-by-step by @supra63200 to get us started.

  • type bcdedit /set testsigning on in a Powershell (Right click on bottm-left corner Windows icon and then click on Windows PowerShell)
  • Reboot the computer
  • Open device manager (Right click on the Windows icon again and then on Device Manager)
  • Click on the computer (First element of the list)
  • Click Add legacy Hardware in Action Menu
  • Click Next
  • Select install the hardware that I manually select from a list (Advanced) and click Next
  • Click Next again
  • Click on "Have Disk" and then "Browse" and select the FakeGPS.inf from the extracted release archive (in "x64 driver" folder)
  • On page "ready to install click Next
  • Wait for the installation to complete
  • Click on Finish
  • Activate the driver:
    • By rebooting the computer
    • By Disabling the driver and re-enabling it again in the Device Manager(Right click on "FakeGPS Sensor and click Disable/Enable Device)
  • Open a PowerShell and navigate to the FakeGPS.exe folder (In the root of the extracted archive)
  • Use it by typing .\FakeGPS.exe -g or .\FakeGPS -s lat,long (ex: 1.2,3.4)

Trouble during instalation

details of the procedure :

  • switched to test mode ( bcdedit /set testsigning on) and reboot
  • device manager > add legacy hardware > manually install hardware from list > Sensors > Have Disk
  • I select the file : \src\FakeGPS.Driver\FakeGPS.inf
  • then It prompt me the following :
    errorgps

Did I miss something ? What is wrong with this procedure ?

notes:

  • using windows 10 64bits
  • I tried with the branch master and with version 1.0.0-alpha2, same result.

doesn't work on x64 system

after downloading the fakegps-master.zip and extracting the folder i set test signing to on and proceeded to device manager. Actions>Add Legacy Hardware>Install Hardware I select Manually From a List>Sensors>Have Disk...; Browse...>...src/FakeGPS.Driver>OK; then it displays a message that reads
"The folder you specified doesn't contain a compatible software driver for your device. If the folder contains a driver, make sure it is designed to work with Windows for x64-based systems."

can't get installed on Windows 64 bit system

I get a message saying
" The folder you specified doesn't contain a compatible software driver for your device. If the folder contains a driver, make sure it is designed to work with Windows for x64-based systems."
So it can't get installed on Windows 64 bit system. Any solution? Can you compile it in Window 10 64 bit system?

False Location returnes

Hey Guys,

I've installed the fake gps and programmed with exactly strict defined coordinates for a location in kropp, germany but i've got a coorect location (i think ip or wifi based traceing) how i can stop this stupid shit and use the hardware gps sensor (fake gps?).

Greatings from Kropp and look to my website herbrich.org

Object reference error when unknown devices in registry

I get "Object reference not set" to an instance of an object error on SurfacePro (Win10, 64bit).
Probably, because in registry: UNKNOWN\0000 I have another device and fakeGPS is under UNKNOWN\004.
Two unknown devices were added when i was installing FakeGPS.

Registry is stored under UNKNOWN key

The registry settings are currently stored under:

HKLM\SYSTEM\CurrentControlSet\Enum\ROOT\UNKNOWN

Would be better to replace this UNKNOWN key with something that better reflects the name of the driver.

NOT MAINTAINED / MAINTAINER WANTED

At time of writing this code has't been updated in around 3 years, and I haven't used it for most of that time.

While I'm sure this might be useful for some peope, I am not setup to maintain it right now.

Feel free to hack it to your needs! Good luck!

Jules

Object reference not set to an instance of an object

Set location failed with "Object reference not set to an instance of an object" error.
Version: v1.0.0-alpha2 .
OS: Windows 10 Pro 64-bit .
The driver was installed successfully and get location also worked, but set location failed.

Error : Object reference not set to an instance of an object.

On my Windows 10, build: 15063.674 (x64) I got the following error !!!!

C:\Users\ListOfFreeware\Downloads\FakeGPS-v1.0.0-alpha2>FakeGPS -s 25,75
ZOMG, we got this error:
Object reference not set to an instance of an object.
Send feedback plz!

Any idea how to fix it ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.