fastbootd: Add is-userspace variable.
Bug: 78793464
Test: fastboot getvar is-userspace
returns true for fastbootd
fastboot getvar is-userspace
returns false or error for bootloader fastboot.
Change-Id: I80e1ef6dcf3922e4f555cb2e409e3e098c16fbbc
diff --git a/fastboot/device/variables.h b/fastboot/device/variables.h
index 0c706d7..554a080 100644
--- a/fastboot/device/variables.h
+++ b/fastboot/device/variables.h
@@ -36,3 +36,4 @@
bool GetHasSlot(FastbootDevice* device, const std::vector<std::string>& args);
bool GetPartitionSize(FastbootDevice* device, const std::vector<std::string>& args);
bool GetPartitionIsLogical(FastbootDevice* device, const std::vector<std::string>& args);
+bool GetIsUserspace(FastbootDevice* device, const std::vector<std::string>& args);