fix(metadata): support Android v29 method layouts

This commit is contained in:
bfloat16 committed 2026-09-07 00:43:34 +08:00
1 parent 776d246065
commit 4d73406ab1
2 files changed
+90 -19

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ pub fn content_identity(data: &[u8]) -> String {
/// already-clean blob.
pub fn restore_metadata_bytes(data: &[u8]) -> anyhow::Result<(Vec<u8>, senbei_metadata::Report)> {
if let Ok(discovery) = senbei_metadata::android::discover_method_token_seeds(data)
&& matches!(discovery.version, 31 | 39)
&& matches!(discovery.version, 29 | 31 | 39)
{
let mut seeds = discovery.seed_candidates.clone();
if seeds.is_empty() {