How to detect if the HDMI port on an Android device has HDCP enabled?

Yi Wang picture Yi Wang · Aug 22, 2013 · Viewed 15.7k times · Source

Can't find anything definitive on Android Doc and Google.

If there is API to detect this, what is it and what is the API to enable/disable HDCP on the HDMI output?

If there is NO API to detect this, is there a device can be used to check the HDCP flag on HDMI port?

On some android devices (most notably Samsung devices), the HDMI port always has HDCP enabled. But how about other manufactures devices? Is HDCP mandatory on Google certified device? If it's not mandatory, how do major content providers's Android apps (from Big cable company teleco) prevent video output to non-HDCP protected HDMI port?