Browse Source

fix adb property fallback

related issue: #64
pull/70/head
Linus789 3 years ago
parent
commit
ad4e809045
  1. 2
      adb/device.go

2
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

Loading…
Cancel
Save