Android disable HDMI output?

I'm trying to find out if there is a way to block the HDMI output when my application is running on Android? I need to support at least API 17 (Android 4.2).

Is there such a method that I can call to control (hide / show) the HDMI output?

/sys/class/switch/hdmi/state

the value of this file changes depending on the status of HDMI

1for connected HDMI
0for disconnected HDMI

Can I do something about this?

Thanks.

+4
source share

Source: https://habr.com/ru/post/1627163/


All Articles