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

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

base: add logs to test SUPL

Change-Id: I6d6fb50eb39cde01d6755b1a5973306f4ce15275
parent 1070bc8a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1734,10 +1734,13 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
        String setId = null;
        final Boolean isEmergency = mNIHandler.getInEmergency();

        Log.d("SUPL_TEST", "isEmergency: " + isEmergency);

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

@@ -1762,6 +1765,8 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
            }
        }

        Log.d("SUPL_TEST", "Is emergency and id is: " + setId);

        mGnssNative.setAgpsSetId(type, (setId == null) ? "" : setId);
    }