fix(android): report the version of embedded metadata

The metadata a restored library carried was reported with no version, so
its entry read metadata_version null in --json and showed no version in
the text report. The entry now takes the version from the blob's header.
This commit is contained in:
Momoko-Ayase committed 2026-11-10 02:06:42 +08:00
1 parent 7a1f3c52d5
commit 7ab381438f
1 file changed
+2 -1
+2 -1
View File
@@ -1625,7 +1625,8 @@ fn restore_package_entry<R: Read + Seek, T: context::LibraryRestorer>(
status: EntryStatus::Restored,
provenance: Vec::new(),
layout: None,
metadata_version: None,
metadata_version: senbei_metadata::identify(blob)
.map(|identity| identity.raw_version),
validation: None,
research: None,
metadata_research: None,