git clone https://github.com/openatx/uiautomator2
cd uiautomator2
pip install poetry
poetry install
# download apk to assets/
make sync
# run python shell after device or emulator connected
poetry run uiautomator2 console
Default configuration can retrived from /android/view/ViewConfiguration.java
Unit: ms
- TAP_TIMEOUT: 100
- LONG_PRESS_TIMEOUT: 500
- DOUBLE_TAP_TIMEOUT: 300