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

Skip to content
Commit 1a12af54 authored by Nick Chameyev's avatar Nick Chameyev
Browse files

[FoldableDeviceStateProvider] Do not listen to hall sensor when not used

Disables listening to hall sensor when the new
posture based closed state flag is enabled.

When this flag is enabled we do not rely on hall
sensor and use hinge angle sensor instead.

Hall sensor is a wake-up sensor and it might
waste power by waking up CPU when not needed.

Test: manual check in sensor service dumpsys
  that we don't listen to hall sensor anymore
Test: atest BookStyleDeviceStatePolicyTest
Bug: 335386446
Change-Id: I89406859d5df23d17eea73113d4c46b273dd778b
parent bab84f32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment