Files
Obsidian-Main/20. 專注/Android/ADB tcpip.md

403 B

Use adb tcpip to enable ADB over network.

Setup Android Device

Connect Device via USB

Connect Android device to a PC via USB, and make sure ADB recognize your device.

$ adb devices
List of devices attached
0123456789ABCDEF        device

Get IP of Device

Use below function to get IP address of device:

ifconfig eth0 | grep 'inet addr' | cut -d: -f2 | awk '{print $1}'