Merge "Fix crash in SensorService. Ignore devices with no sensors." into mnc-dev

This commit is contained in:
Aravind Akella 2015-06-24 15:34:59 +00:00 committed by Android (Google) Code Review
commit 7a1b5d5dec

View File

@ -276,6 +276,8 @@ status_t SensorService::dump(int fd, const Vector<String16>& 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");