- Python 3.12.1
- BlueStacks 5.13.220.1002 (Portrait / 720x1280 / 240 DPI / recommend to disable Hyper-V so ADB ports aren't screwed up)
- Android Debug Bridge (from platform-tools_r32.0.0-windows)
- pure-python-adb 0.3.0.dev0
- Pillow 10.2.0
- All python automation scripts in this project use Android Debug Bridge(ADB) which is officially provided by Google.
- By using ADB, we can capture screenshot, check running activity, send touch input, etc...
- Set up python environment
- Install BlueStacks 5.13.220.1002 and set display settings to 'portrait', '720x1280', and Pixel density to '240 DPI (Medium)'
- There are two ways of running adb on Windows.
- (LOCAL) Place adb.exe where .py script exists
- Download platform tools from official Android Developer website
- Unzip two files (adb.exe, AdbWinApi.dll) to target path (where you're going to place .py files)
- (GLOBAL) Set environment variable of your system to run adb.exe globally
- Download platform tools from official Android Developer website
- Unzip two files (adb.exe, AdbWinApi.dll) to your desired path (e.g. 'C:/adb/')
- Add your desired path to environment variables' Path
- Clone or download the source as ZIP and unzip it.
- Install necessary packages
pip install -r requirements.txt
- Run your 'The Tower' app on your BlueStacks 5.
- Run state checking script to see everything is okay.
python run_state_check.py
- Run automation script and have fun.
python run_automation.py
To be updated
To be updated