Skip to content

Instantly share code, notes, and snippets.

@th3d0g
Created April 10, 2016 15:55
Show Gist options
  • Save th3d0g/3a48982023dcbb2952019bcb3b201e15 to your computer and use it in GitHub Desktop.
Save th3d0g/3a48982023dcbb2952019bcb3b201e15 to your computer and use it in GitHub Desktop.
ADB over Wifi
/////////////////////
// Use ADB over WIFI.
/////////////////////
// Run ADB commands (e.g. logcat) with your device connect via WIFI rather than USB.
// Note; Can be slow to push/install larger APK files.
// 1. Set port.
adb tcpip 5555
// 2. Connect devie to same WIFI as compuster and get mobile device IP.
adb shell ip -f inet addr show wlan0
// 3. Remove USB then connect to device.
adb connect [mobile-ip]:5555
// Revert back to USB mode (device must be connected via Wifi)
adb usb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment