diff --git a/microdroid/payload/mk_payload.cc b/microdroid/payload/mk_payload.cc index 6e3f5260..4dbcabf7 100644 --- a/microdroid/payload/mk_payload.cc +++ b/microdroid/payload/mk_payload.cc @@ -166,11 +166,10 @@ Result MakeMetadata(const Config& config, const std::string& filename) { Metadata metadata; metadata.set_version(1); - int apex_index = 0; for (const auto& apex_config : config.apexes) { auto* apex = metadata.add_apexes(); apex->set_name(apex_config.name); - apex->set_partition_name("microdroid-apex-" + std::to_string(apex_index++)); + apex->set_partition_name(apex_config.name); apex->set_is_factory(true); } @@ -303,4 +302,4 @@ int main(int argc, char** argv) { } return 0; -} \ No newline at end of file +}