diff --git a/services/sensorservice/SensorService.cpp b/services/sensorservice/SensorService.cpp index 45d467d64..550107c4c 100644 --- a/services/sensorservice/SensorService.cpp +++ b/services/sensorservice/SensorService.cpp @@ -276,6 +276,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");