[Shield Android TV General] DummyPLUG:
Still in process, this may not work for every remote, especially those will lost pairing after reboot, and I found some remote will disconnect after a few hours and need pairing again, dunno this is bug of shield or anything else

Tested on Sheid TV 16gb 2017, firmware 5.01 (developer)

1. side load this app to your shield: "nRF Connect for Mobile", or any BLE scanner/connect app

2.a scan the remote and press connect

2.b when connected, shield tv will ask for pairing

2.c paired and connected but it still not work

3.a adb pull /data/misc/bluedroid

3.b you will see a list of paired device in bt_config.conf, include the 3rd party remote but it will lack most info

[XX:XX:XX:XX:XX:XX]
Name = 小米蓝牙遥控器
DevClass = 1344
DevType = 2
AddrType = 0
Timestamp = 1486758640
LE_KEY_PENC = a27d02fb2083ba5847f1e4734XXXXXXXXXXXXXXX
LE_KEY_PID = 1731754feb64c60edcd09XXXXXXXXXXXXXXXXXX
LE_KEY_PCSRK = 00000000db21e99ab6XXXXXXXXXXXXXXXXXX
LE_KEY_LENC = ef8ac21724e8fc31837XXXXXXXXXXXXXXXXXX
LE_KEY_LCSRK = 00000000842e019dd2caXXXXXXXXXXXXXXXXXXX
LE_KEY_LID =
Service = 00001812-0000-1000-8000-00805f9b34fb
HidReport = 4d2a0101222e4d2a020122324d2a030122364d2a0002223a4d2ae00322454d2ae10322484d2ae203224b4d2ae303224e4d2ae40322514d2ae50322544d2ae60322574d2ae703225a4d2ae803225d4d2ae90322604d2aea0322634d2aeb032266
HidAttrMask = 0
HidSubClass = 0
HidAppId = 255
HidVendorId = 10007
HidProductId = 12800
HidVersion = 273
HidCountryCode = 0
HidSSRMaxLatency = 0
HidSSRMinTimeout = 0
HidDescriptor = 05010906a1018502050719e029e71500250175019508810295017508810195057501050819012905910295017503910195067508152825fe0507192829fe8100c0

[XX:XX:XX:XX:XX:XX]
Name = 小米蓝牙遥控器
DevClass = 7936
DevType = 2
AddrType = 0
Timestamp = 1486758704
LE_KEY_PENC = fe426d85f40053734a9eXXXXXXXXXXXXXXXXXXXXXXXXX
LE_KEY_LID =
Service = 00001812-0000-1000-8000-00805f9b34fb

3.c

now fill in the miss part, mainly the "Service", and HID part which you can omit some of them, and never change those key nor add any missing key. For service most of them will be "00001812-0000-1000-8000-00805f9b34fb "

It is suggest to copy these info from another device, I copy them from my HTC 10

beware of the order of those line, wrong order may will refuse to work

suggest to use some text editor support unix format (LF for new line) such as pspad

4. after modify push back to shield tv, reboot (I didn't try if turning on/off bt will work or not)

5. refer to this post for key mapping https://xdaforums.com/shield-tv/general/change-3rd-party-remote-key-layout-root-t3548871

for china version of xiaomi box bt remote, 1st version bt remote which use CR2032 will need repairing after reboot and also will disconnect after about 1 day, but it can pair by shield tv, it will say cannot pair for 1st try, just don't touch the remote and let shield pair it again, it will pair mostly in 2~3 try

2nd version of this bt remote without voice (just $4 usd) , which us 2xaaa battery can be pair using the above method, sheild tv cannot search for it, it will not disconnect after shield tv reboot/power off, I am still testing it, hope it will not disconnect after a few hours of using.

Tmall bt voice remote same as xiaomi 1st version bt remote, and the power button is IR, voice will not work