Skip to content

Instantly share code, notes, and snippets.

@alvaro893
Last active May 12, 2017 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvaro893/bebc25f3ca30b3510363ae4e9d866b86 to your computer and use it in GitHub Desktop.
Save alvaro893/bebc25f3ca30b3510363ae4e9d866b86 to your computer and use it in GitHub Desktop.
Collection of handy adb commands and tricks

Enable android debugging over tcp/ip in two steps

  • connect the phone to the pc using the usb port
  • Enable adb over network in Developer options
  • Go to the terminal and look for your phone
adb devices
  • and then use the device id that you got:
adb -s <device_id> tcpip 5555
  • now disconnect it from usb and connect using the ip and port displayed in the Developer Options:
adb connect <phone_ip:5555>
  • the device is debugging over network already ;)

Connect phone (real) to android wearable emulator

  • Install Android Wear (from google play) in your smartphone and enable usb debugging
  • Run this
adb -d forward tcp:5601 tcp:5601
  • Open Android Wear and follow the steps, enable the bluetooth, open the menu button and choose emulator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment