From 348de98e708f605179967ed0e1f739f80387b9a6 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 4 Jan 2015 18:34:13 +0100 Subject: [PATCH] Log proxying of location listener Refs #2105 --- src/biz/bokhorst/xprivacy/XLocationManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/biz/bokhorst/xprivacy/XLocationManager.java b/src/biz/bokhorst/xprivacy/XLocationManager.java index 5c62660b0..44470cc0d 100644 --- a/src/biz/bokhorst/xprivacy/XLocationManager.java +++ b/src/biz/bokhorst/xprivacy/XLocationManager.java @@ -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; @@ -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; } @@ -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()); + } } } }