commit | 35045cbc3422224a49881baa4d96755d8f75c5d0 | [log] [tgz] |
---|---|---|
author | David Chen <dwchen@google.com> | Fri Mar 23 22:21:47 2018 -0700 |
committer | David Chen <dwchen@google.com> | Sat Mar 24 15:01:04 2018 -0700 |
tree | e248f3934e827a46f596958ba18c9bfac7ce29a5 | |
parent | 775e291c2e4a033ea8f721a1d7eb38391c5bf9ae [diff] |
Fix uidmap in statsd. Previously tried an optimization that results in corrupted proto output. This changes to a safer approach of storing the snapshot data in memory and only converting to proto output when the ProtoOutputStream is provided. Also fixes a security issue when trying to invoke triggerUidSnapshot since we forgot to use SCS' permissions. Test: Added a unit-test to verify output of StatsLogProcessor. Bug: 76231867 Change-Id: Id410ce3505fda9d71caa71942ef3068b55872c66