Merge "fastbootd: Add is-userspace variable." am: 6d5b931466
am: 2f1e709145
Change-Id: I2ff3c8daa9a6e7a3948bc331baa9a9028e7b9f94
This commit is contained in:
commit
ed55753595
4 changed files with 8 additions and 1 deletions
|
|
@ -57,3 +57,4 @@
|
|||
#define FB_VAR_SLOT_SUCCESSFUL "slot-successful"
|
||||
#define FB_VAR_SLOT_UNBOOTABLE "slot-unbootable"
|
||||
#define FB_VAR_IS_LOGICAL "is-logical"
|
||||
#define FB_VAR_IS_USERSPACE "is-userspace"
|
||||
|
|
|
|||
|
|
@ -59,7 +59,8 @@ bool GetVarHandler(FastbootDevice* device, const std::vector<std::string>& args)
|
|||
{FB_VAR_SLOT_SUCCESSFUL, GetSlotSuccessful},
|
||||
{FB_VAR_SLOT_UNBOOTABLE, GetSlotUnbootable},
|
||||
{FB_VAR_PARTITION_SIZE, GetPartitionSize},
|
||||
{FB_VAR_IS_LOGICAL, GetPartitionIsLogical}};
|
||||
{FB_VAR_IS_LOGICAL, GetPartitionIsLogical},
|
||||
{FB_VAR_IS_USERSPACE, GetIsUserspace}};
|
||||
|
||||
// args[0] is command name, args[1] is variable.
|
||||
auto found_variable = kVariableMap.find(args[1]);
|
||||
|
|
|
|||
|
|
@ -165,3 +165,7 @@ bool GetPartitionIsLogical(FastbootDevice* device, const std::vector<std::string
|
|||
}
|
||||
return device->WriteFail("Partition not found");
|
||||
}
|
||||
|
||||
bool GetIsUserspace(FastbootDevice* device, const std::vector<std::string>& /* args */) {
|
||||
return device->WriteOkay("yes");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,3 +36,4 @@ bool GetUnlocked(FastbootDevice* device, const std::vector<std::string>& args);
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue