Using Genymotion as the virtual device, any time I run even a very simple adb touch (x,y) command to touch the device at any (x,y) coordinate, the virtual phone just restarts.
Is there some sort of setting that you need to configure with Genymotion to allow automated touches? I've never seen this behavior before with monkeyrunner
Here's the simple script:
$monkeyrunner touchtest.py
touchtest.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
device = MonkeyRunner.waitForConnection()
MonkeyRunner.sleep(5)
device.touch(426, 1140, MonkeyDevice.DOWN_AND_UP)
When running this, the phone just restarts instead of registering any touch command