add LegacySensorManager.java