Nextcloud has a few options for something like this. PhoneTrack I think the app is called. You install the app on the phone and then connect it with a nextcloud server with the PhoneTrack app installed and setup. Then it would send all that information to your nextcloud instance. I don't know if you can stop the traffic to googles servers though.
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Well, if this app works Instead of Google maps for sending the location you can then disable location collection in Google
I use gpslogger with it. It works perfectly fine
Home Assistant can track device location using the companion app (iOS and Android). It would take a little work to save more than the default amount of information, but it's extremely do-able.
Here's my yesterday:
https://github.com/bfabiszewski/ulogger-android
You can use it as standalone app to track location at set intervals. But it also has a server app to synchronise to as well. Haven't used it as such, I only record to a file, but maybe this works for your purpose.
Been there, the issue I encountered is that most other apps would rely on active GPS and drain battery with it. Also, not many apps can access the GPS without a prompt, at least on xiaomi I had that... Maybe it's something to do with their OS customization... Anyway, Ideally you'd like to access in intervals and only wake GPS if other means (e.g. WLAN passive scan of surrounding SSIDs, like google services does) lack certain accuracy.
On your Xiaomi first time you launched app, you can determine wether you always allow or allow on prompt (but you should still be able to manage that setting afterwards). You also need to disable battery optimization for that app and set app to be able to auto launch in background. This is at least what I do with my home assistant app to determine GPS location in background (app record every 15mn) and no issues with battery draining.
For iOS there's location log. You can export your history too.
Also, don't kid yourself. If you aren't using Graphene and have any tech company app installed on your phone they're logging your location, and sharing it with everyone who pays, even if you opt out.
Wait, this app is free, has no ads, and does not give any info to the developer? It seems like it’s basically a hobby, created by a guy who wanted the app and decided to learn how to code so he could write it himself?
Homeassistant is another option. Host the server and run the app on your phone. Its not very granular though, and the user interface is not great