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