Add temperature fallback
Adds a fallback path for getting temperature data from devices if the
default code path does not return any sensor values. This fallback
relies on "dumpsys thermalservice", and is thus only available on
Android 10 and above.
There is only currently one known device that will actually use this
path (Samsung S24 international version) and has been confirmed to work
there. However, it should work on any Android 10+ device that has
trouble reading sensor values directly, e.g. due to permission issues.
Bug: b:332809361
Change-Id: I4f97bb11c51ed5485c980678e16df8c8b66c2efc
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/python-adb/+/5703923
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
2 files changed