Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[mce-hybris] Enablers for masking hybris plugin features. JB#46746
In some cases functionality from mce-plugin-libhybris that works and is needed in some devices can cause problems in other devices - for example using android hwc2 interface for display blank/unblank purposes can interfere with minui based unlock/upgrade UIs on devices that use kms/drm instead of legacy frame buffer. Make it possible to use configuration files for enabling / disabling features implemented in the hybris plugin. Keep all features enabled by default. Install configuration file that keeps enabled those features that actually might be used by mce and disables the rest. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
4 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Configuration file for MCE - allow/mask features provided by hybris backend | ||
|
||
[FeatureHybris] | ||
|
||
# If no configuration file is provided, all functionality implemented in | ||
# mce-plugin-libhybris is enabled by default. If some feature is causing | ||
# problems for some device, it should be disabled in hw specific configuration | ||
# file by overriding one of the values below. | ||
|
||
FrameBuffer = true | ||
BackLight = true | ||
KeyPad = true | ||
IndicatorLed = true | ||
|
||
# Supporting sensors via hybris plugin is a vestigial feature. Masking via | ||
# config solely for the sake of symmetry. Keep all of them disabled. | ||
|
||
ProximitySensor = false | ||
LightSensor = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters