Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Connect external GPS provider via Mock Location #1198

Open
mlevy823 opened this issue Feb 7, 2025 · 2 comments
Open

[Feature Request] Connect external GPS provider via Mock Location #1198

mlevy823 opened this issue Feb 7, 2025 · 2 comments

Comments

@mlevy823
Copy link

mlevy823 commented Feb 7, 2025

I was wondering the feasibility of adding support for connecting an external device (such as a USB device) and using it as the GPS provider via Mock location provider? I know a similar project exists https://github.com/freshollie/UsbGps4Droid but it hasn't been updated in a while. I also know of the GPS Connector app by Pilablu, but there is no access to the source code for that.

I am not a programmer and don't know a lot about android app development. GPS Connector works but it prompts for permission to use the USB device every time. I thought I could fix this somehow with what is described here: https://stackoverflow.com/questions/12388914/usb-device-access-pop-up-suppression/15151075#15151075

I know I am asking for something that is perhaps beyond the scope of what gpslogger is supposed to do as an app. The app works wonderfully when connected with the GPS Connector app and used with an external USB GPS receiver.

Thank you for your time.

@mendhak
Copy link
Owner

mendhak commented Feb 8, 2025

My understanding (correct it if this is wrong) is that reading from a Mock Location provider doesn't need to be built into the code. In developer settings I go in and set an app (such as this one) as the mock location provider. Then in GPSLogger I'm disabling network listener, only using satellite listener. And in phone settings I also had to disable the location accuracy service. Once I did that I was able to just run the mock provider and GPSLogger was reading from it.

In this example I've placed my location near the equator:

Image

This is pretty much all I know about Mock though. I've never actually used a mock or external device so I don't know what's involved but I would imagine there needs to be some kind of app that reads from that external device and providing it as a mock location.

@mlevy823
Copy link
Author

No worries! I wasn't sure if you knew anything about it off hand. I have a very rudimentary understanding of programming and developing android apps is all new to me. Thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants