Skip to content

Magisk-Modules-Alt-Repo/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 a proxy server provided by GrapheneOS. The non-profit open source project is known for its security and privacy involvement.

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

  • Orange: agpss.orange.fr
  • Telstra: agps.supl.telstra.com
  • T-Mobile: lbs.geo.t-mobile.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 europe.pool.ntp.org which when resolved returns the IP of the closest european 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.