control android device/emulator by python

Mithril picture Mithril · Apr 1, 2016 · Viewed 13.1k times · Source

I am not familiar with android development. But just want to use python script to do something on my android device/emulator. For example:

  1. change system settings.
  2. set a proxy.
  3. open app A, click some place, do something else...
  4. then open app B, tap up down, do something else...
  5. and so on.

I have tried

  1. monkeyrunner, which actually is not by python(it's by Jython), and usually I don't know why the example code can't work(lack of debugging methods in this way.I can use ipython or pycharm if one support python),
  2. appium, which introduce a very good framework, completely support python.But the tutorial always says about testing only one app, seems it can not change system settings or something like press HOME or BACK button.

I have never do such things before, are there any tools or tutorials could cover my case?

Answer

Diego Torres Milano picture Diego Torres Milano · Apr 1, 2016

You can try AndroidViewClient/culebra which provides also a UI (see Culebra GUI) which allows you to do what you describe as your needs.

enter image description here enter image description here