Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0c4a06b authored by Yuncheol Heo's avatar Yuncheol Heo
Browse files

Add the system feature for HDMI-CEC.

Change-Id: I2a985cedf49d50649c89f2ac5fbb80a81300156d
parent a5d98da6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1453,6 +1453,14 @@ public abstract class PackageManager {
    @SdkConstant(SdkConstantType.FEATURE)
    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
+3 −1
Original line number Diff line number Diff line
@@ -910,7 +910,9 @@ public final class SystemServer {

            mSystemServiceManager.startService(MediaSessionService.class);

            if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_HDMI_CEC)) {
                mSystemServiceManager.startService(HdmiControlService.class);
            }

            mSystemServiceManager.startService(TvInputManagerService.class);