openatx / uiautomator2

Android Uiautomator2 Python Wrapper
MIT License
6.48k stars 1.38k forks source link

Feature to configure the ADB port in uiautomator2. Users can now specify a custom port, providing more flexibility. #988

Closed Diogo-py closed 2 months ago

Diogo-py commented 4 months ago

Changes:

Added an option to set a custom ADB port.

Example: For instance, the ADB server typically starts on the default port 5037. However, by using adb -P 5038, it's possible to start a new server on port 5038 (or any other available port). I want to be able to connect to a device that is on adb port 5038

codeskyblue commented 4 months ago

Check adbutils for more details. The adbutils is support change port by env var

Diogo-py commented 4 months ago

I achieved. :)