Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03399580 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Merge branch '6774-s-supl_request' into 'v1-s'

Remove sensitive info from SUPL requests

See merge request e/os/android_frameworks_base!141
parents 1fa6e5b7 cd7c30a9
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1601,6 +1601,13 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
        int type = AGPS_SETID_TYPE_NONE;
        String setId = null;

        // Unless we are in an emergency, do not provide sensitive subscriber information
        // to SUPL servers.
        if (!mNIHandler.getInEmergency()) {
            mGnssNative.setAgpsSetId(type, "");
            return;
        }

        int ddSubId = SubscriptionManager.getDefaultDataSubscriptionId();
        if (SubscriptionManager.isValidSubscriptionId(ddSubId)) {
            phone = phone.createForSubscriptionId(ddSubId);