Merge "Fix adb proxy get device id on windows" am: 120f46ef53

Original change: https://android-review.googlesource.com/c/platform/development/+/2098153

Change-Id: I0af71f0dbb26c1dfd0b52aadf6c68ec20bca6c65
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2022-05-23 14:57:42 +00:00
committed by Automerger Merge Worker

View File

@@ -322,7 +322,7 @@ class FetchFileEndpoint(DeviceRequestEndpoint):
def check_root(device_id):
log.debug("Checking root access on {}".format(device_id))
return call_adb('shell su root id -u', device_id) == "0\n"
return int(call_adb('shell su root id -u', device_id)) == 0
TRACE_THREADS = {}