• Home
  • Raw
  • Download

Lines Matching refs:shell

47         was_root = self.device.shell(['id', '-un'])[0].strip() == 'root'
64 was_root = self.device.shell(['id', '-un'])[0].strip() == 'root'
303 out = self.device.shell(['cat', '/proc/uptime'])[0].strip()
312 self.assertRaises(adb.ShellError, self.device.shell, ['false'])
315 out = self.device.shell(['echo', 'foo'])[0]
348 output = self.device.shell(['uname'])[0]
464 self.device.shell(proc_query)
523 stdout, _ = self.device.shell(["cat", log_path])
589 result = self.device.shell(
594 result = self.device.shell(
599 result = self.device.shell(shlex.split("'true && echo t'"))[0].strip()
601 result = self.device.shell(
606 result = self.device.shell(shlex.split('FOO=a BAR=b echo t'))[0].strip()
608 result = self.device.shell(
637 self.assertEqual('root', self.device.shell(['id', '-un'])[0].strip())
642 self.assertEqual('shell', self.device.shell(['id', '-un'])[0].strip())
649 original_user = self.device.shell(['id', '-un'])[0].strip()
684 self.device.shell(['setprop', prop_name, '""'])
688 self.device.shell(['getprop', prop_name])[0].strip(), 'qux')
700 device.shell(['md5sum', '/proc/uptime'])
751 device.shell(['dd', 'if=/dev/urandom', 'of={}'.format(full_path),
753 dev_md5, _ = device.shell([get_md5_prog(device), full_path])[0].split()
776 dev_md5, _ = self.device.shell([get_md5_prog(self.device),
793 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_FILE])
797 self.device.shell(['rm', '-f', self.DEVICE_TEMP_FILE])
803 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
804 self.device.shell(['mkdir', self.DEVICE_TEMP_DIR])
821 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
828 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
829 self.device.shell(['mkdir', self.DEVICE_TEMP_DIR])
848 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
872 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
873 self.device.shell(['mkdir', self.DEVICE_TEMP_DIR])
889 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
890 self.device.shell(['mkdir', self.DEVICE_TEMP_DIR])
920 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
953 self.device.shell(['rm', '-rf', remote_path])
969 self.device.shell(['rm', '-rf', remote_path])
984 self.device.shell(['touch', self.DEVICE_TEMP_FILE])
985 self.device.shell(['chmod', 'a-rwx', self.DEVICE_TEMP_FILE])
994 self.device.shell(['rm', '-f', self.DEVICE_TEMP_FILE])
999 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_FILE])
1003 self.device.shell(cmd)
1004 dev_md5, _ = self.device.shell(
1014 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1015 self.device.shell(['mkdir', '-p', self.DEVICE_TEMP_DIR])
1029 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1049 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1050 self.device.shell(['mkdir', '-p', self.DEVICE_TEMP_DIR])
1064 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1082 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1083 self.device.shell(['mkdir', '-p', self.DEVICE_TEMP_DIR])
1095 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1106 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1107 self.device.shell(['mkdir', '-p', self.DEVICE_TEMP_DIR])
1119 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1134 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1135 self.device.shell(['mkdir', '-p', remote_dir, remote_links])
1136 self.device.shell(['ln', '-s', remote_links, remote_symlink])
1143 self.device.shell(
1154 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1165 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1166 self.device.shell(['mkdir', '-p', remote_empty_path])
1181 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1182 self.device.shell(['mkdir', '-p', subdir])
1205 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1216 dev_md5, _ = device.shell(
1236 device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1264 device.shell(['rm', '-rf', device_dir])
1270 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1286 device.shell(['rm', '-rf', device_dir])
1287 device.shell(['mkdir', '-p', device_dir])
1294 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1308 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1309 self.device.shell(['mkdir', '-p', device_dir])
1321 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1334 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1335 self.device.shell(['mkdir', '-p', device_dir])
1336 self.device.shell(['echo', 'foo', '>', device_file])
1345 stdout, stderr = self.device.shell(['cat', device_file])
1348 self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])
1357 self.device.shell(['rm', '-f', '/data/local/tmp/adb-test-*'])
1368 output = self.device.shell(
1376 self.device.shell(['rm', '-f', '/data/local/tmp/adb-test-*'])
1446 self.device.shell(['dd', 'if=/dev/zero', 'of=/data/local/tmp/tmp_large_file',