From 49757b52a8bd1c19a740e4c1695157f6a7d60251 Mon Sep 17 00:00:00 2001 From: "xucong.053" Date: Thu, 27 Oct 2022 18:07:17 +0800 Subject: [PATCH] fix: failed to catch logcat --- hrp/pkg/uixt/android_device.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hrp/pkg/uixt/android_device.go b/hrp/pkg/uixt/android_device.go index e2a30d93..e86206c6 100644 --- a/hrp/pkg/uixt/android_device.go +++ b/hrp/pkg/uixt/android_device.go @@ -310,6 +310,9 @@ func ConvertPoints(data string) (eps []ExportPoint) { for _, line := range lines { if strings.Contains(line, "ext") { idx := strings.Index(line, "{") + if idx == -1 { + continue + } line = line[idx:] p := ExportPoint{} err := json.Unmarshal([]byte(line), &p)