1. Android_2014's Avatar
    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.

    Tried the Shell command but it was not working

    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 .
    05-24-2019 05:41 AM
  2. B. Diddy's Avatar
    I moved this from the Android Apps forum to the Android TV forum for more specific traffic.
    05-24-2019 10:40 AM
  3. Rukbat's Avatar
    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.
    05-24-2019 04:37 PM
  4. videostorm's Avatar
    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.
    07-31-2019 02:55 PM

Similar Threads

  1. How to disable Galaxy Gear charging screensaver
    By Android Central Question in forum Samsung Gear S3
    Replies: 7
    Last Post: 06-03-2019, 03:17 PM
  2. How to use jio sim in my oppo 1201 mobile phone?
    By Android Central Question in forum Ask a Question
    Replies: 2
    Last Post: 05-24-2019, 10:59 AM
  3. Replies: 2
    Last Post: 05-24-2019, 10:56 AM
  4. How to fix Safe mode Samsung S9 plus..
    By Android Central Question in forum Samsung Galaxy S9 & S9+
    Replies: 1
    Last Post: 05-24-2019, 10:44 AM
  5. Why do my apps fail to load and screen go black?
    By Android Central Question in forum Ask a Question
    Replies: 1
    Last Post: 05-24-2019, 10:43 AM