From 8a703291444d2233bd9179a4d1586111dab999b2 Mon Sep 17 00:00:00 2001 From: Huizi Yang Date: Fri, 10 Sep 2021 01:41:42 -0700 Subject: vm/adb: support both old and new device format --- vm/vmimpl/console.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vm/vmimpl') diff --git a/vm/vmimpl/console.go b/vm/vmimpl/console.go index 38314bcf5..5958b2a19 100644 --- a/vm/vmimpl/console.go +++ b/vm/vmimpl/console.go @@ -76,7 +76,9 @@ func (t *tty) Close() error { return nil } -func OpenRemoteKernelLog(ip string, console string) (rc io.ReadCloser, err error) { +// OpenRemoteKernelLog accesses to the host where Android VM runs on, not Android VM itself. +// The host stores all kernel outputs of Android VM so in case of crashes nothing will be lost. +func OpenRemoteKernelLog(ip, console string) (rc io.ReadCloser, err error) { rpipe, wpipe, err := osutil.LongPipe() if err != nil { return nil, err -- cgit mrf-deployment