mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-11 13:56:16 +00:00
fix: do not flag resource table as sparse when main package is not loaded
This commit is contained in:
@@ -83,6 +83,16 @@ class ResourceContext internal constructor(
|
|||||||
versionInfo.let {
|
versionInfo.let {
|
||||||
metadata.packageVersion = it.versionName ?: it.versionCode
|
metadata.packageVersion = it.versionName ?: it.versionCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
The ResTable if flagged as sparse if the main package is not loaded, which is the case here,
|
||||||
|
because ResourcesDecoder.decodeResources loads the main package
|
||||||
|
and not XmlPullStreamDecoder.decodeManifest.
|
||||||
|
See ARSCDecoder.readTableType for more info.
|
||||||
|
|
||||||
|
Set this to false again to prevent the ResTable from being flagged as sparse falsely.
|
||||||
|
*/
|
||||||
|
metadata.apkInfo.sparseResources = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user