WifiDisplay: Add an HDCP toggle

Some WFD dongles have frequent (or permanent) failures while
negotiating HDCP with the device, so add a toggle to allow
skipping HDCP entirely

Change-Id: I999158df84d4a7489c40ecdf07ebcf107d071d40
diff --git a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
index 05e4018..0057d97 100644
--- a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
+++ b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
@@ -931,7 +931,11 @@
     }
 
     mUsingHDCP = false;
-    if (!params->findParameter("wfd_content_protection", &value)) {
+    char val[PROPERTY_VALUE_MAX];
+    if (property_get("persist.sys.wfd.nohdcp", val, NULL)
+            && !strcmp("1", val)) {
+        ALOGI("Content protection has been disabled for WFD sinks");
+    } else if (!params->findParameter("wfd_content_protection", &value)) {
         ALOGI("Sink doesn't appear to support content protection.");
     } else if (value == "none") {
         ALOGI("Sink does not support content protection.");