From ad4e8090459410bf9e6b38fbd7c6fbf6b1c07716 Mon Sep 17 00:00:00 2001 From: Linus789 Date: Tue, 21 Feb 2023 23:12:17 +0100 Subject: [PATCH] fix adb property fallback related issue: #64 --- adb/device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/device.go b/adb/device.go index 6221e85..791a562 100644 --- a/adb/device.go +++ b/adb/device.go @@ -120,7 +120,7 @@ func (d *Device) AdbProp(property string) (string, error) { return "", err } result := string(stdout) - if result == "" { + if result == "" || result == "\n" || result == "\r\n" || result == "\r" { return "", fmt.Errorf("could not get property %s", property) } return result, nil