From 017f0271b7e48856a0fd976360152d122cc9d4f7 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Wed, 23 Mar 2016 21:12:04 -0700 Subject: [PATCH] filter some noisy messages from adb logcat --- packages/flutter_tools/lib/src/android/android_device.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/flutter_tools/lib/src/android/android_device.dart b/packages/flutter_tools/lib/src/android/android_device.dart index 85035a9342e..6cdc73e5ce3 100644 --- a/packages/flutter_tools/lib/src/android/android_device.dart +++ b/packages/flutter_tools/lib/src/android/android_device.dart @@ -381,7 +381,7 @@ class AndroidDevice extends Device { if (tracePath != null) { String localPath = (outPath != null) ? outPath : path.basename(tracePath); - // Run cat via ADB to print the captured trace file. (adb pull will be unable + // Run cat via ADB to print the captured trace file. (adb pull will be unable // to access the file if it does not have root permissions) IOSink catOutput = new File(localPath).openWrite(); List catCommand = adbCommandForDevice( @@ -566,6 +566,10 @@ class _AdbLogReader extends DeviceLogReader { } void _onLine(String line) { + // Filter out some noisy ActivityManager notifications. + if (line.startsWith('W/ActivityManager: getRunningAppProcesses')) + return; + _linesStreamController.add(line); }