File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1818def get_match_apk (package_name , path ):
1919 list = []
2020 for packages in utils .shell ("pm list packages -f %s" % package_name ).stdout .readlines ():
21- list .append (packages .split (":" )[- 1 ].split ("=" )[0 ])
21+ if packages .split (":" )[0 ] == "package" :
22+ list .append (packages .split (":" )[- 1 ].split ("=" )[0 ])
2223
2324 utils .adb ("pull %s %s" % (list [0 ], path )).wait ()
2425
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def line_chart():
104104 if not os .path .isdir (path ):
105105 os .makedirs (path )
106106
107- #图标保存至脚本当前目录的chart目录下
107+ #图片保存至脚本当前目录的chart目录下
108108 c .makeChart (PATH ("%s/%s.png" % (path , utils .timestamp ())))
109109
110110if __name__ == "__main__" :
Original file line number Diff line number Diff line change 1010import os
1111import string
1212import sys
13+ import time
1314
1415from scriptUtils import utils
1516
2021
2122def record ():
2223 utils .shell ("screenrecord /data/local/tmp/video.mp4" )
23- input_key = raw_input ("Please press the Enter key to stop recording:\n " )
24+ input_key = raw_input ("Please press the Enter key to stop recording:\n " )
2425 if input_key == "" :
2526 utils .adb ("kill-server" )
2627
2728 print "Get Video file..."
29+ utils .adb ("start-server" )
30+ time .sleep (1.5 )
2831
2932 path = PATH ("%s/video" % os .getcwd ())
3033 if not os .path .isdir (path ):
You can’t perform that action at this time.
0 commit comments