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

Skip to content
Commit a46ffb23 authored by lijilou's avatar lijilou Committed by Jilou li
Browse files

SystemSensorManager:fix CWE problem by add lock.

When receive the DYNAMIC_SENSOR_CHANGED broadcast,thread A will
call the updateDynamicSensorList method to traverse mDynamicSensorCallbacks
map. Meanwhile,thread B call the register/unregister the dynamicSensorCallback,
it may cause CWE.So we should add a lock to protect.

Test: OEM monkey test
Bug: 342282013
Change-Id: Ic380ae23ecdcb0f501e85b19db4fcabc275f17c5
parent 8089347d
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