private static final String GA_ACTION_HAS_BATTERY = "has_battery";
private static final String GA_ACTION_HAS_WIFI = "has_wifi";
private static final String GA_ACTION_HAS_ETHERNET = "has_ethernet";
+ private static final String GA_ACTION_HAS_SENSORS = "has_sensors";
private static final String GA_LABEL_HAS_BATTERY = "battery";
private static final String GA_LABEL_NO_BATTERY = "no_battery";
collectTouchScreenInfo();
collectBatteryInfo();
collectNetworkInfo();
+ collectSensorsInfo();
}
private void collectOpenGLInfo() {
}
}
+ private void collectSensorsInfo() {
+ String sensors = SystemProperties.get("ro.hardware.sensors", "");
+ if (!sensors.isEmpty() && !"kbd".equals(sensors)) {
+ checkAndSend(GA_ACTION_HAS_SENSORS, sensors);
+ }
+ }
+
private void getLastInfo() {
try {
if (mInfoFile.exists()) {