diff --git a/services/sensorservice/SensorService.cpp b/services/sensorservice/SensorService.cpp index cf750ee7c..f6ff09277 100644 --- a/services/sensorservice/SensorService.cpp +++ b/services/sensorservice/SensorService.cpp @@ -271,6 +271,8 @@ status_t SensorService::dump(int fd, const Vector& args) dev.enableAllSensors(); } return status_t(NO_ERROR); + } else if (mSensorList.size() == 0) { + result.append("No Sensors on the device\n"); } else { // Default dump the sensor list and debugging information. result.append("Sensor List:\n");