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

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

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

View File

@@ -547,7 +547,7 @@ class FetchFilesEndpoint(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 = {}