diff options
author | Bowgo Tsai <bowgotsai@google.com> | 2019-11-13 17:13:49 +0800 |
---|---|---|
committer | Bowgo Tsai <bowgotsai@google.com> | 2019-11-13 17:22:22 +0800 |
commit | 33da5c9493c1ecd8a9930f7780ff589d129bfe65 (patch) | |
tree | eca3f331a914a1cec5fa6a3ee1d91d168e7c84c4 /fastboot/device/variables.cpp | |
parent | 563a73e7f760808ff0cea4443f1b91a27c7d435e (diff) |
fastbootd: exporting CPU ABI info
CPU ABI info, e.g., arm64-v8a, can be useful to determine image
compatibility, prior to flash. Adding this info in fastbootd.
Bug: 74445765
Test: fastboot getvar cpu-abi # arm64-v8a
Change-Id: Ied494b646c551320295956b7890c0102fdb88382
Diffstat (limited to 'fastboot/device/variables.cpp')
-rw-r--r-- | fastboot/device/variables.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fastboot/device/variables.cpp b/fastboot/device/variables.cpp index 6e613d647..717db064f 100644 --- a/fastboot/device/variables.cpp +++ b/fastboot/device/variables.cpp @@ -458,3 +458,9 @@ bool GetSnapshotUpdateStatus(FastbootDevice* device, const std::vector<std::stri } return true; } + +bool GetCpuAbi(FastbootDevice* /* device */, const std::vector<std::string>& /* args */, + std::string* message) { + *message = android::base::GetProperty("ro.product.cpu.abi", ""); + return true; +} |