From 96f4a7150f03527f7c2ee2a7aec464b422fbcdde Mon Sep 17 00:00:00 2001 From: Ricky Wai Date: Fri, 6 Apr 2018 16:43:39 +0100 Subject: [PATCH] Do not generate watchlist test report in production config Test: atest com.google.android.watchlist.gts.NetworkWatchlistTest Bug: 76102046 Change-Id: I676fbb75b9b48157e4558a2e3eb7fd4efc02f1fc --- .../server/net/watchlist/NetworkWatchlistShellCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/net/watchlist/NetworkWatchlistShellCommand.java b/services/core/java/com/android/server/net/watchlist/NetworkWatchlistShellCommand.java index 17c5868a53f75..766d8ca8a47c0 100644 --- a/services/core/java/com/android/server/net/watchlist/NetworkWatchlistShellCommand.java +++ b/services/core/java/com/android/server/net/watchlist/NetworkWatchlistShellCommand.java @@ -91,7 +91,7 @@ class NetworkWatchlistShellCommand extends ShellCommand { final long ident = Binder.clearCallingIdentity(); try { // Reset last report time - if (!WatchlistConfig.getInstance().isConfigSecure()) { + if (WatchlistConfig.getInstance().isConfigSecure()) { pw.println("Error: Cannot force generate report under production config"); return -1; }