2018-05-16 02:02:50 +02: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 20:14:01 +02:00
|
|
|
#define FB_CMD_REBOOT_RECOVERY "reboot-recovery"
|
|
|
|
#define FB_CMD_REBOOT_FASTBOOT "reboot-fastboot"
|
2018-07-31 22:27:37 +02: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-16 01:27:42 +02:00
|
|
|
#define FB_CMD_UPDATE_SUPER "update-super"
|
2018-09-14 22:58:21 +02:00
|
|
|
#define FB_CMD_OEM "oem"
|
2019-01-15 23:38:20 +01:00
|
|
|
#define FB_CMD_GSI "gsi"
|
2019-10-22 01:45:59 +02:00
|
|
|
#define FB_CMD_SNAPSHOT_UPDATE "snapshot-update"
|
2021-02-17 04:37:21 +01:00
|
|
|
#define FB_CMD_FETCH "fetch"
|
2018-05-16 02:02:50 +02:00
|
|
|
|
|
|
|
#define RESPONSE_OKAY "OKAY"
|
|
|
|
#define RESPONSE_FAIL "FAIL"
|
|
|
|
#define RESPONSE_DATA "DATA"
|
|
|
|
#define RESPONSE_INFO "INFO"
|
|
|
|
|
2022-09-13 22:54:36 +02:00
|
|
|
#define FB_COMMAND_SZ 4096
|
2020-02-05 03:16:21 +01:00
|
|
|
#define FB_RESPONSE_SZ 256
|
2018-05-16 02:02:50 +02:00
|
|
|
|
|
|
|
#define FB_VAR_VERSION "version"
|
|
|
|
#define FB_VAR_VERSION_BOOTLOADER "version-bootloader"
|
|
|
|
#define FB_VAR_VERSION_BASEBAND "version-baseband"
|
2020-01-21 11:31:23 +01:00
|
|
|
#define FB_VAR_VERSION_OS "version-os"
|
|
|
|
#define FB_VAR_VERSION_VNDK "version-vndk"
|
2018-05-16 02:02:50 +02: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-06 01:57:24 +02:00
|
|
|
#define FB_VAR_PARTITION_TYPE "partition-type"
|
2018-07-20 22:35:50 +02:00
|
|
|
#define FB_VAR_SLOT_SUCCESSFUL "slot-successful"
|
|
|
|
#define FB_VAR_SLOT_UNBOOTABLE "slot-unbootable"
|
2018-07-31 22:27:37 +02:00
|
|
|
#define FB_VAR_IS_LOGICAL "is-logical"
|
2018-08-02 20:05:00 +02:00
|
|
|
#define FB_VAR_IS_USERSPACE "is-userspace"
|
2022-11-22 10:32:21 +01:00
|
|
|
#define FB_VAR_IS_FORCE_DEBUGGABLE "is-force-debuggable"
|
2018-09-05 03:11:03 +02:00
|
|
|
#define FB_VAR_HW_REVISION "hw-revision"
|
2018-09-26 22:08:16 +02:00
|
|
|
#define FB_VAR_VARIANT "variant"
|
2018-09-27 19:41:01 +02:00
|
|
|
#define FB_VAR_OFF_MODE_CHARGE_STATE "off-mode-charge"
|
2018-09-28 20:41:22 +02:00
|
|
|
#define FB_VAR_BATTERY_VOLTAGE "battery-voltage"
|
2023-10-03 19:48:26 +02:00
|
|
|
#define FB_VAR_BATTERY_SOC "battery-soc"
|
2018-10-04 00:53:22 +02:00
|
|
|
#define FB_VAR_BATTERY_SOC_OK "battery-soc-ok"
|
2018-11-06 03:01:32 +01:00
|
|
|
#define FB_VAR_SUPER_PARTITION_NAME "super-partition-name"
|
2019-10-22 01:45:59 +02:00
|
|
|
#define FB_VAR_SNAPSHOT_UPDATE_STATUS "snapshot-update-status"
|
2019-11-13 10:13:49 +01:00
|
|
|
#define FB_VAR_CPU_ABI "cpu-abi"
|
2020-01-21 11:31:23 +01: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 22:44:49 +01:00
|
|
|
#define FB_VAR_MAX_FETCH_SIZE "max-fetch-size"
|
2022-06-18 04:17:43 +02:00
|
|
|
#define FB_VAR_DMESG "dmesg"
|
2023-12-08 05:51:08 +01:00
|
|
|
#define FB_VAR_BATTERY_SERIAL_NUMBER "battery-serial-number"
|
|
|
|
#define FB_VAR_BATTERY_PART_STATUS "battery-part-status"
|