|
char * | get_android_product_out () |
|
static std::string | find_item_given_name (const std::string &img_name) |
|
std::string | find_item (const std::string &item) |
|
static void | Status (const std::string &message) |
|
static void | Epilog (int status) |
|
static void | InfoMessage (const std::string &info) |
|
static void | TextMessage (const std::string &text) |
|
bool | ReadFileToVector (const std::string &file, std::vector< char > *out) |
|
static int | match_fastboot_with_serial (usb_ifc_info *info, const char *local_serial) |
|
static ifc_match_func | match_fastboot (const char *local_serial=serial) |
|
static void | PrintDevice (const char *local_serial, const char *status=nullptr, const char *details=nullptr) |
|
static int | list_devices_callback (usb_ifc_info *info) |
|
Result< NetworkSerial, FastbootError > | ParseNetworkSerial (const std::string &serial) |
|
static std::unique_ptr< Transport > | open_device (const char *local_serial, bool wait_for_device=true, bool announce=true) |
|
static std::unique_ptr< Transport > | NetworkDeviceConnected (bool print=false) |
|
static std::unique_ptr< Transport > | open_device () |
|
static int | Connect (int argc, char *argv[]) |
|
static int | Disconnect (const char *local_serial) |
|
static int | Disconnect () |
|
static int | Disconnect (int argc, char *argv[]) |
|
static void | list_devices () |
|
void | syntax_error (const char *fmt,...) |
|
static int | show_help () |
|
static std::vector< char > | LoadBootableImage (const std::string &kernel, const std::string &ramdisk, const std::string &second_stage) |
|
static zip_int64_t | ExtractToBuffer (zip_file_t *zip_file, std::vector< char > &out) |
|
static bool | UnzipToMemory (unique_zip_t &zip, const char *entry_name, std::vector< char > *out) |
|
static std::string | make_temporary_template () |
|
static int | make_temporary_fd (const char *what) |
|
static unique_fd | UnzipToFile (unique_zip_t &zip, const char *entry_name) |
|
static bool | CheckRequirement (const std::string &cur_product, const std::string &var, const std::string &product, bool invert, const std::vector< std::string > &options) |
|
bool | ParseRequirementLine (const std::string &line, std::string *name, std::string *product, bool *invert, std::vector< std::string > *options) |
|
static void | HandlePartitionExists (const std::vector< std::string > &options) |
|
static void | CheckRequirements (const std::string &data, bool force_flash) |
|
static void | DisplayVarOrError (const std::string &label, const std::string &var) |
|
static void | DumpInfo () |
|
std::vector< SparsePtr > | resparse_file (sparse_file *s, int64_t max_size) |
|
static std::vector< SparsePtr > | load_sparse_files (int fd, int64_t max_size) |
|
static uint64_t | get_uint_var (const char *var_name, fastboot::IFastBootDriver *fb) |
|
int64_t | get_sparse_limit (int64_t size, const FlashingPlan *fp) |
|
static bool | load_buf_fd (unique_fd fd, struct fastboot_buffer *buf, const FlashingPlan *fp) |
|
static bool | load_buf (const char *fname, struct fastboot_buffer *buf, const FlashingPlan *fp) |
|
static void | rewrite_vbmeta_buffer (struct fastboot_buffer *buf, bool vbmeta_in_boot) |
|
static bool | has_vbmeta_partition () |
|
static bool | is_vbmeta_partition (const std::string &partition) |
|
bool | is_logical (const std::string &partition) |
|
static uint64_t | get_partition_size (const std::string &partition) |
|
static void | copy_avb_footer (const ImageSource *source, const std::string &partition, struct fastboot_buffer *buf) |
|
void | flash_partition_files (const std::string &partition, const std::vector< SparsePtr > &files) |
|
static void | flash_buf (const ImageSource *source, const std::string &partition, struct fastboot_buffer *buf, const bool apply_vbmeta) |
|
std::string | get_current_slot () |
|
static int | get_slot_count (fastboot::IFastBootDriver *fb) |
|
bool | supports_AB (fastboot::IFastBootDriver *fb) |
|
static std::string | get_other_slot (const std::string ¤t_slot, int count) |
|
static std::string | get_other_slot (const std::string ¤t_slot) |
|
static std::string | get_other_slot (int count) |
|
static std::string | get_other_slot () |
|
static std::string | verify_slot (const std::string &slot_name, bool allow_all) |
|
static std::string | verify_slot (const std::string &slot) |
|
static void | do_for_partition (const std::string &part, const std::string &slot, const std::function< void(const std::string &)> &func, bool force_slot) |
|
void | do_for_partitions (const std::string &part, const std::string &slot, const std::function< void(const std::string &)> &func, bool force_slot) |
|
static uint64_t | fetch_partition (const std::string &partition, borrowed_fd fd, fastboot::IFastBootDriver *fb) |
|
static void | do_fetch (const std::string &partition, const std::string &slot_override, const std::string &outfile, fastboot::IFastBootDriver *fb) |
|
static std::string | repack_ramdisk (const char *pname, struct fastboot_buffer *buf, fastboot::IFastBootDriver *fb) |
|
void | do_flash (const char *pname, const char *fname, const bool apply_vbmeta, const FlashingPlan *fp) |
|
static void | set_active (const std::string &slot_override) |
|
bool | is_userspace_fastboot () |
|
void | reboot_to_userspace_fastboot () |
|
static void | CancelSnapshotIfNeeded () |
|
std::string | GetPartitionName (const ImageEntry &entry, const std::string ¤t_slot) |
|
std::unique_ptr< FlashTask > | ParseFlashCommand (const FlashingPlan *fp, const std::vector< std::string > &parts) |
|
std::unique_ptr< RebootTask > | ParseRebootCommand (const FlashingPlan *fp, const std::vector< std::string > &parts) |
|
std::unique_ptr< WipeTask > | ParseWipeCommand (const FlashingPlan *fp, const std::vector< std::string > &parts) |
|
std::unique_ptr< Task > | ParseFastbootInfoLine (const FlashingPlan *fp, const std::vector< std::string > &command) |
|
bool | AddResizeTasks (const FlashingPlan *fp, std::vector< std::unique_ptr< Task > > *tasks) |
|
static bool | IsIgnore (const std::vector< std::string > &command) |
|
bool | CheckFastbootInfoRequirements (const std::vector< std::string > &command, uint32_t host_tool_version) |
|
std::vector< std::unique_ptr< Task > > | ParseFastbootInfo (const FlashingPlan *fp, const std::vector< std::string > &file) |
|
static void | do_update (const char *filename, FlashingPlan *fp) |
|
static void | do_flashall (FlashingPlan *fp) |
|
static std::string | next_arg (std::vector< std::string > *args) |
|
static void | do_oem_command (const std::string &cmd, std::vector< std::string > *args) |
|
static unsigned | fb_get_flash_block_size (std::string name) |
|
void | fb_perform_format (const std::string &partition, int skip_if_not_supported, const std::string &type_override, const std::string &size_override, const unsigned fs_options, const FlashingPlan *fp) |
|
bool | should_flash_in_userspace (const ImageSource *source, const std::string &partition_name) |
|
static bool | wipe_super (const android::fs_mgr::LpMetadata &metadata, const std::string &slot, std::string *message, const FlashingPlan *fp) |
|
static void | do_wipe_super (const std::string &image, const std::string &slot_override, const FlashingPlan *fp) |
|
static void | FastbootLogger (android::base::LogId, android::base::LogSeverity severity, const char *, const char *, unsigned int, const char *message) |
|
static void | FastbootAborter (const char *message) |
|