Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 157a105d authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Make change and version bump to r_aml_300801700 for mainline module file:...

Make change and version bump to r_aml_300801700 for mainline module file: adb/apex/apex_manifest.json

Change-Id: Ia721a85c7321b1316ef186221edd2f9f49c552f9
parents ec54be60 9f5f5fee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
{
  "name": "com.android.adbd",
  "version": 300801600
  "version": 300801700
}
+12 −3
Original line number Diff line number Diff line
@@ -52,12 +52,21 @@ android::base::unique_fd TestPartitionOpener::Open(const std::string& partition_

bool TestPartitionOpener::GetInfo(const std::string& partition_name,
                                  android::fs_mgr::BlockDeviceInfo* info) const {
    if (partition_name == "super") {
        return PartitionOpener::GetInfo(fake_super_path_, info);
    }
    if (partition_name != "super") {
        return PartitionOpener::GetInfo(partition_name, info);
    }

    if (PartitionOpener::GetInfo(fake_super_path_, info)) {
        // SnapshotUpdateTest uses a relatively small super partition, which requires a small
        // alignment and 0 offset to work. For the purpose of this test, hardcode the alignment
        // and offset. This test isn't about testing liblp or libdm.
        info->alignment_offset = 0;
        info->alignment = std::min<uint32_t>(info->alignment, static_cast<uint32_t>(128_KiB));
        return true;
    }
    return false;
}

std::string TestPartitionOpener::GetDeviceString(const std::string& partition_name) const {
    if (partition_name == "super") {
        return fake_super_path_;