blob: 554a080d7c556e16a17e1c39342d273e8a88254e [file] [log] [blame]
Hridya Valsaraju31d2c262018-07-20 13:35:50 -07001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
18#include <functional>
19#include <string>
20#include <vector>
21
22class FastbootDevice;
23
David Anderson856b7ec2018-08-08 17:58:56 -070024bool GetVersion(FastbootDevice* device, const std::vector<std::string>& args);
25bool GetBootloaderVersion(FastbootDevice* device, const std::vector<std::string>& args);
26bool GetBasebandVersion(FastbootDevice* device, const std::vector<std::string>& args);
27bool GetProduct(FastbootDevice* device, const std::vector<std::string>& args);
28bool GetSerial(FastbootDevice* device, const std::vector<std::string>& args);
29bool GetSecure(FastbootDevice* device, const std::vector<std::string>& args);
30bool GetCurrentSlot(FastbootDevice* device, const std::vector<std::string>& args);
31bool GetSlotCount(FastbootDevice* device, const std::vector<std::string>& args);
32bool GetSlotSuccessful(FastbootDevice* device, const std::vector<std::string>& args);
33bool GetSlotUnbootable(FastbootDevice* device, const std::vector<std::string>& args);
34bool GetMaxDownloadSize(FastbootDevice* device, const std::vector<std::string>& args);
35bool GetUnlocked(FastbootDevice* device, const std::vector<std::string>& args);
36bool GetHasSlot(FastbootDevice* device, const std::vector<std::string>& args);
David Anderson12211d12018-07-24 15:21:20 -070037bool GetPartitionSize(FastbootDevice* device, const std::vector<std::string>& args);
David Anderson0d4277d2018-07-31 13:27:37 -070038bool GetPartitionIsLogical(FastbootDevice* device, const std::vector<std::string>& args);
David Andersond9ba0612018-08-02 11:05:00 -070039bool GetIsUserspace(FastbootDevice* device, const std::vector<std::string>& args);