You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adb: Use current date/time instead of last logcat line for timestamp
We have some phones, including the Vivo X90 Pro which return an empty
string for `logcat -t 1`, resulting in an `unwrap()` crash before
starting logging. There doesn't appear to be any reason to check the
time of the latest **random** (not even `--uid`-scoped) message in
`logcat` as we can just read the current date and time as well. We
haven't started the app yet either way, and this timestamp is inevitably
already going to be later than the most recent message.
Also remove some unnecessary shell escaping (which should have been done
by `shlex` otherwise) by calling `adb logcat` rather than `adb shell
logcat`.
0 commit comments