Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Log proxying of location listener
Browse files Browse the repository at this point in the history
Refs #2105
  • Loading branch information
M66B committed Jan 4, 2015
1 parent b4b1727 commit 348de98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/biz/bokhorst/xprivacy/XLocationManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import android.location.Location;
import android.os.Binder;
import android.os.IInterface;
import android.util.Log;
import android.location.GpsSatellite;
import android.location.GpsStatus;
import android.location.LocationListener;
Expand Down Expand Up @@ -337,6 +338,7 @@ else if (param.args[arg] != null && param.thisObject != null) {
// Use proxy
synchronized (mMapProxy) {
mMapProxy.put(key, proxy);
Util.log(this, Log.INFO, "proxyLocationListener uid=" + Binder.getCallingUid());
}
param.args[arg] = proxy;
}
Expand All @@ -353,8 +355,10 @@ else if (param.args[arg] != null) {
key = ((IInterface) key).asBinder();

synchronized (mMapProxy) {
if (mMapProxy.containsKey(key))
if (mMapProxy.containsKey(key)) {
param.args[arg] = mMapProxy.get(key);
Util.log(this, Log.INFO, "unproxyLocationListener uid=" + Binder.getCallingUid());
}
}
}
}
Expand Down

0 comments on commit 348de98

Please sign in to comment.