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

Commit 1e975cc2 authored by Ricky Wai's avatar Ricky Wai Committed by Android (Google) Code Review
Browse files

Merge "Enable IP callback for Network Watchlist"

parents 90a82350 263964b0
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -219,14 +219,10 @@ public class NetdEventListenerService extends INetdEventListener.Stub {

        for (INetdEventCallback callback : mNetdEventCallbackList) {
            if (callback != null) {
                // TODO(rickywai): Remove this checking to collect ip in watchlist.
                if (callback ==
                        mNetdEventCallbackList[INetdEventCallback.CALLBACK_CALLER_DEVICE_POLICY]) {
                callback.onConnectEvent(ipAddr, port, timestamp, uid);
            }
        }
    }
    }

    @Override
    public synchronized void onWakeupEvent(String prefix, int uid, int ethertype, int ipNextHeader,