2018-05-16 00:02:50 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 The Android Open Source Project
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define FB_CMD_GETVAR "getvar"
|
|
|
|
#define FB_CMD_DOWNLOAD "download"
|
|
|
|
#define FB_CMD_UPLOAD "upload"
|
|
|
|
#define FB_CMD_FLASH "flash"
|
|
|
|
#define FB_CMD_ERASE "erase"
|
|
|
|
#define FB_CMD_BOOT "boot"
|
|
|
|
#define FB_CMD_SET_ACTIVE "set_active"
|
|
|
|
#define FB_CMD_CONTINUE "continue"
|
|
|
|
#define FB_CMD_REBOOT "reboot"
|
|
|
|
#define FB_CMD_SHUTDOWN "shutdown"
|
|
|
|
#define FB_CMD_REBOOT_BOOTLOADER "reboot-bootloader"
|
2018-07-17 18:14:01 +00:00
|
|
|
#define FB_CMD_REBOOT_RECOVERY "reboot-recovery"
|
|
|
|
#define FB_CMD_REBOOT_FASTBOOT "reboot-fastboot"
|
2018-07-31 20:27:37 +00:00
|
|
|
#define FB_CMD_CREATE_PARTITION "create-logical-partition"
|
|
|
|
#define FB_CMD_DELETE_PARTITION "delete-logical-partition"
|
|
|
|
#define FB_CMD_RESIZE_PARTITION "resize-logical-partition"
|
2018-08-15 23:27:42 +00:00
|
|
|
#define FB_CMD_UPDATE_SUPER "update-super"
|
2018-09-14 20:58:21 +00:00
|
|
|
#define FB_CMD_OEM "oem"
|
2019-01-15 22:38:20 +00:00
|
|
|
#define FB_CMD_GSI "gsi"
|
2019-10-21 23:45:59 +00:00
|
|
|
#define FB_CMD_SNAPSHOT_UPDATE "snapshot-update"
|
2021-02-17 03:37:21 +00:00
|
|
|
#define FB_CMD_FETCH "fetch"
|
2018-05-16 00:02:50 +00:00
|
|
|
|
|
|
|
#define RESPONSE_OKAY "OKAY"
|
|
|
|
#define RESPONSE_FAIL "FAIL"
|
|
|
|
#define RESPONSE_DATA "DATA"
|
|
|
|
#define RESPONSE_INFO "INFO"
|
|
|
|
|
|
|
|
#define FB_COMMAND_SZ 64
|
2020-02-05 02:16:21 +00:00
|
|
|
#define FB_RESPONSE_SZ 256
|
2018-05-16 00:02:50 +00:00
|
|
|
|
|
|
|
#define FB_VAR_VERSION "version"
|
|
|
|
#define FB_VAR_VERSION_BOOTLOADER "version-bootloader"
|
|
|
|
#define FB_VAR_VERSION_BASEBAND "version-baseband"
|
2020-01-21 10:31:23 +00:00
|
|
|
#define FB_VAR_VERSION_OS "version-os"
|
|
|
|
#define FB_VAR_VERSION_VNDK "version-vndk"
|
2018-05-16 00:02:50 +00:00
|
|
|
#define FB_VAR_PRODUCT "product"
|
|
|
|
#define FB_VAR_SERIALNO "serialno"
|
|
|
|
#define FB_VAR_SECURE "secure"
|
|
|
|
#define FB_VAR_UNLOCKED "unlocked"
|
|
|
|
#define FB_VAR_CURRENT_SLOT "current-slot"
|
|
|
|
#define FB_VAR_MAX_DOWNLOAD_SIZE "max-download-size"
|
|
|
|
#define FB_VAR_HAS_SLOT "has-slot"
|
|
|
|
#define FB_VAR_SLOT_COUNT "slot-count"
|
|
|
|
#define FB_VAR_PARTITION_SIZE "partition-size"
|
2018-09-05 23:57:24 +00:00
|
|
|
#define FB_VAR_PARTITION_TYPE "partition-type"
|
2018-07-20 20:35:50 +00:00
|
|
|
#define FB_VAR_SLOT_SUCCESSFUL "slot-successful"
|
|
|
|
#define FB_VAR_SLOT_UNBOOTABLE "slot-unbootable"
|
2018-07-31 20:27:37 +00:00
|
|
|
#define FB_VAR_IS_LOGICAL "is-logical"
|
2018-08-02 18:05:00 +00:00
|
|
|
#define FB_VAR_IS_USERSPACE "is-userspace"
|
2018-09-05 01:11:03 +00:00
|
|
|
#define FB_VAR_HW_REVISION "hw-revision"
|
2018-09-26 20:08:16 +00:00
|
|
|
#define FB_VAR_VARIANT "variant"
|
2018-09-27 17:41:01 +00:00
|
|
|
#define FB_VAR_OFF_MODE_CHARGE_STATE "off-mode-charge"
|
2018-09-28 18:41:22 +00:00
|
|
|
#define FB_VAR_BATTERY_VOLTAGE "battery-voltage"
|
2018-10-03 22:53:22 +00:00
|
|
|
#define FB_VAR_BATTERY_SOC_OK "battery-soc-ok"
|
2018-11-06 02:01:32 +00:00
|
|
|
#define FB_VAR_SUPER_PARTITION_NAME "super-partition-name"
|
2019-10-21 23:45:59 +00:00
|
|
|
#define FB_VAR_SNAPSHOT_UPDATE_STATUS "snapshot-update-status"
|
2019-11-13 09:13:49 +00:00
|
|
|
#define FB_VAR_CPU_ABI "cpu-abi"
|
2020-01-21 10:31:23 +00:00
|
|
|
#define FB_VAR_SYSTEM_FINGERPRINT "system-fingerprint"
|
|
|
|
#define FB_VAR_VENDOR_FINGERPRINT "vendor-fingerprint"
|
|
|
|
#define FB_VAR_DYNAMIC_PARTITION "dynamic-partition"
|
|
|
|
#define FB_VAR_FIRST_API_LEVEL "first-api-level"
|
|
|
|
#define FB_VAR_SECURITY_PATCH_LEVEL "security-patch-level"
|
|
|
|
#define FB_VAR_TREBLE_ENABLED "treble-enabled"
|
2021-02-17 21:44:49 +00:00
|
|
|
#define FB_VAR_MAX_FETCH_SIZE "max-fetch-size"
|