52

I've just got a Sony KDL-43W800C, and I intend to develop some apps for it, however I can not find any information on how to attach to it using adb for installing apks and getting the logs etc.

What am I missing?

Matthew Huck
  • 563
  • 1
  • 4
  • 7

1 Answers1

105

You need to use ADB over TCP/IP.

  1. Enable Developer options: Press Home and select Settings. In the TV row, select About. Scroll down to and click on Build several times until a dialog appears with the message "You are now a developer" appears.

  2. Enable Debugging: Press Home and go back into the Settings menu. In the System Preferences row, select Developer options, select Debugging, select ADB Debugging, select On.

  3. Find the TV IP address: Press Home and select Network Settings.

  4. Make sure your TV and your computer are connected to the same local network.

  5. On your computer type: adb connect <TV IP address>

  6. In the Allow debugging? dialog, select Always allow from this computer and select OK.

You can verify the connection is established and that the TV is communicating across the network with the following command:

adb logcat
Bartek Lipinski
  • 30,698
  • 10
  • 94
  • 132
Tonni Larsen SONY
  • 1,149
  • 1
  • 8
  • 5
  • 3
    Is there no way to enable ADB over USB? Using TCP/IP makes it difficult to debug the device if the network connection is dropped... – daneb Jul 15 '15 at 18:11
  • 6
    At this time ADB over USB is not available. If your Wi-Fi network is unstable just use wired Ethernet instead. – Tonni Larsen SONY Jul 16 '15 at 08:07
  • what is the port number that is used? 5555? – kaho Jul 27 '15 at 21:36
  • 3
    It's 5555. Also, I had to hard reboot (unplug power) between steps 1 and 2 to have the Developer options menu option show up. – Pieter Siekerman Aug 31 '15 at 14:29
  • 1
    @SiekermanTechnology Somehow the menu do not refresh by itself when you get the developer privilege. You just have to press back until you land on the home page and then get back to the menu. – Pol May 06 '16 at 11:12
  • 1
    1) Find the TV IP address. 2) Command adb connect :5555. I use Sony. Lets go to work. :) – FlipNovid Dec 20 '16 at 14:00
  • I still get connection denied with error code 10061 when we are on the same WiFi network (my laptop and my Android TV box). Could it be a hardware limitation ? – Mackovich Oct 20 '17 at 08:45
  • I had to close Android studio, before that the connection kept failing. – LachoTomov Nov 28 '17 at 18:39
  • @TonniLarsenSONY is ADB over USB is still not supported in 2019? – programmer dreamer Oct 22 '19 at 00:51
  • To find the TV IP address: Go to Settings > About > Status > IP Address. – pm_ May 08 '20 at 06:44
  • 6
    The option "ADB Debugging" is not visible. I only have USB Debugging. I have a skyworth android TV v8.0 – Burnsys Feb 15 '21 at 18:55
  • @Burnsys Turning on USB Debugging seemed to activate "ADB over IP" for me and now port 5555 is open and adb can connect. I have Android TV 9. – golimar May 19 '22 at 09:15
  • The option "ADB Debugging" is not visible. I only have USB Debugging. I have a View Sonic Panel v8.0 – 3bu1 Sep 18 '22 at 10:23