vault backup: 2025-01-15 10:01:25
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
Use `adb tcpip` to enable ADB over network.
|
Use `adb tcpip` to enable ADB over network.
|
||||||
|
|
||||||
# Setup Android Device
|
# Setup Android Device
|
||||||
|
## Connect Device via USB
|
||||||
Connect Android device to a PC via USB, and make sure ADB recognize your device.
|
Connect Android device to a PC via USB, and make sure ADB recognize your device.
|
||||||
```
|
```bash
|
||||||
$ adb devices
|
$ adb devices
|
||||||
List of devices attached
|
List of devices attached
|
||||||
0123456789ABCDEF device
|
0123456789ABCDEF device
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Get IP of Device
|
||||||
|
Use below function to get IP address of device:
|
||||||
|
```bash
|
||||||
|
ifconfig eth0 | grep 'inet addr' | cut -d: -f2 | awk '{print $1}'
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user