diff --git a/build/mobile/devicemanagerADB.py b/build/mobile/devicemanagerADB.py index eb51fe8bdb01..bc9f8a52189c 100644 --- a/build/mobile/devicemanagerADB.py +++ b/build/mobile/devicemanagerADB.py @@ -237,6 +237,7 @@ class DeviceManagerADB(DeviceManager): def listFiles(self, rootdir): p = self.runCmd(["shell", "ls", "-a", rootdir]) data = p.stdout.readlines() + data[:] = [item.rstrip('\r\n') for item in data] if (len(data) == 1): if (data[0] == rootdir): return []