Skip to content

Commit 0c335e0

Browse files
muhomorr2thestinger
authored andcommitted
fixup! add GNSS SUPL setting
1 parent 69b7c01 commit 0c335e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/core/java/com/android/server/location/gnss/GnssConfiguration.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,11 @@ private static void applyConfigOverrides(Context ctx, Properties props) {
531531
break;
532532
case GnssSettings.SUPL_DISABLED:
533533
Slog.d(TAG, "SUPL is disabled");
534+
// SUPL mode is a bitmask, see
535+
// hardware/interfaces/gnss/aidl/android/hardware/gnss/IGnssConfiguration.aidl
534536
props.setProperty(CONFIG_SUPL_MODE, "0");
537+
props.remove(CONFIG_SUPL_HOST);
538+
props.remove(CONFIG_SUPL_PORT);
535539
break;
536540
case GnssSettings.SUPL_SERVER_GRAPHENEOS_PROXY:
537541
Slog.d(TAG, "SUPL: using the GrapheneOS proxy");

0 commit comments

Comments
 (0)