Skip to content

Commit 78defbe

Browse files
committed
Added compressed option to uiautomator dump
1 parent 23271aa commit 78defbe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/com/dtmilano/android/viewclient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@author: Diego Torres Milano
1919
'''
2020

21-
__version__ = '9.5.0'
21+
__version__ = '9.5.1'
2222

2323
import sys
2424
import warnings
@@ -1951,7 +1951,7 @@ def dump(self, window=-1, sleep=1):
19511951
if self.useUiAutomator:
19521952
# NOTICE:
19531953
# Using /dev/tty this works even on devices with no sdcard
1954-
received = unicode(self.device.shell('uiautomator dump /dev/tty >/dev/null'), encoding='utf-8', errors='replace')
1954+
received = unicode(self.device.shell('uiautomator dump --compressed /dev/tty >/dev/null'), encoding='utf-8', errors='replace')
19551955
if not received:
19561956
raise RuntimeError('ERROR: Empty UiAutomator dump was received')
19571957
if DEBUG:

0 commit comments

Comments
 (0)