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

Commit 609dd77d authored by Liz Prucka's avatar Liz Prucka
Browse files

[Intrusion Logging] Fix INetdEventCallback in disable

The INetdEventCallback CALLBACK_CALLER_DEVICE_POLICY
is registered, but the incorrect callback was removed.

Bugfix so the correct callback is toggled.

Bug: 412330307
Test: atest android.security.cts.IntrusionDetectionManagerTest
Ignore-AOSP-First: security feature
Flag: EXEMPT: bugfix in localized component
Change-Id: I46ee5844dc2ebf3d4e41af699d93fede5c70dd7c
parent e7ba61fd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -83,11 +83,11 @@ public class NetworkLogSource implements DataSource {
        }
        try {
            if (!mIpConnectivityMetrics.removeNetdEventCallback(
                    INetdEventCallback.CALLBACK_CALLER_NETWORK_WATCHLIST)) {
                    INetdEventCallback.CALLBACK_CALLER_DEVICE_POLICY)) {

                mIsNetworkLoggingEnabled.set(false);
            } else {
                Slog.e(TAG, "Failed to enable network logging; invalid callback");
                Slog.e(TAG, "Failed to disable network logging; invalid callback");
            }
        } catch (RemoteException e) {
            Slog.e(TAG, "Failed to disable network logging; ", e);