Loading services/core/java/com/android/server/net/watchlist/WatchlistLoggingHandler.java +4 −0 Original line number Diff line number Diff line Loading @@ -186,6 +186,10 @@ class WatchlistLoggingHandler extends Handler { System.currentTimeMillis()); final WatchlistReportDbHelper.AggregatedResult aggregatedResult = mDbHelper.getAggregatedRecords(); if (aggregatedResult == null) { Slog.i(TAG, "Cannot get result from database"); return; } // Get all digests for watchlist report, it should include all installed // application digests and previously recorded app digests. final List<String> digestsForReport = getAllDigestsForReport(aggregatedResult); Loading services/core/java/com/android/server/net/watchlist/WatchlistReportDbHelper.java +3 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.server.net.watchlist; import android.annotation.Nullable; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; Loading Loading @@ -79,7 +80,7 @@ class WatchlistReportDbHelper extends SQLiteOpenHelper { final Set<String> appDigestList; // The c&c domain or ip visited before. final String cncDomainVisited; @Nullable final String cncDomainVisited; // A list of app digests and c&c domain visited. final HashMap<String, String> appDigestCNCList; Loading Loading @@ -155,7 +156,7 @@ class WatchlistReportDbHelper extends SQLiteOpenHelper { WhiteListReportContract.TABLE, DIGEST_DOMAIN_PROJECTION, selectStatement, new String[]{"" + twoDaysBefore, "" + yesterday}, null, null, null, null); if (c == null || c.getCount() == 0) { if (c == null) { return null; } final HashSet<String> appDigestList = new HashSet<>(); Loading Loading
services/core/java/com/android/server/net/watchlist/WatchlistLoggingHandler.java +4 −0 Original line number Diff line number Diff line Loading @@ -186,6 +186,10 @@ class WatchlistLoggingHandler extends Handler { System.currentTimeMillis()); final WatchlistReportDbHelper.AggregatedResult aggregatedResult = mDbHelper.getAggregatedRecords(); if (aggregatedResult == null) { Slog.i(TAG, "Cannot get result from database"); return; } // Get all digests for watchlist report, it should include all installed // application digests and previously recorded app digests. final List<String> digestsForReport = getAllDigestsForReport(aggregatedResult); Loading
services/core/java/com/android/server/net/watchlist/WatchlistReportDbHelper.java +3 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.server.net.watchlist; import android.annotation.Nullable; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; Loading Loading @@ -79,7 +80,7 @@ class WatchlistReportDbHelper extends SQLiteOpenHelper { final Set<String> appDigestList; // The c&c domain or ip visited before. final String cncDomainVisited; @Nullable final String cncDomainVisited; // A list of app digests and c&c domain visited. final HashMap<String, String> appDigestCNCList; Loading Loading @@ -155,7 +156,7 @@ class WatchlistReportDbHelper extends SQLiteOpenHelper { WhiteListReportContract.TABLE, DIGEST_DOMAIN_PROJECTION, selectStatement, new String[]{"" + twoDaysBefore, "" + yesterday}, null, null, null, null); if (c == null || c.getCount() == 0) { if (c == null) { return null; } final HashSet<String> appDigestList = new HashSet<>(); Loading