MSM sensor and actuator code from S4 kernel