summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2019-04-05 14:11:43 -0700
committer Siarhei Vishniakou <svv@google.com> 2019-04-05 14:11:43 -0700
commit29f884906c37b19dfdfeae16e634034e64a6108a (patch)
tree0058318e803ea56f2aa1eb705e09a9b501766344
parent7b5d9813aacda610b262d6773f13a21ba8a75b98 (diff)
Improve docs for ro.input.video_enabled
The setting was originally intended for development only, but it is now being used in production. Update the docs to highlight the importance of this setting. Bug: 123314955 Test: none Change-Id: I9bcca416114ac39b2fa2949aa02111d721bdc566
-rw-r--r--services/inputflinger/EventHub.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/services/inputflinger/EventHub.cpp b/services/inputflinger/EventHub.cpp
index 0544ec16c5..ce5627271a 100644
--- a/services/inputflinger/EventHub.cpp
+++ b/services/inputflinger/EventHub.cpp
@@ -115,8 +115,15 @@ static bool isV4lTouchNode(const char* name) {
* The system property ro.input.video_enabled can be used to control whether
* EventHub scans and opens V4L devices. As V4L does not support multiple
* clients, EventHub effectively blocks access to these devices when it opens
- * them. This property enables other clients to read these devices for testing
- * and development.
+ * them.
+ *
+ * Setting this to "false" would prevent any video devices from being discovered and
+ * associated with input devices.
+ *
+ * This property can be used as follows:
+ * 1. To turn off features that are dependent on video device presence.
+ * 2. During testing and development, to allow other clients to read video devices
+ * directly from /dev.
*/
static bool isV4lScanningEnabled() {
return property_get_bool("ro.input.video_enabled", true /* default_value */);