Android-cuttlefish cvd tool
Classes | Namespaces | Functions | Variables
super_image_mixer.cc File Reference
#include "cuttlefish/host/commands/assemble_cvd/super_image_mixer.h"
#include <sys/stat.h>
#include <array>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include <android-base/strings.h>
#include <android-base/logging.h>
#include "cuttlefish/common/libs/key_equals_value/key_equals_value.h"
#include "cuttlefish/common/libs/utils/archive.h"
#include "cuttlefish/common/libs/utils/contains.h"
#include "cuttlefish/common/libs/utils/files.h"
#include "cuttlefish/common/libs/utils/result.h"
#include "cuttlefish/common/libs/utils/subprocess.h"
#include "cuttlefish/host/commands/assemble_cvd/misc_info.h"
#include "cuttlefish/host/libs/avb/avb.h"
#include "cuttlefish/host/libs/config/config_utils.h"
#include "cuttlefish/host/libs/config/cuttlefish_config.h"
#include "cuttlefish/host/libs/config/fetcher_config.h"
#include "cuttlefish/host/libs/config/known_paths.h"
Include dependency graph for super_image_mixer.cc:

Classes

struct  cuttlefish::anonymous_namespace{super_image_mixer.cc}::RebuildPaths
 
struct  cuttlefish::anonymous_namespace{super_image_mixer.cc}::TargetFiles
 
struct  cuttlefish::anonymous_namespace{super_image_mixer.cc}::Extracted
 

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{super_image_mixer.cc}
 

Functions

void cuttlefish::anonymous_namespace{super_image_mixer.cc}::FindImports (const std::string &archive, const std::string &build_prop_file)
 
bool cuttlefish::anonymous_namespace{super_image_mixer.cc}::IsTargetFilesImage (const std::string &filename)
 
bool cuttlefish::anonymous_namespace{super_image_mixer.cc}::IsTargetFilesBuildProp (const std::string &filename)
 
Result< std::string > cuttlefish::anonymous_namespace{super_image_mixer.cc}::GetPartitionNameFromPath (const std::string &path)
 
Result< TargetFiles > cuttlefish::anonymous_namespace{super_image_mixer.cc}::GetTargetFiles (const std::string &vendor_zip_path, const std::string &system_zip_path)
 
Result< MiscInfo > cuttlefish::anonymous_namespace{super_image_mixer.cc}::CombineDynamicPartitionsInfo (TargetFiles &target_files, const std::set< std::string > &extracted_images)
 
Result< MiscInfo > cuttlefish::anonymous_namespace{super_image_mixer.cc}::CombineMiscInfo (TargetFiles &target_files, const std::string &misc_output_path, const std::set< std::string > &extracted_images, const std::vector< std::string > &system_partitions)
 
Result< Extracted > cuttlefish::anonymous_namespace{super_image_mixer.cc}::ExtractTargetFiles (TargetFiles &target_files, const std::string &combined_output_path)
 
Result< void > cuttlefish::anonymous_namespace{super_image_mixer.cc}::RegenerateVbmeta (const MiscInfo &misc_info, const std::string &output_path, const std::string &image_path)
 
Result< void > cuttlefish::anonymous_namespace{super_image_mixer.cc}::CombineTargetZipFiles (const RebuildPaths &paths)
 
bool cuttlefish::anonymous_namespace{super_image_mixer.cc}::BuildSuperImage (const std::string &combined_target_zip, const std::string &output_path)
 
std::string cuttlefish::anonymous_namespace{super_image_mixer.cc}::TargetFilesZip (const FetcherConfig &fetcher_config, FileSource source)
 
Result< RebuildPaths > cuttlefish::anonymous_namespace{super_image_mixer.cc}::GetRebuildPaths (const FetcherConfig &fetcher_config, const CuttlefishConfig::InstanceSpecific &instance_config)
 
Result< void > cuttlefish::anonymous_namespace{super_image_mixer.cc}::RebuildSuperImage (const RebuildPaths &paths)
 
Result< void > cuttlefish::RebuildSuperImageIfNecessary (const FetcherConfig &fetcher_config, const CuttlefishConfig::InstanceSpecific &instance)
 
Result< bool > cuttlefish::SuperImageNeedsRebuilding (const FetcherConfig &fetcher_config, const std::string &default_target_zip, const std::string &system_target_zip)
 

Variables

constexpr char cuttlefish::anonymous_namespace{super_image_mixer.cc}::kMiscInfoPath [] = "META/misc_info.txt"
 
constexpr char cuttlefish::anonymous_namespace{super_image_mixer.cc}::kDynamicPartitionsPath [] = "META/dynamic_partitions_info.txt"
 
constexpr std::array cuttlefish::anonymous_namespace{super_image_mixer.cc}::kVendorTargetImages
 
constexpr std::array cuttlefish::anonymous_namespace{super_image_mixer.cc}::kVendorTargetBuildProps