How do I program my Android TV?
Set up with Quick Start
When your TV says, “Quickly set up your TV with your Android phone?” use your remote to choose Continue or Yes. Type or say “set up my device.” Follow the instructions on your phone until you get a code. Enter the code on your TV.
How to connect Android TV with Android Studio?
On your Android TV, go to Settings > Device Preferences > About > Status and note down the IP address. Open the command prompt on your PC and enter the command adb connect <the IP address>. You will get a prompt on your Android TV asking you to authorize a connection to the computer.