Why Appium server restart ADB server often?

Hi @willosser,

If adb server restart without root privilege, then appium Server can’t connect to real device anymore. That’s a big issue… Now I bypass this issue by launcher Appium server with “sudo”, seems works fine for now.

Another way is do not use “set_network_connection”. Instead, we can set device to airplane mode by adb command below.

adb shell settings put global airplane_mode_on 1
adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true

1 Like