Change-Id: I2a985cedf49d50649c89f2ac5fbb80a81300156d
public static final String FEATURE_ETHERNET = "android.hardware.ethernet";
/**
+ * Feature for {@link #getSystemAvailableFeatures} and
+ * {@link #hasSystemFeature}: This device supports HDMI-CEC.
+ * @hide
+ */
+ @SdkConstant(SdkConstantType.FEATURE)
+ public static final String FEATURE_HDMI_CEC = "android.hardware.hdmi.cec";
+
+ /**
* Action to external storage service to clean out removed apps.
* @hide
*/
mSystemServiceManager.startService(MediaSessionService.class);
- mSystemServiceManager.startService(HdmiControlService.class);
+ if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_HDMI_CEC)) {
+ mSystemServiceManager.startService(HdmiControlService.class);
+ }
mSystemServiceManager.startService(TvInputManagerService.class);