I installed Android TV on a Raspberry Pi and learned exactly where DIY hardware meets its limits.
But if you want something a little more versatile, you may want to consider plugging a full-fledged computer into your TV.