Solution to atx-agent startup failure on Android

atx-agent is a necessary condition for running uiautomator on Android. During running the script, if atx-agent fails to start on Android, you can try to solve it by the following methods:

1. Connect the Android device to the computer;
2. [Win+R] on the computer, enter cmd to enter the command prompt window;
3. Check whether the device is successfully connected,

adb devices

The real device name that appears before the device is successfully connected;
4. Enter the phone shell environment:

adb shell

5. Grant device permissions:

chmod 775 /data/local/tmp/atx-agent

6. Start atx-agent:

/data/local/tmp/atx-agent server -d   #添加-d表示在后台启动

The above is a method that I tried to successfully solve the problem that the atx-agent failed to start on Android shipped during the process of running the script to automate the test of the apk in the Android device. I would like to use this as a summary and learning reference.

Guess you like

Origin blog.csdn.net/weixin_44996886/article/details/130289482