/bootable/recovery/tests/unit/ |
D | install_test.cpp | 59 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 …]
|
D | package_test.cpp | 104 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/ |
D | wipe_device.cpp | 43 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() 57 zip, &entry, reinterpret_cast<uint8_t*>(partition_list_content.data()), length); in GetWipePartitionList() 155 ZipArchiveHandle zip = wipe_package->GetZipArchiveHandle(); in CheckWipePackage() local 156 if (!zip) { in CheckWipePackage() 162 if (!ReadMetadataFromPackage(zip, &metadata)) { in CheckWipePackage()
|
D | install.cpp | 76 bool ReadMetadataFromPackage(ZipArchiveHandle zip, std::map<std::string, std::string>* metadata) { in ReadMetadataFromPackage() argument 81 if (FindEntry(zip, METADATA_PATH, &entry) != 0) { in ReadMetadataFromPackage() 89 ExtractToMemory(zip, &entry, reinterpret_cast<uint8_t*>(&metadata_string[0]), length); in ReadMetadataFromPackage() 237 bool SetUpAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int status_fd, in SetUpAbUpdateCommands() argument 245 if (FindEntry(zip, AB_OTA_PAYLOAD_PROPERTIES, &properties_entry) != 0) { in SetUpAbUpdateCommands() 252 ExtractToMemory(zip, &properties_entry, payload_properties.data(), properties_entry_length); in SetUpAbUpdateCommands() 260 if (FindEntry(zip, AB_OTA_PAYLOAD, &payload_entry) != 0) { in SetUpAbUpdateCommands() 275 bool SetUpNonAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int retry_count, in SetUpNonAbUpdateCommands() argument 282 if (FindEntry(zip, UPDATE_BINARY_NAME, &binary_entry) != 0) { in SetUpNonAbUpdateCommands() 296 if (auto error = ExtractEntryToFile(zip, &binary_entry, fd); error != 0) { in SetUpNonAbUpdateCommands() [all …]
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/ |
D | PayloadSpecs.java | 31 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/ |
D | setup_commands.h | 30 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/ |
D | install.h | 60 bool ReadMetadataFromPackage(ZipArchiveHandle zip, std::map<std::string, std::string>* metadata);
|
/bootable/recovery/updater_sample/ |
D | README.md | 33 `url` is expected to point to file system, e.g. `file:///data/my-sample-ota-builds-dir/ota-002.zip`. 212 update zip file
|
/bootable/recovery/tests/testdata/ |
D | recovery_body | 1118 y yu:object_r:asec_public_file:s0/mnt/asec/[^/]+/[^/]+\.zip
|