Reputation: 15664
Android studio 3.6 If I want to start adb I use USB/microUSB cable. After plugin cable I start in console command:
adb logcat -vtime
And as result I see all logs of my application.
Nice. It's work find.
Is it possible to start adb logcat
WITHOUT cable?
Upvotes: 0
Views: 1338
Reputation: 11
Following are the steps to connect an Android device without a cable
Upvotes: 0
Reputation: 15664
This work for me on Windows machine:
adb connect "IP address of your phone".
Ready
adb logcat -vtime
To disconnect just type: adb disconnect
P.S. Print device's ip address by adb
adb shell ip addr show wlan0 | grep "inet\s" | awk '{print $2}' | awk -F'/' '{print $1}'
Upvotes: 1
Reputation: 56
At the moment I don't believe it's possible without at least initializing with the cable. Connect your cable, run
adb connect DEVICE-IP-ADDRESS
and that should connect your device to Android Studio, and then you can forego the cable for the rest of the session, but you'll have to do this every time. My dev phone/watch has a static IP address on my home network, so I wrote a shell script that makes it easy to connect with the syntax
connect watch/phone
Looks like Android 11 will add support without the cable though.
https://www.xda-developers.com/android-11-native-wireless-adb/
Upvotes: 1