Create an internal API to collect zipped bugreports

The existing car-lib API to collect bugreports is only useful
to collect flat bugreports. Flat bugreports do not contain
vital information including ANR traces and vendor data.
Add a new internal API to collect zipped bugreports.

The existing API will be removed as soon as we move the
existing sole client to the new API.

Bug: 133193822
Test: manual
Change-Id: I5379872eb1b0957b2f0502d57bcb015320c0f13d
(cherry picked from commit 5561dac4580afa9be74ce38aef3a22418c1543a7)
diff --git a/car-bugreportd/car-bugreportd.rc b/car-bugreportd/car-bugreportd.rc
new file mode 100644
index 0000000..4c405e1
--- /dev/null
+++ b/car-bugreportd/car-bugreportd.rc
@@ -0,0 +1,17 @@
+service car-bugreportd /system/bin/car-bugreportd
+    socket car_br_progress_socket stream 0660 shell log
+    socket car_br_output_socket stream 0660 shell log
+    class core
+    user shell
+    group log
+    disabled
+    oneshot
+
+# car-dumpstatez generates a zipped bugreport but also uses a socket to print the file location once
+# it is finished.
+service car-dumpstatez /system/bin/dumpstate -S -d -z \
+        -o /data/user_de/0/com.android.shell/files/bugreports/bugreport
+    socket dumpstate stream 0660 shell log
+    class main
+    disabled
+    oneshot
\ No newline at end of file