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
Loading
Please register or sign in to comment