Skip to content

Instantly share code, notes, and snippets.

@ipepe
Created May 1, 2018 01:28
Show Gist options
  • Save ipepe/c8511f00fd7912da102348b81113c40e to your computer and use it in GitHub Desktop.
Save ipepe/c8511f00fd7912da102348b81113c40e to your computer and use it in GitHub Desktop.

Why it's not written anywhere? Unauthorized USB device:

MBP-A1278-ipepe:~ patryk$ adb devices
List of devices attached
0b06b8360328c13a    unauthorized

Authorized USB device:

MBP-A1278-ipepe:~ patryk$ adb devices
List of devices attached
0b06b8360328c13a    device

While connected to USB, start adb server on port 5555

MBP-A1278-ipepe:~ patryk$ adb tcpip 5555
restarting in TCP mode port: 5555

Disconnect USB from Your android device. Check it's IP address and connect Your ADB through wifi:

MBP-A1278-ipepe:~ patryk$ adb connect 192.168.0.50
connected to 192.168.0.50:5555

Now if You list devices You can see device connected to ADB:

MBP-A1278-ipepe:~ patryk$ adb devices
List of devices attached
192.168.0.50:5555   device

And You can easly do:

MBP-A1278-ipepe:ruboto-one patryk$ rake reinstall start
Uninstalling package pl.ipepe.ruboto.one
Success
adb shell date -s 20160424.193225
Sun Apr 24 19:32:23 CEST 2016
Installing package pl.ipepe.ruboto.one
69 KB/s (75682 bytes in 1.061s)
        pkg: /data/local/tmp/RubotoOne-debug.apk
Success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment