Reputation: 837
I try to send ADB commands from my Android mobile device (SGS5) to my Android TV (Nvidia Shield TV). I always get:
error:device offline
or
error:device unauthorized
With Windows or Mac the ADB connection works but not with an Android device.
I did the following:
No success.
Is it possible to connect an Android device (mobile/tablet) over ADB with Android TV (e.g Nvidia Shield TV) ?
Mobile phone -> adb -> Shield TV
Upvotes: 1
Views: 21840
Reputation: 17
For Nvidia Shield TV, you would need to
adb devices
=> device should get listed. You would need to check and accept authorization screen adb tcpip <port_no>
adb connect <ip_address from step 4>
Note
: This should ideally be one time process, however there are times when device goes offline when adb action is not performed for long. Possible solutions are
a. Repeat steps 1-7 above
or
b. Set up a job (like cron) which will perform some periodic action on device.
Example: adb shell input keyevent 25
.
Upvotes: 2
Reputation: 6509
If you try all of them then try last one its working for me - Check mobile ip and in about phone and try below command
adb connect 192.168.1.4:2222
Check this link for more details
And also not working then try below Turn on ADB Debugging
You must enable ADB on the Fire TV device before you can connect to the device.
From the main (Launcher) screen, select Settings.
Select System > Developer Options.
Select ADB Debugging.
Get the IP Address
You need the IP address of your Fire TV device on your network to connect ADB to it.
From the main (Launcher) screen, select Settings.
Select System > About > Network. Make note of the IP address listed on this screen.
Connect ADB
To connect your development computer to a Fire TV device, use the following steps:
Open a command prompt or terminal window.
Change directory to your Android SDK platform-tools directory.
Run the following commands, where <ipaddress> is the IP address of the Fire TV device noted in the previous section.
adb kill-server
adb start-server
adb connect <ipaddress>
Note: On Mac OS X and Linux you may need to prepend ./ to these commands, like this:
./adb kill-server
./adb start-server
./adb connect <ipaddress>
If the connection was sucessful, ADB responds with the message:
connected to <ipaddress>:5555
Verify that the Fire TV device appears in the list of devices:
adb devices
ADB reponds responds with the message:
List of devices attached
<ipaddress>:5555 device
Upvotes: 1