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
[hybrisadaptor] Provide fallback values for select sensors. JB#43020
It is possible that on-change type sensors are not reported by android hal until a change is actually detected. Sensorfwd is left using zero initialized default values like proximity=covered / light=darkness - which in turn can cause various issues after each bootup. As the initial state can't be queried, choose the lest harmful option and define fallback values during sensor hal probing: - proximity sensor = not covered - light sensor = 400 lux If no actual sensor data has been received in a situation where sensor state needs to be communicated to clients, apply the fallback value. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
2 changed files
with
65 additions
and
2 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