Skip to content

PlqnK/magisk-supl-replacer

Repository files navigation

Magisk SUPL replacer

Magisk module to replace the SUPL (Secure User-Plane Location) provider in Android's gps.conf.

Background

SUPL is used as part of the A-GPS (Assisted GPS) system to get a faster Time to First Fix. The problem is that Android's implementation automatically sends the IMSI (ID of the SIM card) to the SUPL provider for no apparent reason. And because google is the default provider it's a big breach of privacy.

This module replaces the SUPL provider with one from Vodafone. It's not perfect, the company isn't known for its privacy involvement but it's not possible to self-host a SUPL server and I haven't found a better provider.
At least the service is self-hosted by the company in Germany and Vodafone also shouldn't be subject to US law because it doesn't operate there.

The other active alternative providers with port 7275 accessible that I know of are:

  • Sony Mobile: supl.sonyericsson.com
  • Qianxun SI (China based): supl.qxwz.com

Another solution would simply be to disable SUPL altogether by replacing supl.google.com with localhost, but then the Time to First Fix can increase a lot, going from a couple of seconds to a couple of minutes.

If you want to learn more about the subject here's some reading material:

This module also replaces the NTP server specified in the same configuration file with pool.ntp.org which when resolved returns the IP of the closest NTP server.

Installation

Simply download the latest build from the Release section and install it with Magisk Manager!

You can also flash it in a custom recovery like TWRP but using Magisk Manager is definitely recommended.

Contributing

Contributions are welcome if you see any area of improvement!

Acknowledgments

  • John Wu for the creation of the wonderful tool that is Magisk.
  • The persons that have done analysis and written the blog posts linked above.

License

This project is released under the BSD 3-Clause License. A copy of the license is available in this project folder.