示例#1
0
 def load_device_action(self):
     try:
         dumpey.attached_devices()
         self.mainview.load_apk_from_device()
     except Exception:
         print '-'*60
         traceback.print_exc(file=sys.stdout)
         print '-'*60
         QMessageBox.warning(self, "Error", "No device has been detected. Are you sure an Android device is connected? Make sure adb is on your path.")
         return
示例#2
0
 def load_device_action(self):
     try:
         dumpey.attached_devices()
         self.mainview.load_apk_from_device()
     except Exception:
         print '-'*60
         traceback.print_exc(file=sys.stdout)
         print '-'*60
         QMessageBox.warning(self, "Error", "No device has been detected. Are you sure an Android device is connected? Make sure adb is on your path.")
         return
示例#3
0
 def test_attached_devices(self, popen_mock):
     raw = "List of devices attached\n%s\tdevice\n%s\tdevice\n%s\tdevice\n" \
           % (DumpeyTest.DEVICE_1, DumpeyTest.DEVICE_2, DumpeyTest.DEVICE_3)
     popen_mock.return_value = self.create_popen_mock(out=raw)
     out = dumpey.attached_devices()
     self.assertEquals(DumpeyTest.DEVICES, out)
     self.assert_popen_mock(popen_mock, 1, ['adb', 'devices'])
示例#4
0
 def get_device_data(self):
     data = {}
     for device in dumpey.attached_devices():
         data[device] = dumpey.api_version(device)
     return data
示例#5
0
 def get_device_data(self):
     data = {}
     for device in dumpey.attached_devices():
         data[device] = dumpey.api_version(device)
     return data