Пример #1
0
    def test_get_pid_on_device(self):
        adb = ADB()
        adb.enable_debug()
        adb.set_adb_path()
        adb.set_target_device()

        pid = utils.get_pid_on_device(adb, 'com.android.commands.monkey')
        utils.kill_proc_on_device(adb, pid)
        print(pid)
Пример #2
0
 def test_install(self):
     adb = ADB()
     adb.set_adb_path()
     _, ds = adb.get_devices()
     device_id = ds[0]
     adb.set_target_device(device_id)
     adb.enable_debug()
     output = adb.install(reinstall=True, pkgapp='ctssetup.apk')
     print("output: " + str(output))