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

Skip to content
Commit 1172fd88 authored by Vladimir Komsiyski's avatar Vladimir Komsiyski
Browse files

Always cache the default device sensors.

Since ag/24955733 the native SensorManager may be initialized with
a VirtualDevice's sensors instead of the default device ones and this
is WAI. However, this breaks an assumption in SystemSensorManager.java

SystemSensorManager's mFullSensorsList must always hold the default
device's sensors. Any virtual device's sensors are stored in
mFullRuntimeSensorListByDevice and the correct sensors are returned
from getSensorsList based on the manager's context.

If mFullSensorsList is initialized with virtual sensors, then there
is no way to get the default device's sensors anymore.

Fix: 315295201
Test: manual with the VDM test app
Change-Id: I8add9f4ece2fdd6d83f6388990b1772987eae939
parent 1b5e0a7b
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