blob: 09ef8ececcdb4ac308dd497a789646251b163907 [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
24std::string GetVersion(FastbootDevice* device, const std::vector<std::string>& args);
25std::string GetBootloaderVersion(FastbootDevice* device, const std::vector<std::string>& args);
26std::string GetBasebandVersion(FastbootDevice* device, const std::vector<std::string>& args);
27std::string GetProduct(FastbootDevice* device, const std::vector<std::string>& args);
28std::string GetSerial(FastbootDevice* device, const std::vector<std::string>& args);
29std::string GetSecure(FastbootDevice* device, const std::vector<std::string>& args);
30std::string GetCurrentSlot(FastbootDevice* device, const std::vector<std::string>& args);
31std::string GetSlotCount(FastbootDevice* device, const std::vector<std::string>& args);
32std::string GetSlotSuccessful(FastbootDevice* device, const std::vector<std::string>& args);
33std::string GetSlotUnbootable(FastbootDevice* device, const std::vector<std::string>& args);
34std::string GetMaxDownloadSize(FastbootDevice* device, const std::vector<std::string>& args);
35std::string GetUnlocked(FastbootDevice* device, const std::vector<std::string>& args);
36std::string GetHasSlot(FastbootDevice* device, const std::vector<std::string>& args);