Magisk-Modules-Alt-Repo / supl-replacer

Magisk module to replace the SUPL provider in gps.conf
BSD 3-Clause "New" or "Revised" License
42 stars 5 forks source link

Working with Android 12? #2

Open gprn opened 1 year ago

gprn commented 1 year ago

Hi, Is there a chance this script could be used with Android 12 - LOS 19.1, as I don't see any cautions under the module page? I installed it without errors but it seems GPS still want connected to glpals.com servers.

D3SOX commented 1 year ago

Yes, it should work. I currently use it on LineageOS 20 (Android 13) and have used it before on 19.1 and 18.1.

Can you send your gps.conf? It should be either under /system/vendor/etc/gps.conf or if that doesn't exist /system/etc/gps.conf You can obtain it via an adb shell, Termux or any root file explorer

gprn commented 1 year ago

No gps.conf file anywhere on my phone, I only have a gps_debug.conf under /system/etc/ Is it the one for tweaking supl server?

D3SOX commented 1 year ago

Not sure why that is, but I might need to create one if it doesn't exist sometimes.

HarriBuh commented 1 year ago

I just checked for myself on my Pixel 7 w/ Android 13 and "gps.xml" under system/vendor/etc/gnss also says "acSuplServer="supl.google.com" ". I too have no "gps.conf" anywhere on my phone. The "gps_debug.conf"- file does only contain inactive code (everything is deactivated by "#" in front of every line).

HarriBuh commented 1 year ago

Anybody working on a fix?

HarriBuh commented 1 year ago

@D3SOX Is this repo already abandoned? Looks like it.

D3SOX commented 1 year ago

@HarriBuh It's not abandoned. I just haven't had the time to work on this. But anybody can help here, if someone makes a PR I'm definitely going to review and merge it.

UjuiUjuMandan commented 2 weeks ago

I can confirm the modification in /system/etc/gps-debug.conf works on my Pixel 7a on Android 14, I set it as

SUPL_HOST=supl.grapheneos.org

After reboot, this host appears instead of supl.google.com in PCAPdroid logs.

And have a look at this: https://review.calyxos.org/c/CalyxOS/device_google_redbull/+/17021

What are they trying to do?

UjuiUjuMandan commented 2 weeks ago

Another option is to use Pixel IMS to modify gps.supl_host value, I don't know if gps-debug.conf or this carrier config has more priority.

HarriBuh commented 2 weeks ago

@UjuiUjuMandan How do I get the supl_host log from PCAPdroid? I frequently use this app, but never tried to log this specific way.

UjuiUjuMandan commented 2 weeks ago

@UjuiUjuMandan How do I get the supl_host log from PCAPdroid? I frequently use this app, but never tried to log this specific way.

Disable Target apps and start capture and make a locate request like open https://browserleaks.com/geo .

gprn commented 2 weeks ago

I can confirm the modification in /system/etc/gps-debug.conf works on my Pixel 7a on Android 14, I set it as

SUPL_HOST=supl.grapheneos.org

After reboot, this host appears instead of supl.google.com in PCAPdroid logs.

And have a look at this: https://review.calyxos.org/c/CalyxOS/device_google_redbull/+/17021

What are they trying to do?

Yes, thank you man, had never try to modify this file but my GPS chip appears to use graphene supl too now, as I have seen on old MatLog app.

UjuiUjuMandan commented 2 weeks ago

it seems GPS still want connected to glpals.com servers.

This domain seems to be an XTRA server, Qualcomm's PSDA implementation, not related to SUPL at all.

People in my link want to change it from xtracloud.net to gllto.glpals.com but failed.