Android tips & trics

Debugowanie przez WI-FI
IntelliJ uruchomiony natychmiast pokazuje device jak się połączy

1. Podłacz telefon via usb:

XXX@XXX-PC /c/Work/Android/platform-tools
 $ adb tcpip 5555
 restarting in TCP mode port: 5555

2. Rozłącz z usb i połącz over WI-FI

XXX@XXX-PC /c/Work/Android/platform-tools
 $ adb connect 192.168.1.100
 connected to 192.168.1.100:5555

Problemy – pomaga restart device:
1.

$ adb connect 192.168.1.100
 unable to connect to 192.168.1.100:5555

2.

$ adb tcpip 5555
 error: device not found

Sprawdź:

$ ping 192.168.1.100
Pinging 192.168.1.100 with 32 bytes of data:
 Reply from 192.168.1.100: bytes=32 time=768ms TTL=64
 Reply from 192.168.1.100: bytes=32 time=758ms TTL=64
 Reply from 192.168.1.100: bytes=32 time=718ms TTL=64
 Reply from 192.168.1.100: bytes=32 time=817ms TTL=64
Ping statistics for 192.168.1.100:
 Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
 Approximate round trip times in milli-seconds:
 Minimum = 718ms, Maximum = 817ms, Average = 765ms

Leave a Reply

Your email address will not be published. Required fields are marked *