Home
last modified time | relevance | path

Searched refs:zip (Results 1 – 11 of 11) sorted by relevance

/bootable/recovery/tests/unit/
Dinstall_test.cpp59 ZipArchiveHandle zip; in TEST() local
60 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
62 ASSERT_TRUE(ReadMetadataFromPackage(zip, &metadata)); in TEST()
64 CloseArchive(zip); in TEST()
70 ASSERT_EQ(0, OpenArchive(temp_file2.path, &zip)); in TEST()
72 ASSERT_TRUE(ReadMetadataFromPackage(zip, &metadata)); in TEST()
74 CloseArchive(zip); in TEST()
81 ZipArchiveHandle zip; in TEST() local
82 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
84 ASSERT_FALSE(ReadMetadataFromPackage(zip, &metadata)); in TEST()
[all …]
Dpackage_test.cpp104 ZipArchiveHandle zip = package->GetZipArchiveHandle(); in TEST_F() local
105 ASSERT_TRUE(zip); in TEST_F()
110 ASSERT_EQ(0, FindEntry(zip, entry_name, &entry)); in TEST_F()
113 ASSERT_EQ(0, ExtractToMemory(zip, &entry, extracted.data(), extracted.size())); in TEST_F()
/bootable/recovery/install/
Dwipe_device.cpp43 ZipArchiveHandle zip = wipe_package->GetZipArchiveHandle(); in GetWipePartitionList() local
44 if (!zip) { in GetWipePartitionList()
53 if (FindEntry(zip, RECOVERY_WIPE_ENTRY_NAME, &entry) == 0) { in GetWipePartitionList()
62 zip, &entry, reinterpret_cast<uint8_t*>(partition_list_content.data()), length); in GetWipePartitionList()
160 ZipArchiveHandle zip = wipe_package->GetZipArchiveHandle(); in CheckWipePackage() local
161 if (!zip) { in CheckWipePackage()
167 if (!ReadMetadataFromPackage(zip, &metadata)) { in CheckWipePackage()
Dspl_check.cpp49 bool ViolatesSPLDowngrade(ZipArchiveHandle zip, std::string_view current_spl) { in ViolatesSPLDowngrade() argument
52 if (FindEntry(zip, OTA_OTA_METADATA, &metadata_entry) != 0) { in ViolatesSPLDowngrade()
66 int32_t err = ExtractToMemory(zip, &metadata_entry, ota_metadata.data(), metadata_entry_length); in ViolatesSPLDowngrade()
Dinstall.cpp77 bool ReadMetadataFromPackage(ZipArchiveHandle zip, std::map<std::string, std::string>* metadata) { in ReadMetadataFromPackage() argument
82 if (FindEntry(zip, METADATA_PATH, &entry) != 0) { in ReadMetadataFromPackage()
90 ExtractToMemory(zip, &entry, reinterpret_cast<uint8_t*>(&metadata_string[0]), length); in ReadMetadataFromPackage()
238 bool SetUpAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int status_fd, in SetUpAbUpdateCommands() argument
246 if (FindEntry(zip, AB_OTA_PAYLOAD_PROPERTIES, &properties_entry) != 0) { in SetUpAbUpdateCommands()
259 ExtractToMemory(zip, &properties_entry, payload_properties.data(), properties_entry_length); in SetUpAbUpdateCommands()
267 if (FindEntry(zip, AB_OTA_PAYLOAD, &payload_entry) != 0) { in SetUpAbUpdateCommands()
282 bool SetUpNonAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int retry_count, in SetUpNonAbUpdateCommands() argument
289 if (FindEntry(zip, UPDATE_BINARY_NAME, &binary_entry) != 0) { in SetUpNonAbUpdateCommands()
303 if (auto error = ExtractEntryToFile(zip, &binary_entry, fd); error != 0) { in SetUpNonAbUpdateCommands()
[all …]
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/
DPayloadSpecs.java31 import java.util.zip.ZipEntry;
32 import java.util.zip.ZipFile;
54 try (ZipFile zip = new ZipFile(packageFile)) { in forNonStreaming() argument
55 Enumeration<? extends ZipEntry> entries = zip.entries(); in forNonStreaming()
78 InputStream inputStream = zip.getInputStream(entry); in forNonStreaming()
/bootable/recovery/install/include/private/
Dsetup_commands.h30 bool SetUpNonAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int retry_count,
38 bool SetUpAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int status_fd,
/bootable/recovery/install/include/install/
Dspl_check.h26 bool ViolatesSPLDowngrade(ZipArchiveHandle zip, std::string_view current_spl);
Dinstall.h60 bool ReadMetadataFromPackage(ZipArchiveHandle zip, std::map<std::string, std::string>* metadata);
/bootable/recovery/tests/
DAndroid.bp224 "testdata/otasigned*.zip",
/bootable/recovery/updater_sample/
DREADME.md33 `url` is expected to point to file system, e.g. `file:///data/my-sample-ota-builds-dir/ota-002.zip`.
212 update zip file