使用的手机端app为 ADB WiFi Reborn android
Instructions (I assume you have ADB installed in the PC): shell
- Execute this application in your android device
- Click the bug image until it becomes green (you provably need to provide superuser permissions)
- Open a terminal or command session in your PC
- execute "adb connect XX.XX.XX.XX" in the PC (the connect address is provided by my application
- execute "adb shell" in the PC (or any ADB command) 安全
** Remember to activate USB debugging in device settings **
** THIS APP REQUIRES SUPERUSER PERMISSIONS ** session
miui官方下载“开发版”,刷机后,在“安全中心”->“受权管理”内会有一项“root权限管理”,添加root权限给app。 app
在电脑端使用adb命令连接手机,默认端口为5555,若是连接成功,在Android studio中就能看到手机,接着就正常调试了 ide
$ adb connect #.#.#.# connected to #.#.#.#:5555 $ adb devices List of devices attached #.#.#.#:5555 device