Android Question HDMI-CEC Control Service

biometrics

Active Member
Licensed User
Longtime User
We want to be able to query and control the display connected by HDMI to an Android player like the Giada DN73 (http://www.giadatech.com/index/product/detail/aid/674.html).

The HDMI standard has something called the "HDMI-CEC Control Service". Since Android 12 there is a system service called "HdmiControlService" to make use of it:

With the introduction of the Android TV Input Framework (TIF), HDMI-CEC brings together all connected devices and minimizes compatibility issues. Android has created a system service called HdmiControlService to alleviate these pain points.

By offering HdmiControlService as a part of the Android ecosystem, Android hopes to provide:
  • A standard implementation of HDMI-CEC for all manufacturers, which will reduce device incompatibility. Previously, manufacturers had to develop their own implementations of HDMI-CEC or use third-party solutions.
  • A service that is well-tested against numerous HDMI-CEC devices already in the market. Android has been conducting rigorous research on compatibility issues found among the products and collecting useful advice from device implementers experienced in the technology. The CEC service is designed to keep a healthy balance between the standard and modifications to that standard so that it works with the products that people already use.

Is there a library, class or sample code available for it?

See the documentation: https://source.android.com/devices/tv/hdmi-cec

Is this only available from Android 12 or do earlier version support it?
 

DonManfred

Expert
Licensed User
Longtime User
Is this only available from Android 12 or do earlier version support it?
It is available since Android 5. But only for SYSTEM-Apps.
Could be that it is public now with Android 12 (don´t know).

 
Upvote 0
Top