Add microdroid debuggerd support

Users can connect to microdroid adb and run debuggerd to see stack trace
of processes. This adds types and permissions for debuggerd. Also this
updates crash_dump so it can now support two types of crash_dump: users
initiating "debuggerd" (sent to microdroid tombstoned) and payloads
crashing (sent to the host vsock server).

Note that tombstoned is still required but it won't be running as
default. Before running debuggerd, users must start tombstoned with
"start tombstoned" inside microdroid.

Bug: 419368848
Test: start tombstoned, and then debuggerd -b $$ inside microdroid
Change-Id: I4791f8f3315e58261ee44ed1367dce7494b2e049
diff --git a/debuggerd/util.cpp b/debuggerd/util.cpp
index b809468..996b06d 100644
--- a/debuggerd/util.cpp
+++ b/debuggerd/util.cpp
@@ -23,6 +23,7 @@
 #include <utility>
 
 #include <android-base/file.h>
+#include <android-base/properties.h>
 #include <android-base/stringprintf.h>
 #include <android-base/strings.h>
 #include "protocol.h"
@@ -104,3 +105,7 @@
   }
   return true;
 }
+
+bool is_microdroid() {
+  return android::base::GetProperty("ro.hardware", "") == "microdroid";
+}