ui-automator-proxy, running at android phone , as a webservice, provide UiAutomator functions by websocket
1 clone repo
git clone [email protected]:XingRay/ui-automator-proxy.git
2 ensure adb is set, and only one device is connected
adb devices
2 run build script
cd ui-automator-proxy
./build.cmd
3 open broser or use curl, or other httpclient tools
http://127.0.0.1:51234/device/hierarchy
adb devices
get device serial, like: 192.168.0.100:5555 or 29DKW473LU92C7
edit build.cmd, add -s xxx after 'adb' in every adb cmd
before
call adb install %OUTPUT_DIR%\%APP_NAME%-%VERSION%-debug.apk
after
call adb -s 192.168.0.100:5555 install %OUTPUT_DIR%\%APP_NAME%-%VERSION%-debug.apk
edit this line:
call adb forward tcp:51234 tcp:51234
change first tcp:51234 to which port you want, for example
call adb forward tcp:54321 tcp:51234
do not change second port in this cmd if you not change app code