@@ -110,7 +110,7 @@ def GetState(self):
110
110
return self ._device_state
111
111
112
112
def Install (self , apk_path , destination_dir = None , timeout_ms = None ):
113
- """Install apk to device.
113
+ """Install an apk to the device.
114
114
115
115
Doesn't support verifier file, instead allows destination directory to be
116
116
overridden.
@@ -133,10 +133,11 @@ def Install(self, apk_path, destination_dir=None, timeout_ms=None):
133
133
timeout_ms = timeout_ms )
134
134
135
135
def Push (self , source_file , device_filename , mtime = '0' , timeout_ms = None ):
136
- """Push source_file to file on device.
136
+ """Push a file or directory to the device.
137
137
138
138
Arguments:
139
- source_file: Either a filename or file-like object to push to the device.
139
+ source_file: Either a filename, a directory or file-like object to push to
140
+ the device.
140
141
device_filename: The filename on the device to write to.
141
142
mtime: Optional, modification time to set on the file.
142
143
timeout_ms: Expected timeout for any part of the push.
@@ -158,7 +159,7 @@ def Push(self, source_file, device_filename, mtime='0', timeout_ms=None):
158
159
connection .Close ()
159
160
160
161
def Pull (self , device_filename , dest_file = None , timeout_ms = None ):
161
- """Pull file from device.
162
+ """Pull a file from the device.
162
163
163
164
Arguments:
164
165
device_filename: The filename on the device to pull.
@@ -198,7 +199,10 @@ def List(self, device_path):
198
199
return listing
199
200
200
201
def Reboot (self , destination = '' ):
201
- """Reboot device, specify 'bootloader' for fastboot."""
202
+ """Reboot the device.
203
+
204
+ Specify 'bootloader' for fastboot.
205
+ """
202
206
self .protocol_handler .Open (self .handle , 'reboot:%s' % destination )
203
207
204
208
def RebootBootloader (self ):
@@ -210,7 +214,7 @@ def Remount(self):
210
214
return self .protocol_handler .Command (self .handle , service = 'remount' )
211
215
212
216
def Root (self ):
213
- """Restart adbd as root on device."""
217
+ """Restart adbd as root on the device."""
214
218
return self .protocol_handler .Command (self .handle , service = 'root' )
215
219
216
220
def Shell (self , command , timeout_ms = None ):
0 commit comments