Merge "Fix adb proxy get device id on windows"

This commit is contained in:
Treehugger Robot
2022-05-23 14:42:21 +00:00
committed by Gerrit Code Review

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 = {}