1. Phone root
Root is the only super user in the system, get root permission, can start or stop a process at will, delete or add users, add and disable hardware. For Android phone, some mobile phone manufacturers will be embedded in the mobile phone fixed application software, to promote the role of propaganda, but this to the mobile phone users caused inconvenience, ordinary users can not delete them, This requires root. In short, to get root permission is to let mobile phone users use the phone more freely, then, how to give the phone root, access to access it? This is actually very simple, there are many root tools, here is a simple way to introduce you.
root.qq.com, download and install one-click Root Tool, or Jinshan Assistant can
2.adbWireless Wireless use ADB
After installation, you need to turn on, that is, click the Circle button, the IP address will be displayed after connection
3. (1) cmd input: adb connnet 10.6.125.74:5555 connected to the phone
(2) Open Appium Server
The test code is as follows:
# _*_ Coding:utf-8 _*_from appium import webdriverfrom appium.webdriver.mobilecommand import Mobilecommandimport Timeimport osdesired_caps = {}desired_caps[' platformname '] = ' Android ' desired_caps[' platformversion '] = ' 4.4.2 ' desired_caps[' devicename ' = ' 10.6.125.74:5555 ' desired_caps[' apppackage '] = ' com.android.browser ' desired_caps[' Appactivity '] = '. Browseractivity ' desired_caps[' browsername ']= ' Chrome ' desired_caps[' unicodekeyboard '] = truedesired_caps[' Resetkeyboard '] = truedesired_caps[' newcommandtimeout ') = 7200driver = Webdriver. Remote (' Http://localhost:4723/wd/hub ', Desired_caps) time.sleep (5) driver.get ("https://m.baidu.com/") Time.sleep (5 ) Driver.find_element_by_css_selector ("#index-kw"). Send_keys ("Test") Time.sleep (5)
After executing the script, you can see that the server side has found the device
Google Browser successfully opened Baidu, and input test
Android Appium Wireless debugging