eslavnov / android-tv-remote

A simple wrapper around ADB to send commands to Android TVs
37 stars 12 forks source link

Can't authorize device? #1

Closed FezVrasta closed 5 years ago

FezVrasta commented 5 years ago

Hi, I have a 65OLED873/12 and I can't seem to get adb to get authorized, the auth popup doesn't show up on my TV.

is there any particular step to follow?

I enabled adb debugging and:

adb connect IP
adb shell
eslavnov commented 5 years ago

Hey Federico,

This is strange, let's test a couple of things to understand what's going on:

1) What's the output when running adb connect %tv_ip%? (please run this in your terminal/command line) 2) Next please run adb devices - what's the output? (again - in your terminal, not in the tool) 3) Finally, please go into developer settings on your TV and look for any disabled settings with "debugging" in them, try enabling them and then try adb connect %tv_ip% again - different devices have a slightly different set of settings to allow LAN/WI-FI debugging (I've seen "USB debugging", "TCP/IP debugging", "Wi-Fi debugging" and others on my devices...), so it could be some extra setting that you need to enable.

FezVrasta commented 5 years ago

Thanks for the reply!

I actually managed to make the popup show up by connecting to the TV as soon I turned it on after a while it was off.

I'm not sure why that way it worked 🤷‍♂️

jariz commented 4 years ago

For anyone finding this through google: the problem seems to be that the popup does not get shown when you're on the homescreen, so switch to a source (a channel our input) instead.

lesnitsky commented 4 years ago

@jariz you saved my day

popy2k14 commented 4 years ago

Hey guys.

Also facing this issue with my 65PUS8102 on oreo:

python3 android-tv-remote.py --host 192.168.0.4 --input 1
Connected to 192.168.0.4
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
Error connecting to TV

The popup just dont appear. Have tried the following:

Any ideas?

thx

FezVrasta commented 4 years ago

Try to go to a TV channel, I read the popup doesn't show up on the Android TV home screen for some users

popy2k14 commented 4 years ago

Already tried to switch to an input (HDMI), but no popup. Sadly, i have no channels installed because i am watching TV over kodi and addons.

Any other ideas?

popy2k14 commented 4 years ago

Finally i was able to get adb working/authorized by:

So the information from above was correct!

thx

erd82 commented 4 years ago

Hi, if anyone else has the problem that the popup does not come up on the Android TV (mine is 55POS9002), just do a restart after enabling the USB Debugging mode.