OSDN Git Service

SensorList: Don't output UUIDs
authorGreg Kaiser <gkaiser@google.com>
Fri, 17 Jun 2016 22:27:12 +0000 (15:27 -0700)
committerGreg Kaiser <gkaiser@google.com>
Fri, 17 Jun 2016 22:27:12 +0000 (15:27 -0700)
We don't want the UUIDs of dynamic sensors to be in the logs.

Bug:28775590
Change-Id: I85ca83e0ad1a0a8ed6618999bd22d86d7ef972f9

services/sensorservice/SensorList.cpp

index f6d3d94..e0101c1 100644 (file)
@@ -178,14 +178,7 @@ std::string SensorList::dump() const {
             if (s.hasAdditionalInfo()) {
                 result.appendFormat("has-additional-info, ");
             }
-            result.append("| ");
 
-            if (s.isDynamicSensor()) {
-                result.append("uuid: ");
-                for (uint8_t i : s.getUuid().b) {
-                    result.appendFormat("%02x", i);
-                }
-            }
             result.append("\n");
             return true;
         });