Merge "libexternal: set hw.hdmiON system property"
diff --git a/libexternal/external.cpp b/libexternal/external.cpp
index 1a41775..ecacd7b 100644
--- a/libexternal/external.cpp
+++ b/libexternal/external.cpp
@@ -146,6 +146,8 @@
if(!strncmp(s1,"hdmi",strlen(s1))) {
// hdmi online event..!
configureHDMIDisplay();
+ // set system property
+ property_set("hw.hdmiON", "1");
}else if(!strncmp(s1,"wfd",strlen(s1))) {
// wfd online event..!
configureWFDDisplay();
@@ -156,6 +158,8 @@
const char *s1 = str + strlen("change@/devices/virtual/switch/");
if(!strncmp(s1,"hdmi",strlen(s1))) {
teardownHDMIDisplay();
+ // unset system property
+ property_set("hw.hdmiON", "0");
}else if(!strncmp(s1,"wfd",strlen(s1))) {
teardownWFDDisplay();
}