[build-tools] Stream logcat to a file (#3627)