summaryrefslogtreecommitdiff
path: root/fastboot/device/commands.cpp
diff options
context:
space:
mode:
authorHridya Valsaraju <hridya@google.com>2018-09-05 16:57:24 -0700
committerHridya Valsaraju <hridya@google.com>2018-09-07 12:22:00 -0700
commitbf9f8d1a643b7586af009ec65b1358859e3aea64 (patch)
tree451481ca3b94e3a109cd557f0f391311982b54e9 /fastboot/device/commands.cpp
parent33dcdb808b7d60107d527c22815d586b51836836 (diff)
Integrate with fastboot HAL to get partition type
Bug: 79480454 Bug: 78793464 Test: fastboot getvar partition-type:userdata Change-Id: Ib096ee8061568b8503f3a3f2dbb7e19a932162c4
Diffstat (limited to 'fastboot/device/commands.cpp')
-rw-r--r--fastboot/device/commands.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/fastboot/device/commands.cpp b/fastboot/device/commands.cpp
index b1c2958fe..0d038b900 100644
--- a/fastboot/device/commands.cpp
+++ b/fastboot/device/commands.cpp
@@ -88,6 +88,7 @@ bool GetVarHandler(FastbootDevice* device, const std::vector<std::string>& args)
{FB_VAR_SLOT_SUCCESSFUL, {GetSlotSuccessful, nullptr}},
{FB_VAR_SLOT_UNBOOTABLE, {GetSlotUnbootable, nullptr}},
{FB_VAR_PARTITION_SIZE, {GetPartitionSize, GetAllPartitionArgsWithSlot}},
+ {FB_VAR_PARTITION_TYPE, {GetPartitionType, GetAllPartitionArgsWithSlot}},
{FB_VAR_IS_LOGICAL, {GetPartitionIsLogical, GetAllPartitionArgsWithSlot}},
{FB_VAR_IS_USERSPACE, {GetIsUserspace, nullptr}}};