Do not generate watchlist test report in production config

Test: atest com.google.android.watchlist.gts.NetworkWatchlistTest
Bug: 76102046
Change-Id: I676fbb75b9b48157e4558a2e3eb7fd4efc02f1fc
This commit is contained in:
Ricky Wai
2018-04-06 16:43:39 +01:00
parent 1bc47a4c1d
commit 96f4a7150f

View File

@@ -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;
}