[privacy] [android] Remove logging of location due to privacy leak.
* Location logs are not just kept on the device. * Some logging packages, e.g., Firebase, now has the option to upload logs to cloud. * This closes a potential privacy leak.
This commit is contained in:
@@ -130,7 +130,7 @@ public class LocationServices implements com.mapzen.android.lost.api.LocationLis
|
||||
*/
|
||||
@Override
|
||||
public void onLocationChanged(Location location) {
|
||||
Log.d(TAG, "onLocationChanged()..." + location);
|
||||
// Log.d(TAG, "onLocationChanged()..." + location);
|
||||
this.lastLocation = location;
|
||||
|
||||
// Update Listeners
|
||||
|
||||
@@ -63,7 +63,7 @@ public class TelemetryLocationReceiver extends BroadcastReceiver {
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
Location location = (Location)intent.getExtras().get(LocationManager.KEY_LOCATION_CHANGED);
|
||||
if (location != null) {
|
||||
Log.d(TAG, "location received = " + location);
|
||||
// Log.d(TAG, "location received = " + location);
|
||||
MapboxEventManager.getMapboxEventManager().addLocationEvent(location);
|
||||
} else {
|
||||
Log.d(TAG, "location NOT received");
|
||||
|
||||
Reference in New Issue
Block a user