I am not familiar with android development. But just want to use python script to do something on my android device/emulator. For example:
I have tried
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),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?
You can install the pure-python-adb library using pip install pure-python-adb . Optional: To make things easier for us while developing our scripts, we can install an open-source program called scrcpy which allows us to display and control our android device with our computer using a mouse and keyboard.
Run and stop an emulator, and clear data To stop a running emulator, click Menu and select Stop. To clear the data for an emulator, select Wipe Data. Or click Menu and select Wipe Data.
You can try AndroidViewClient/culebra which provides also a UI (see Culebra GUI) which allows you to do what you describe as your needs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With