Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29f88490 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

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
parent 7b5d9813
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -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 */);