I own a few Android TV boxes that have poor thermal designs that are prone to overheating when under sustained load. This can either cause your device to significantly slow down or shut down entirely. This can be fixed by cutting a hole in the bottom on your TV box above the SoC and sticking a small USB fan on it. In my case I am using a AC Infinity 40mm x 20mm USB Fan that cost me £10.
Today I wrote a script to only activate my TV boxes USB fan when required by using a USB relay module. I’ve only given it minimal testing so far, I only wrote it tonight but it seems to be working OK so far for me. It only cost me about £15 altogether for the fan and the USB relay module required to use this script.