Create fake CarPropertyValue for an error event
Instead of create a CarPropertyValue with NULL value, we create
it with a default fake value. CarPropertyManager drops the value
of CarPropertyValue, when it has the ERROR flag as eventType.
Add a adb command to inject an error event. Use it to test.
For exmaple:
dumpsys activity service com.android.car inject-error-event 354419977 12 3
Bug: 134441058
Test: inject an error event for VHAL
Change-Id: I6d2f0523a3c57ee252b777e6d79c8d7e6de322a4
Merged-In: I6d2f0523a3c57ee252b777e6d79c8d7e6de322a4
(cherry picked from commit 4b098cf1b9e347805a6fc4308549104491f1dbcb)
4 files changed