/Android-TV-Remote-Controller-Python

Simple Python program that communicate with android TV through network to pair with TV and will controll it over the network.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

androidTV-controller-Python

Simple Python program that communicate with android TV through network to pair with TV and will control it over the network.

Works on Mi box and some of android TVs.

Special thanks to @Aymkdn for his detailed wiki. For protocol details check here.

Tested on:

Mi Box4

Requirements:

  • python3
  • pynput
  • cryptography
  • pyOpenSSL
  • asn1crypto

prepair and run:

After Installing requirements you should generate certificate and pair your client to the server.

$ pip3 install -r requirements.txt
$ python3 certificate_generator.py
$ python3 android_tv_remote.py pairing

After first time pairing, you can run it without pairing argument.