I am trying to control (volume control and perhaps on/off) a Samsung TV over CEC from an Amlogic Android box.
The Android docs explain the theory of it but there is no actual code to implement, I have seen users communicate through cmd commands in sys/class/cec/cmd but this folder is nonexistent in my Amlogic box. I believe I need to install libcec (not sure though) into my box but this seems to be the non-Android way (I was expecting to use the HdmiControlManager class but it is unreachable).
The TV definitely has CEC (Anynet+).
This question summarises part of the problem Send HDMI CEC Command from Android Application but it has no answers.
My device doesn't even contain a sys/class/cec folder in which to run CEC commands like here: Samsung TV (anynet+) control with Android Device using HDMI CEC
Any ideas on how to achieve this? Through the Android framework or without it?