Send HDMI CEC Command from Rooted TV Box to connected TV

Android_2014

New member
May 20, 2019
1
0
0
How to send the HDMI CEC Commands from rooted Android TV Box to connected TV to switch the input sources and also to adjust the volume?

Searched lot of android source code related to TVInputFrameWork Service and Hdmicec Service packages but it not able to integrate inside the App. If we used the sample google TVInputFrame still it throws Permission Error

Someone mentioned feasibility of JNI for HDMI CEC but we can't integrate the JNI with given libcec.h file as specified in it. Can anyone please help with any sample integration for the Android LibCEC integration in the Rooted Android Device.
https://stackoverflow.com/questions/39420067/android-and-hdmi-cec

Tried the Shell command but it was not working
https://stackoverflow.com/questions/47892639/hdmi-cec-on-android/48082147#48082147

Is there any shell commands to send the HDMI-CEC Command?

Can anyone please share the steps/ clear documentation to send the HDMI-CEC Command .
 
I moved this from the Android Apps forum to the Android TV forum for more specific traffic.
 
Shell commands only handle what Linux handles (and any Linux external programs handle - like almost all of the Linux commands), so don't waste your time looking for something already available with a shell command. You'd have to write a Linux program to do what you want, then call it from a shell command (possibly with arguments - which it has to look for, but you know that if you write C programs [argc and argv]).

I don't think there's too much information available about what you want to do - it's going to be trial and error, unless you can get the source code of a TV that can handle those commands.
 
CEC support is chipset & corresponding kernel dependent. First find the chipset you are using, then google for the kernel CEC driver on that chipset.

Given root access, you can usually send manual CEC commands straight to the kernel driver.
 

Trending Posts

Forum statistics

Threads
955,616
Messages
6,965,390
Members
3,163,343
Latest member
Aikee Moral