Skip to content

Commit e45d057

Browse files
eprucka3Android Build Coastguard Worker
authored andcommitted
[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 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:609dd77d532761620249061b93850e596915c518) Merged-In: I46ee5844dc2ebf3d4e41af699d93fede5c70dd7c Change-Id: I46ee5844dc2ebf3d4e41af699d93fede5c70dd7c
1 parent 1144bca commit e45d057

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/core/java/com/android/server/security/intrusiondetection/NetworkLogSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ public void disable() {
8383
}
8484
try {
8585
if (!mIpConnectivityMetrics.removeNetdEventCallback(
86-
INetdEventCallback.CALLBACK_CALLER_NETWORK_WATCHLIST)) {
86+
INetdEventCallback.CALLBACK_CALLER_DEVICE_POLICY)) {
8787

8888
mIsNetworkLoggingEnabled.set(false);
8989
} else {
90-
Slog.e(TAG, "Failed to enable network logging; invalid callback");
90+
Slog.e(TAG, "Failed to disable network logging; invalid callback");
9191
}
9292
} catch (RemoteException e) {
9393
Slog.e(TAG, "Failed to disable network logging; ", e);

0 commit comments

Comments
 (0)