OSDN Git Service

Fixes possible issue with no-op creator.
authordwchen <dwchen@google.com>
Mon, 20 Aug 2018 17:17:48 +0000 (10:17 -0700)
committerdwchen <dwchen@google.com>
Thu, 23 Aug 2018 18:35:01 +0000 (11:35 -0700)
commit78622d57ad102c054306b01321b6b2dbec3f9d1d
tree0ea39f3e498a54f85191b81bd64b952ce3db779e
parent30fdcbad9436606df62ceb784160e73c46792cab
Fixes possible issue with no-op creator.

Leaving a no-op CREATOR can lead to issues. We throw a run-time
exception to prevent anyone from using this. The StatsLogEventWrapper is
meant to be write-only since it's only used to send data to statsd.

Bug: 112550251
Test: Tested with provided POC app by external researcher.
Change-Id: I001d84e2a61a1cd8a4f59aa156ca52f73ad0f6e1
core/java/android/os/StatsLogEventWrapper.java