From b5f7fef4720365ac77a42faafec389aa45a40562 Mon Sep 17 00:00:00 2001 From: "frankf@chromium.org" Date: Wed, 19 Jun 2013 04:06:26 +0000 Subject: [PATCH] [Android] Clear adb logcat during adb_logcat_monitor startup. BUG=249039 NOTRY=True Review URL: https://chromiumcodereview.appspot.com/17438004 git-svn-id: http://src.chromium.org/svn/trunk/src/build@207175 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- android/adb_logcat_monitor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/android/adb_logcat_monitor.py b/android/adb_logcat_monitor.py index aeaef0b09..35ef7905b 100755 --- a/android/adb_logcat_monitor.py +++ b/android/adb_logcat_monitor.py @@ -126,6 +126,7 @@ def main(base_dir, adb_cmd='adb'): while True: for device_id in GetAttachedDevices(adb_cmd): if not device_id in devices: + subprocess.call([adb_cmd, '-s', device_id, 'logcat', '-c']) devices[device_id] = (None, 0) for device in devices: