Lines Matching refs:device

71   device = adb.device.get_device(out.serial)
73 device.root()
76 device.shell("setenforce 0".split())
79 lib32 = device.shell("mktemp".split())[0].strip()
80 lib64 = device.shell("mktemp".split())[0].strip()
83 device.push(out.lib32, lib32)
86 device.push(out.lib64, lib64)
93 new_env["ANDROID_SERIAL"] = device.serial
94 p = subprocess.Popen([device.adb_path, "jdwp"], env=new_env, stdout=subprocess.PIPE)
102 device.shell("logcat -c".split())
106 res = check_single_process(p, device, mkcmd, lib32, lib64);
109 device.shell('rm {}'.format(lib32).split())
110 device.shell('rm {}'.format(lib64).split())
117 def check_single_process(pid, device, mkcmd, bit32, bit64): argument
120 name = device.shell('cat /proc/{}/cmdline'.format(pid).split())[0].strip('\0')
123 target32 = device.shell('mktemp -p {}'.format(targetdir).split())[0].strip()
125 target64 = device.shell('mktemp -p {}'.format(targetdir).split())[0].strip()
128 device.shell('cp {} {}'.format(bit32, target32).split())
129 device.shell('cp {} {}'.format(bit64, target64).split())
130 device.shell('chmod 555 {}'.format(target32).split())
131 device.shell('chmod 555 {}'.format(target64).split())
133 device.shell(['am', 'attach-agent', str(pid), mkcmd(target32)])
134 device.shell(['am', 'attach-agent', str(pid), mkcmd(target64)])
136 device.shell('kill -3 {}'.format(pid).split())
140 device.shell(['rm', '-f', target32])
141 device.shell(['rm', '-f', target64])
145 for l in device.shell(lc_cmd)[0].strip().split('\n'):
162 except adb.device.ShellError as e: